- Hibernate (OS feature)
Hibernate is a feature seen in many
operating system s where the contents of RAM is written tonon-volatile storage , such as thehard disk (as either a file or on a separate partition) before powering off the system. Later the system can be restored to the state it was in when hibernation was invoked, so that programs can continue executing as if nothing happened. Hibernating and restoring from hibernate is also generally faster than ahard reboot and, if necessary, can be done without user interaction (unlike shutting down, which often requires the user to specify if open documents should be saved).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
laptop s and can generally be set to happen automatically on a low battery alarm. Early implementations of hibernation did use theBIOS but on modern systems the functionality is usually handled by the operating system. Hibernation is defined as sleeping mode S4 in the ACPI specification.Operating system support
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 onlyAdvanced 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 fullyACPI 1.0 compliant or did not have WDM drivers. There were also issues with the FAT32 file system. [ [http://www.microsoft.com/whdc/archive/hiberfat32.mspx BIOS and Hibernate Issues for FAT32 File System] ]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 totalRAM . The file resides in the root of the system partition, usually "C:hiberfil.sys". The file is a hidden system file. This file is a full snapshot of the physical memoryRAM compressed withLZXPRESS algorithm, and contains further information like Processor state. Although, this file is undocumented, a security researcherMatthieu Suiche , documented it [ [http://msuiche.net/con/bhusa2008/Windows_hibernation_file_for_fun_%27n%27_profit-0.6.pdf] ] duringBlack Hat Briefings 2008 and provides aComputer forensics framework to manage and convert this file into a readable memory dump [ [http://sandman.msuiche.net] ] .Windows Me also supports OS controlled hibernation and requires half the amount of disk space of the computer'sRAM .Windows XP further improves support. [ [http://www.microsoft.com/whdc/archive/winpowmgmt.mspx#EQAAC Windows Power Management: Instant PC availability and energy savings] ] 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.Mac OS
On Macs, a feature known as Safe Sleep saves the contents of volatile memory to the system hard disk each time the Mac enters Sleep mode. The Mac can instantaneously wake from sleep mode if memory has not been lost. However, if power supply was interrupted, such as when swapping batteries without AC power connection, the Mac would wake from Safe Sleep instead, restoring memory contents from the hard drive. [ [http://docs.info.apple.com/article.html?artnum=302477 Apple Support: Progress bar appears after waking from sleep] ] Because Safe Sleep's hibernation process occurs during regular Sleep, the
Apple menu does not have a "hibernate" option.Safe Sleep capability is found only in new Mac models starting with the October 2005 revision of the
PowerBook G4 (Double-Layer SD).Mac OS X v10.4 or higher is also required.Shortly after Apple started supporting Safe Sleep, Mac enthusiasts released a hack to enable this feature for much older Mac computers running Mac OS X v10.4. [http://web.archive.org/web/20080105000720/http://andrewescobar.com/archive/2005/11/11/how-to-safe-sleep-your-mac/] Classical
Mac OS once also supported hibernate, but this feature was dropped by Apple.Fact|date=June 2007Linux
In the
Linux kernel , Hibernate or "suspend-to-disk, suspend-to-ram, suspend-to-file" is implemented byswsusp which is built into the 2.6 series. An alternative implementation isTuxOnIce which is available as patches for the 2.4 and 2.6 kernels. Other alternative implementations also exist, namely,uswsusp (user-space suspend). 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 [http://lists.tuxonice.net/lurker/message/20080716.071015.bd394e94.en.html]See also
*
Green computing
*Power management
*Advanced Configuration and Power Interface References
External links
* [http://matt.ucc.asn.au/apple/machibernate.html Hibernate on your non-brandnew Mac]
* [http://www.tuxonice.net/ TuxOnIce for Linux]
* [http://lwn.net/Articles/243404/ Suspend and hibernation status report]
Wikimedia Foundation. 2010.