• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2553
  • Last Modified:

Deleting pagefile.sys and hiberfile.sys


Just doing some housecleaning on my hard disk and found two files ( pagefile.sys and hiberfile.sys ) which add up to just over a Gigabyte and was wondering if it is possible to delete or erase data from them safely. If so , How?

1 Solution
dont touch them - pagefile.sys is used for virtual memory. You can set this to utilise less disk space but could affect perfomance.
Not 100% sure about hiberfile.sys but I'd assume this is where the system is saved to when the box hibernates.

For further info do a search on Microsoft.com for the two files.
If you turn off hibernation, hiberfil.sys will be deleted. To do this:

You must be logged on to your computer with an owner account in order to complete this procedure.

   1. Click Start, click Control Panel, click Performance and Maintenance, and then click Power Options.

   2.   Click the Hibernate tab, clear the Enable hibernate support check box, and then click Apply.

In terms of pagefile.sys, this is a necessary file called the page file that is used as 'virtual' memory when your physical memory is all used up. As such, you can't delete this one. You can move it to another drive or partition if you have one but it is necessary for Windows to run.

hiberfile.sys is where your memory gets dumped into when you put your computer into hibernation.

Hibernation is a process in which all contents of active memory are copied to a file on the hard drive and then the computer is powered down.  When the computer is powered back up, rather than the typical boot-up process, the computer simply restores the contents of that file into memory and resumes processing.  It's very handy.

You can disable hibernation by going into your Power Options control panel.  There is a Hibernate tab and a checkbox you can turn off.  I don't know for sure if this deletes the hiberfile, but it does tell you the necessary amount of disk space required (basically the same as the amount of memory you have).
To make your pagefile smaller:

1.      Hit (the windows key)+(the pause/break key, by the lights on your keyboard)

OR if that's not an option...

1.      Right click on “My Computer” icon and select “Properties” then go to the “Advanced” tab.
2.      Click on “Settings” on the “Performance” box.
3.      Click the “Advanced” tab.
4.      Then at the bottom of that window click “Change” in the “Virtual Memory”
5.       Now if you have more than one drive select the one with the most free space, Click the “Custom Size” Box and set the values that         apply to you, I will describe them below:

       If your computer is used for hardcore gaming and you only have less than 512 MB of ram set this value to ~1500 MB, If you have lots of ram lets say around a gig set it to ~1000 MB.

       If your computer is used for light gaming like say “Starcraft” or “Diablo 2”, the kid of games that load fast and have simple graphics, and you only have less than 256 MB of ram set this value to ~1000 MB, If you have lots of ram lets say around a ½ a gig or more set it to ~500 MB.

       If your computer is used for simple online activities or to type on, and you only have less than 256 MB of ram set this value to ~1000 MB, If you have lots of ram lets say around a ½ a gig or more set it to ~500 MB.
note that you will not be able to analyse a BSOD crash dump if vm is less than physical memory. Probably not important in a home setup but may be relevant in a corporate.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: CompTIA Cloud+

The CompTIA Cloud+ Basic training course will teach you about cloud concepts and models, data storage, networking, and network infrastructure.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now