pagefile.sys & hiberfil.sys

raphytaffy

New member
Member
Local time
4:03 AM
Messages
41
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 Computer

OS
Windows 7 Ultimate
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.

http://www.sevenforums.com/tutorials/819-hibernate-enable-disable.html
 
Last edited by a moderator:

My Computer

Computer Manufacturer/Model Number
HP, Dell, Gateway, Toshiba - 4 laptops and 2 desktops
OS
Vista, Windows7, Mint Mate, Zorin, Windows 8
CPU
from 1.6GHz Duo to i7
Monitor(s) Displays
2x HP w2207
Hard Drives
5x HDD, 7x SSD, 12x Externals
Keyboard
with trackball - no mices
Mouse
Trackball mice
Internet Speed
DSL 6000
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 Computer

OS
Windows 7 Ultimate
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 Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self built custom
OS
64-bit Windows 11 Pro for Workstations
CPU
Intel i7-8700K OC'd to 5 GHz
Motherboard
ASUS ROG Maximus XI Formula Z390
Memory
64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz
Graphics Card(s)
ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
Sound Card
Integrated
Monitor(s) Displays
2 x Samsung Odyssey G7 27"
Screen Resolution
2560x1440
Hard Drives
1TB Samsung 990 PRO M.2,
4TB Samsung 990 PRO PRO M.2,
TerraMaster F8 SSD Plus NAS
PSU
Seasonic Prime Titanium 850W
Case
Thermaltake Core P3
Cooling
Corsair Hydro H115i
Keyboard
Logitech wireless K800
Mouse
Logitech MX Master 4
Internet Speed
2 Gb/s Download and 100 Mb/s Upload
Antivirus
Malwarebyte Anti-Malware Premium
Browser
Google Chrome
Other Info
Logitech Z625 speaker system,
Logitech BRIO 4K Pro webcam,
HP Color LaserJet Pro MFP M477fdn,
APC SMART-UPS RT 1000 XL - SURT1000XLI,
Galaxy S23 Plus phone
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 Computer

OS
Windows 7 Ultimate
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 Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self built custom
OS
64-bit Windows 11 Pro for Workstations
CPU
Intel i7-8700K OC'd to 5 GHz
Motherboard
ASUS ROG Maximus XI Formula Z390
Memory
64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz
Graphics Card(s)
ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
Sound Card
Integrated
Monitor(s) Displays
2 x Samsung Odyssey G7 27"
Screen Resolution
2560x1440
Hard Drives
1TB Samsung 990 PRO M.2,
4TB Samsung 990 PRO PRO M.2,
TerraMaster F8 SSD Plus NAS
PSU
Seasonic Prime Titanium 850W
Case
Thermaltake Core P3
Cooling
Corsair Hydro H115i
Keyboard
Logitech wireless K800
Mouse
Logitech MX Master 4
Internet Speed
2 Gb/s Download and 100 Mb/s Upload
Antivirus
Malwarebyte Anti-Malware Premium
Browser
Google Chrome
Other Info
Logitech Z625 speaker system,
Logitech BRIO 4K Pro webcam,
HP Color LaserJet Pro MFP M477fdn,
APC SMART-UPS RT 1000 XL - SURT1000XLI,
Galaxy S23 Plus phone
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 Computer

OS
Windows 7 Ultimate
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 Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self built custom
OS
64-bit Windows 11 Pro for Workstations
CPU
Intel i7-8700K OC'd to 5 GHz
Motherboard
ASUS ROG Maximus XI Formula Z390
Memory
64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz
Graphics Card(s)
ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
Sound Card
Integrated
Monitor(s) Displays
2 x Samsung Odyssey G7 27"
Screen Resolution
2560x1440
Hard Drives
1TB Samsung 990 PRO M.2,
4TB Samsung 990 PRO PRO M.2,
TerraMaster F8 SSD Plus NAS
PSU
Seasonic Prime Titanium 850W
Case
Thermaltake Core P3
Cooling
Corsair Hydro H115i
Keyboard
Logitech wireless K800
Mouse
Logitech MX Master 4
Internet Speed
2 Gb/s Download and 100 Mb/s Upload
Antivirus
Malwarebyte Anti-Malware Premium
Browser
Google Chrome
Other Info
Logitech Z625 speaker system,
Logitech BRIO 4K Pro webcam,
HP Color LaserJet Pro MFP M477fdn,
APC SMART-UPS RT 1000 XL - SURT1000XLI,
Galaxy S23 Plus phone
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 Computer

OS
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.


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

My Computer

Computer Manufacturer/Model Number
HP, Dell, Gateway, Toshiba - 4 laptops and 2 desktops
OS
Vista, Windows7, Mint Mate, Zorin, Windows 8
CPU
from 1.6GHz Duo to i7
Monitor(s) Displays
2x HP w2207
Hard Drives
5x HDD, 7x SSD, 12x Externals
Keyboard
with trackball - no mices
Mouse
Trackball mice
Internet Speed
DSL 6000
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.
USUALLY is correct. In some cases, like mine, disabling the pagefile and just using memory had no system performance degradation. Because I have an Intel SSD as the system drive, I needed to save the 4GB that the page file would take up. So after disabling it, I basically had observed no system changes other than the fact that after using for a while, RAM runs up to about 3GB where it would normally only be about 1GB. In your case, with 16GB of RAM and unless you're editing HD Video files or other intensive stuff of the same nature, disabling those 2 files will be fine.
 

My Computer

