17 Oct

So what is this hiberfil.sys and pagefile.sys? How can I remove it from my system and is it safe to delete hiberfil.sys and pagefile.sys?
HIBERFIL.SYS is a file the system creates when the computer goes into hibernation mode. Hibernation takes everything in memory and writes it to your hard drive as the hiberfil.sys file. If you have 512MB of memory, then hiberfil.sys will be about 512MB. If you have 1GB, the file will be around 1GB. Even if you don’t use hibernation, hiberfil.sys will still take up this huge amount of disk space.
I have 2GB of ram in my laptop, that’s why my hiberfil.sys file is 1.99GB in size! Hibernation is enabled by default in Windows XP and since I don’t use hibernation at all, I might as well turn it off to get back my 2GB hard drive space and store something else.
Here’s how to turn off Hibernation in Windows XP.
Go to Control Panel and run Power Options.
Click on Hibernate tab and uncheck “Enable hibernation“.

hiberfil.sys file will be automatically deleted and you’ll get back your hard disk space.
What about PAGEFILE.SYS which has taken up 768MB from my hard drive? Pagefile.sys is a virtual memory file. Normally the size of pagefile.sys is around 1.5 times of your physical memory size. My laptop memory used to be 512MB, and it has created a 765MB pagefile.sys file. Don’t know why pagefile.sys did not automatically update the size after I’ve upgraded my memory to 2GB. Windows uses this file for its normal operation however if you really need the space you can delete it after turning the virtual memory option off.
Here’s how to turn off Virtual Memory.
Go to Control Panel and run System.
Click on Advanced tab and click the Settings button on Performance.

Click on Advanced tab again and click on the Change button.
Select “No paging file” and click the Set button if you want to remove pagefile.sys.

