To use hibernation the hard disk needs to have at least as much free space as there is RAM on the system.
Hibernation is often used on laptops and can generally be set to happen automatically on a low battery alarm. Early implementations of hibernation did use the BIOS but on modern systems the functionality is usually handled by the operating system. Hibernation is defined as sleeping mode S4 in the ACPI specification.
Hibernate in Microsoft Windows
Windows 95 & Windows 98 supported hibernation through hardware manufacturer-supplied drivers and only if compatible hardware and BIOS were present. Since Windows 95 supported only Advanced Power Management (APM), hibernation was then known as Suspend-to-Disk. Windows 98 and later support ACPI. However, hibernation worked flawlessly on relatively few systems since most hardware was not fully ACPI 1.0 compliant or did not have WDM drivers. There were also issues with the FAT32 file system. [1] Microsoft Windows 2000 and later support hibernation at the operating system level (OS-controlled ACPI S4 sleep state) without special drivers from the hardware manufacturer. The file is called "hiberfil.sys" and is the same size as the total RAM. The file resides in the root of the system partition, usually "C:\hiberfil.sys". The file is a hidden system file. Windows Me also supports OS controlled hibernation and requires half the amount of disk space of the computer's RAM. Windows XP further improves support. [2] On Windows computers, hibernation is available only if all the hardware is ACPI compliant, Plug-and-play and all the drivers are PnP-compatible.
Windows Vista's Fast Sleep and Resume feature saves the contents of volatile memory to hard disk before entering Sleep mode. If power to memory is lost, it will use the hard disk to wake up. The user has the option of hibernating directly if they wish. Windows Vista can also make use of the flash memory built into a hybrid drive to store some or all of the contents of the computer's memory when entering hibernation mode.[citation needed] This is expected to significantly improve the performance of entering and exiting hibernation.
LinuxIn the Linux kernel, Hibernate or suspend-to-disk, suspend-to-ram, suspend-to-file is implemented by swsusp which is built into the 2.6 series. An alternative implementation is TuxOnIce which is available as patches for the 2.4 and 2.6 kernels. Other alternative implementations also exist, namely, uswsusp (user-space). TuxOnIce provides advantages such as support for SMP, 4GB high mem and preemption. Currently work is being done on merging TuxOnIce into the mainline kernel[citation needed].
FROM : ICCOP
