Monday, December 29, 2008

Windows 2008 hiberfil.sys - hmmm...

As you might have seen. There is a file on the %systemdrive% called hiberfil.sys and it has the same size as your physical memory, which can be VERY annoying.

It seems that W2K8 Server enables hibernation by default.

This is funny, since I'm not sure how many people actually hibernate a server. Nevertheless, it's something we need to deal with. Particularly for those who do most of their work in VMs.

In a VM where hibernation is normally replaced with the VM software's suspend feature, that can be quite a sizeable chunk of wasted space. In a production environment I would normally want to disable hibernation.

Trouble is, you can't disable hibernation anywhere in the GUI. It must be disabled from the command line using the command:

powercfg.exe /hibernate off

Please read these MS KB articles, for more details:

http://support.microsoft.com/kb/920730
http://support.microsoft.com/kb/929658
How to Disable Hibernation on Windows Vista