Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: pagefile.sys & hiberfil.sys

14 Oct 2009   #1
raphytaffy

Windows 7 Ultimate
 
 
pagefile.sys & hiberfil.sys

Hi all, not sure if this is the correct spot for this question but I'll shoot anyway. I've just installed Windows 7 Ultimate using a 50GB partition on my Mac hard drive. I thought this was more than enough room for the OS, but as it turns out I only had 15GB of free space after the installation. I thought this couldn't possibly be right, so I checked various file sizes to see where all my hard drive space went. It turns out these two files were the culprit:

pagefile.sys (15.99GB)
hiberfil.sys (11.99GB)

Doing a bit of research led me to articles saying that hiberfil.sys is used for hibernation purposes and pagefile.sys is the virtual memory file that Windows uses. I normally don't even hibernate my computer, I just shut it off, so is there a way to make this file size smaller? A few articles have warned against deleting it. Not sure exactly what a virtual memory file is, but how can I make pagefile.sys smaller as well? The articles say that deleting it or turning the virtual memory option off could cause instability so I'm probably just looking to compress the size.

Here are the specs to my Mac Pro just in case it's needed to help you to help me optimize my system:

Processor: Quad-Core Intel Xeon
Processor Speed: 3.2GHz
Number of Processors: 2
Total Number of Cores: 8
Memory: 16GB

Thanks in advance for any help!


My System SpecsSystem Spec
.
14 Oct 2009   #2
whs
Microsoft MVP

Vista, Windows7, Mint Mate, Zorin, Windows 8
 
 

The page file you need and should not touch. But if you don't use hibernation (sleep mode is better anyhow), you can get rid of the file. Open Command prompt which you find in All Programs > Accessories (run as admin) and type : powercfg -h off then hit Enter. Now you should have recovered your 11.99 GiGs.

Hibernate - Enable or Disable
My System SpecsSystem Spec
14 Oct 2009   #3
raphytaffy

Windows 7 Ultimate
 
 

Excellent tip! Worked flawlessly.

So does pagefile.sys really need to be 16GB? I'm guessing since it has to do with virtual memory, that makes the file size equivalent to how much memory I have on my system? Is it really necessary for it to be this big and if not, is there any way that I can change its size?
My System SpecsSystem Spec
.

14 Oct 2009   #4
Brink

64-bit Windows 10 Pro
 
 

Hello Raphytaffy, and welcome to Seven Forums.

While it's best to leave the page file set to "System Managed", you can get away with reducing it to about 4GB since you have 16GB of RAM installed. The tutorial below will help show you how to if you should decide to. It's the same in Windows 7 as Vista.

Virtual Memory Paging File - Change - Vista Forums

Hope this helps,
Shawn
My System SpecsSystem Spec
14 Oct 2009   #5
raphytaffy

Windows 7 Ultimate
 
 

Hi Shawn, thanks for the link! So reading up on the virtual memory paging file, am I correct in understanding that this would only be used if I have used up all 16GB of RAM? If so then I should have no worries lowering it to 4GB since I don't see any real life instances where I would actually use that much memory, right?
My System SpecsSystem Spec
14 Oct 2009   #6
Brink

64-bit Windows 10 Pro
 
 

Windows 7 and some programs will still use the page file no matter how much RAM you have installed though. There are also programs that require a page file for them to run properly as well.

Even if Windows 7 or a program doesn't use much of the page file, whatever it is set at will be allocated (reserved) space on the hard drive (C: drive by default) that the page file it on. In your case 16GB of space on your hard drive is being reserved for the page file and is no longer available as free space whether it is being used or not. Reducing it down to 4GB will free up 12GB of available space on your hard drive if needed.
My System SpecsSystem Spec
14 Oct 2009   #7
raphytaffy

Windows 7 Ultimate
 
 

Hmm I see.. just out of curiousity, how do you know which programs use or require the page file? And also what determines how much of the virtual memory dedicated to the page file is used? I understand that this space is reserved, I'm just trying to see if lowering it to 4GB will cause slower performance in the applications that utilize the page file. Not really understanding the distribution of virtual memory between the RAM and the page file.
My System SpecsSystem Spec
14 Oct 2009   #8
Brink

64-bit Windows 10 Pro
 
 

You can read more indepth details about the Virtual Memory Page File at the link below.

Virtual memory - Wikipedia, the free encyclopedia

The thing is just about all programs will make use of the page file, but you do not really know which ones require the page file until you disable it and the program no longer functions properly or gives you a "No/Low Memory" type error.

In your case I do not believe you will see a performance drop if you reduce the page file to 4GB instead of 16GB. If you do, you can always just increase it back.
My System SpecsSystem Spec
16 Oct 2009   #9
raphytaffy

Windows 7 Ultimate
 
 

Thanks so much! I was able to edit the pagefile.sys size with no problems following the instructions with the link you gave me. Set it to 4GB.
My System SpecsSystem Spec
16 Oct 2009   #10
whs
Microsoft MVP

Vista, Windows7, Mint Mate, Zorin, Windows 8
 
 

Quote   Quote: Originally Posted by raphytaffy View Post
Thanks so much! I was able to edit the pagefile.sys size with no problems following the instructions with the link you gave me. Set it to 4GB.

I personally would not have done that. I think it is a mistake. Usually a manual intervention degrades the system performance.
My System SpecsSystem Spec
Reply

 pagefile.sys & hiberfil.sys




Thread Tools




Similar help and support threads
Thread Forum
Moved Pagefile.sys to second HHD and old pagefile.sys still on primary
Hello all, I have a SSD which runs my windows 7 and other processing heavy programs and a secondary HDD which holds files. I've been reading up on making sure I can get the most life out of my SSD since there are limited read/write cycles on them. Therefore, I looked into moving my...
Performance & Maintenance
Hiberfil.sys 6gb why
I have Sleep and Hibernation disabled. I don't use either one of them. Never have used either. I shut my computer off when done. The problem is I still have hiberfil.sys with 6 GB. Can I remove that 6 GB or does it do something else other that Hibernation? What I'm not understanding about this 6...
General Discussion
Unmoveable System Files other than pagefile and hiberfil?
I am trying to shrink a C:\ partition on a Dell R14 laptop running W7 Home Premium 64. I moved the pagefile to D, removed hiberfil.sys, and there are still files way out at 200GB somewhere in a folder, unmoveable by Perfect Disk. No Restore points; System Volume Information is empty. What...
General Discussion
PageFile.sys & Hiberfil.sys - Delete Safe?
Hello SF, I just do a drive clean-up (Deleting some junk files to free some space on my HDD) I managed to see the HD stats what files did takes a lot of space in it using WinDirStat app... I removed some games that I no longer played in a while and some backup files that already made a...
Performance & Maintenance
How can I securely delete pagefile.sys and hiberfil.sys?
I run Windows 7-64 bit Home Premium and work on encrypted containers with TrueCrypt. I'm afraid that such sensitive information (including passwords) may be unencrypted on pagefile.sys or hiberfile.sys. How can I securely delete both of these files? I know there's a method in Windows 7 to delete...
General Discussion
Win7 Memory hog pagefile and hiberfil?
Hey guys i just recently installed windows 7 bootcamp on my new macbook pro, the hard drive isnt bit (100gb) so i notice right away when a nice chunk of my memory is gone, 4gb to pagefile.sys and 3gb to hiberfil.sys, do i need them can i delete it? thanks.
Performance & Maintenance


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 03:08.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App