I wouldn’t recommend you to turn off your virtual memory unless you have lots of RAM. Virtual memory is an area on the hard disk that Windows uses as if it were RAM. So if you have very low RAM, maybe 256MB, turning virtual memory off will be a disaster. You will notice that your computer will struggle to multitask. As for my case, I have 2GB of physical ram and disabling paging file didn’t make any difference.
YAY! Now I have an extra of nearly 3GB free space to store downloaded stuff.
Technorati Tags: pagefile, hiberfile, hibernate, virtual memory, memory
: Copying this article to your website is strictly NOT allowed. However, if you like this article, you can use the HTML code below to directly link to this article.
About Recycler and System Volume Information Folder in XP and Vista Reboot to Safe Mode for Dummies View, Examine and Delete INDEX.DAT Contents How to delete individual URLs from Firefox address bar history Uninstall Programs Packaged with Windows Installer in Safe Mode Easily Delete All Wordpress Spam Comments Using phpMyAdmin Deleting Impossible to Delete Files
Have computer technical problems? Get FREE help from Raymond.CC FORUM
32 Responses for "Is it Safe to Delete HIBERFIL.SYS and PAGEFILE.SYS?"
Hi i’ve been visiting this site for quite a while now, subscribed to RSS feeds and everything. Basically what I wanted to know was this.
If paging acts as RAM, then you essentially have around double the amount you physically have? And if this is the case, can you set it as high as you want? For example, would having only 1GB physical memory, and having a 2GB paging file result in 3GB of available RAM?
Thanks,
xangelo
xangelo, usually Windows will try to use your physical memory first. If you have low physical memory, it will take your hard drive space as virtual memory. Having 2GB paging file won’t really help because you won’t use up to a total of 3GB memory.
For servers maybe, but then servers uses high performance ram for stability.
thanx raymond. at least i can free up my disk space
Adding to Raymond answer, it is not an advantage have a high page file because the speed of reading/writing it’s very, very low, compared to physical memory. I don’t know the right values, but the difference is huge…
[...] Raymond.cc Related [...]
nice stuff
Actually, for Windows systems, it’s not advisable to turn off pagefile completely. An extra 256-384MB wouldn’t hurt, and it usually acts as a safety net for Windows.
Windows doesn’t manage physical RAM as efficient as one would think. Unless you are doing very basic things, I wouldn’t recommend turning off pagefile; except if you have ridiculous amount of RAM in a way.
Thank you Rymond
I agree with KwangErn. Unless you have ridiculous amount of RAM, you can turn it off. If you have 2GB of memory or more and running Windows XP. plus you don’t use big programs such as AutoCAD or even Photoshop, then it shouldn’t be a problem.
Hey Raymond, is it safe if I do it on Vista?
By the way, this one is a nice one.
Vista takes up more memory than XP does. So again, unless you have a minimum of 2GB ram, i wouldn’t suggest you to turn off your paging file.
Ouch, for Vista, if you want to turn it off, I would suggest you having at least 4GB of RAM.
Unless you run barebones of Vista, including without the sidebar/widgets. Then maybe, just maybe, 2GB is enough.
Am not happy at all with Vista; it’s a hungry monster.
Thanks for the info on that Raymond
I\’d never used hibernation before today, and needed to see what that BiG new file was related to. It\’s all gone now
I just wanted to add a few bits, in case it\’s of interest to anybody. Photoshop shouldn\’t (in theory) be affected by having no pagefile, as it uses its own \’scratchpad\’ file area. Some of my more extravagant customers I have, use a completely seperate SATA drive for just that single purpose, though their fast PCs make it hard to see any notable difference. I\’ve not used AutoCAD, so can\’t comment on that one.
Regarding the idea of completely switching off the pagefile, i\’ve played with this on a few machines, and found XP Pro seems happy with it, till it gets pushed (i have 2GB DDR2 fitted).
I think Microsoft have assumed all along that it\’s a required safety net, and the system actually depends to some degree on it being available. We can see how badly Windows is setup in dealing with used memory, by its effects after copying a full CD/DVD – watch it try to wake back up even after the software is exited.
Just curious, does anybody know of a utility that wipes memory on \’application exits\’ safely? i\’ve tried many, but all cause instablity (or no effect) – i assume they all clean some bits of data in error maybe?
What i\’d like to see, is a memory manager, to lock specific applications memory area & usage. So Windows doesn\’t waste so much time shuffling & searching. If NERO (example) was locked at the 1.5Gb memory page & limited to 100Mb application use, it would be far more efficent i reckon (based on old style prgramming ways from years ago).
One last point (hope i\’ve not ranted for too long)…… Regarding MR7\’s very true mention of speed differences, the speed is entirely down to the individual PC, based on drive transfer capabilities, and memory speeds (EDO/DDR types etc.), and also, it\’s worth mentioning that XP is naturally setup to give most physical memory up to \’programs\’, and not for the \’system\’, though this setting is changable. I wonder if \’system\’ would include the pagefile? I will have to investigate.
Thanks again Raymond, excellent website
(and VISTA is sooo yucky, I think).
hi there, it is a good site to visit, a lot material to read. thanks for for the effort.
The memory usage;
is it better to adjust to program or system cache???
Virtual memory;
for 1 gb ram initial 1524 and max 3048.
is it really needed to adjust max up to 3048 ??? why and what is this max ????
Is it better to choose the custom size or system manage???
thanks alot
My desktop is partitioned in such a way that the C: drive is small and now almost full and my D: drive has ample free space. with the pagefile.sys at 1.8 gig I have no space at all left on my c: drive. Is it at all possible to set up the paging file on the more empty D: drive and if so how do I do that.
As I say I am going nuts because I constantly get a low disk space error on C:
Thanks in advance for your help.
To GoingCrazy: If you still need a hand with the pagefile problem, just look at the screenshot around the text “Click on Advanced tab again” from the article. It has a C: drive listed because that computer only has one drive. For your own PC, you will be able to click on each drive and individually turn on and off the pagefiles for each drive. Just click on “No page file” and click on set for C: and then if you want, click on D: or whatever the other hard drive / partition is, and set the numerical value there.
I have a question regarding the interaction between the pagefile and hibernation….
When you hibernate XP, what happens to the data in the pagefile? eg, say your system was using all (1Gb) memory, and 512Mb in the pagefile, then you hibernate. Is Windows going to clear the pagefile before hibernating, or is the pagefile going to be saved in the hiberfil.sys (resulting in a 1.5Gb hiberfil), or is the pagefile going to retain its current data and thus effectively become part of the hibernation data.
I ask this, because if for example I have multi-boot with multiple copies of XP, and want to have a separate partition for the pagefile which is shared amongst the different installs (but keeping hiberfil.sys in each installation partition), would any hibernation information be lost if I hibernated one install and then booted another?
To Stranger: I created a pagefile on the other hard drive (and it does appear there), but even though I disabled the pagefile on the C drive, it is still sitting there taking up 371 MB of space. Can I now safely delete the old pagefile on C?
thanks
Charles
hi,
along with xp, i do have linux(ubuntu) as well in my pc, while going thru dir in linux, i found dese files”pagefile.sys n hiberfil.sys” n i deleted them from their, now when ever i start my comp if i go for Ubuntu it properly works but when i choose windows xp it again restarts
thanks for the additional knowledge. It will help me to save space if I would not use big programs. You’re the best man! Thanks again.
Muy bueno el sitio, una pregunta para todos: Necesito minimo 604Kb de memoria RAM convencional en XP para ejecutar un programa viejo. lo mas que puedo sacar son 592Kb. Como puedo mover programas de la memoria convencional a la XMS o a la EMS?
To all people:
Sorry, I saw this site translate to Spanish. My question was: I have XP Pro, how can I move programs from the first 640Kb of RAM to EMS or XMS??. I need to execute an old program of DOS and it only run in Conventional memory, with at least 604 KB free of memory.
Thansks for your help!
Thank you, ever so much for really helpful advices
yung hiberfil.sis ngko-cause ng plging pg rerestart hbang ntgal?
This article contains some misinformation. Some of the comments are worse.
First of all, the pagefile is NOT virtual memory. The pagefile serves a supporting role in the virtual memory system. You can disable the pagefile but this will NOT disable virtual memory.
Yes indeed, disk access is much slower than physical RAM. That is exactly why your computer has a pagefile. Virtual memory involves paging from many different disk files, not just the pagefile. The pagefile is used only with modified data, not application code, DLL’s etc. RAM functions as a cache for data on disk. It will be unable to do this effectively if large portions of it are used for data that has not been accessed for a long time, and may never be needed at all. The pagefile is used to free precious RAM from holding this static data and freeing it for more important uses.
There are a few unusual situations where disabling the pagefile may be beneficial. Having 1GB or more of RAM is not such a situation. In almost all cases, disabling the pagefile will impair performance – if not worse. It may cause application failures and loose hours of work.
Going to try this. My pagefile says it’s over 900 gb on my 100 gb hd. Bless ya’ll
MY face is quite red. My pagefile is only 960 mb not gb. I have some 74 gb of unknow files. Still you were very useful
I bought an emachines notebook recently and I find it quite reliable
thanx raymond.
I have an XP Pro computer, it has a hibernation file which is almost 512mb, but as my drivers are messed up, hibernation is not in my power options, and when i turn off my computer hibernation/standby is greyed out so, why do i have hiberfil.sys and is it safe to delete it?
Thank You very much!!!
I have that sucky vista and aside from the power option in the control panel, there are none of the tabs you speak of for shutting hibernation down.
I have power plans with hibernation showing nowhere.
Can you show how to turn it off there?
Leave a reply