Windows – Why does the pagefile.sys of windows 8 shrink to just about 25% of the size of RAM when hibernation is enabled

hibernatepagefilewindows 8

I'm a Windows 8 user, and I've got 2GB RAM.
I noticed the following phenomenon:

  • When hibernate is disabled, the pagefile.sys will be the same
    size as my RAM.
  • But when hibernate is enabled, the size of pagefile.sys will be
    only about 25% of RAM and hiberfil.sys 75%.

It's easy to notice that the sizes of pagefile.sys and hiberfil.sys add up to the size of RAM, whether hibernation is enabled or disabled. We know that the hiberfil.sys is used for the hybrid boot of windows 8. In other words, it's only used for boot process and becomes useless after the system booted. My guess is that windows 8 just reuses hiberfil.sys as another part of pagefile.sys when the system is already on. I'm looking for an authoritative answer on this.

So, why does the size of pagefile.sys decrease to only 25% of the RAM when hibernation is on?

Best Answer

"Now the interesting thing is that when you have fast startup enabled (meaning hibernation is enabled), then your hiberfil.sys will be about 75% of your RAM and the paging file will be around 25%. This is because the hiberfil.sys contains the Windows 8 kernel and device drivers. The paging file is only used if all RAM is exhausted only our system and is used while you’re actually running Windows. The hiberfil.sys is only used for the boot process.

If you don’t have hibernation enabled in Windows 8, you’ll see that the paging file is now the same size as the amount of RAM you have."

More details:

Windows 8 hiberfil.sys and pagefile.sys details