Computer Manufacturer/Model Number
SevenForums
OS
7 Prof
CPU
Q9550
Motherboard
Maximus II Formula
Memory
2x2 Mushkin Ascent 8500
Graphics Card(s)
4870X2
Sound Card
X-Fi Xtreme Gamer
Monitor(s) Displays
LN32A550
Screen Resolution
1920x1080
Hard Drives
Intel G2 80GB
5x1TB
PSU
Corsair 1000
Case
Cosmos
Cooling
Yates^13
Keyboard
G15v1
Mouse
MX518
Internet Speed
6Mbps
Pagefile on SSD? 4 GB is more than enough.
 

My Computer

Computer Manufacturer/Model Number
Asus N73SV
OS
Windows 7 x64 Ultimate SP1
CPU
Core i7-2630QM
Motherboard
Intel HM 65
Memory
6 GB DDR3
Graphics Card(s)
Nvidia GT 540M / Intel HD 3000 - Optimus switching
Sound Card
HD Audio (Intel Azalia/Realtek) ALC269
Monitor(s) Displays
LED flat panel
Screen Resolution
1920 x 1080
Hard Drives
2x Seagate Momentus 640 GB - 1,28 TB in total
Internet Speed
4 MB/256 kbps
Other Info
External HDs

WD Elements 1,5 TB
WD MyBook 500 GB
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.
USUALLY is correct. In some cases, like mine, disabling the pagefile and just using memory had no system performance degradation. Because I have an Intel SSD as the system drive, I needed to save the 4GB that the page file would take up. So after disabling it, I basically had observed no system changes other than the fact that after using for a while, RAM runs up to about 3GB where it would normally only be about 1GB. In your case, with 16GB of RAM and unless you're editing HD Video files or other intensive stuff of the same nature, disabling those 2 files will be fine.


Understand. Given the SSD that will work. Which Intel do you have - the X25M? How do you like it. I have an OCZ Vertex 60GB and was considering the X25M for my one of my other systems.
 

My Computer

Computer Manufacturer/Model Number
HP, Dell, Gateway, Toshiba - 4 laptops and 2 desktops
OS
Vista, Windows7, Mint Mate, Zorin, Windows 8
CPU
from 1.6GHz Duo to i7
Monitor(s) Displays
2x HP w2207
Hard Drives
5x HDD, 7x SSD, 12x Externals
Keyboard
with trackball - no mices
Mouse
Trackball mice
Internet Speed
DSL 6000
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.
USUALLY is correct. In some cases, like mine, disabling the pagefile and just using memory had no system performance degradation. Because I have an Intel SSD as the system drive, I needed to save the 4GB that the page file would take up. So after disabling it, I basically had observed no system changes other than the fact that after using for a while, RAM runs up to about 3GB where it would normally only be about 1GB. In your case, with 16GB of RAM and unless you're editing HD Video files or other intensive stuff of the same nature, disabling those 2 files will be fine.

You're welcome Raphy. I'm happy to hear all went well. :)


Ragzarok,
Some programs may still require a page file to operate properly, no matter how much RAM is installed. It may be something to keep an eye on if you run across a program that does not run properly or has memory errors.
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self built custom
OS
64-bit Windows 11 Pro for Workstations
CPU
Intel i7-8700K OC'd to 5 GHz
Motherboard
ASUS ROG Maximus XI Formula Z390
Memory
64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz
Graphics Card(s)
ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
Sound Card
Integrated
Monitor(s) Displays
2 x Samsung Odyssey G7 27"
Screen Resolution
2560x1440
Hard Drives
1TB Samsung 990 PRO M.2,
4TB Samsung 990 PRO PRO M.2,
TerraMaster F8 SSD Plus NAS
PSU
Seasonic Prime Titanium 850W
Case
Thermaltake Core P3
Cooling
Corsair Hydro H115i
Keyboard
Logitech wireless K800
Mouse
Logitech MX Master 4
Internet Speed
2 Gb/s Download and 100 Mb/s Upload
Antivirus
Malwarebyte Anti-Malware Premium
Browser
Google Chrome
Other Info
Logitech Z625 speaker system,
Logitech BRIO 4K Pro webcam,
HP Color LaserJet Pro MFP M477fdn,
APC SMART-UPS RT 1000 XL - SURT1000XLI,
Galaxy S23 Plus phone
I personally would not have done that. I think it is a mistake. Usually a manual intervention degrades the system performance.
USUALLY is correct. In some cases, like mine, disabling the pagefile and just using memory had no system performance degradation. Because I have an Intel SSD as the system drive, I needed to save the 4GB that the page file would take up. So after disabling it, I basically had observed no system changes other than the fact that after using for a while, RAM runs up to about 3GB where it would normally only be about 1GB. In your case, with 16GB of RAM and unless you're editing HD Video files or other intensive stuff of the same nature, disabling those 2 files will be fine.

You're welcome Raphy. I'm happy to hear all went well. :)


Ragzarok,
Some programs may still require a page file to operate properly, no matter how much RAM is installed. It may be something to keep an eye on if you run across a program that does not run properly or has memory errors.

Right, I've not done anything intensive on this build. I'm going to be using it to edit video and pics when 7's retail disc is here. So I'm thinking of putting another 4GB RAM on, and/or putting the pagefile on another drive. Intel X-25M, G2.
 

My Computer

Computer Manufacturer/Model Number
SevenForums
OS
7 Prof
CPU
Q9550
Motherboard
Maximus II Formula
Memory
2x2 Mushkin Ascent 8500
Graphics Card(s)
4870X2
Sound Card
X-Fi Xtreme Gamer
Monitor(s) Displays
LN32A550
Screen Resolution
1920x1080
Hard Drives
Intel G2 80GB
5x1TB
PSU
Corsair 1000
Case
Cosmos
Cooling
Yates^13
Keyboard
G15v1
Mouse
MX518
Internet Speed
6Mbps
Back
Top