Hibernate (OS feature)

Hibernate (OS feature)

Hibernate is a feature seen in many operating systems where the contents of RAM is written to non-volatile storage, such as the hard 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 a hard 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 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.

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 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. [ [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 total RAM. 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 memory RAM compressed with LZXPRESS algorithm, and contains further information like Processor state. Although, this file is undocumented, a security researcher Matthieu Suiche, documented it [ [http://msuiche.net/con/bhusa2008/Windows_hibernation_file_for_fun_%27n%27_profit-0.6.pdf] ] during Black Hat Briefings 2008 and provides a Computer 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's RAM. 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 2007

Linux

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

Игры ⚽ Поможем написать курсовую

Look at other dictionaries:

  • Hibernate — Hibernation is a state of regulated hypothermia undergone by some animals to conserve energy during the winter.Hibernate may also refer to: * Hibernate (OS feature), the ability of some operating systems to suspend themselves completely to… …   Wikipedia

  • Hibernate (Java) — Infobox Software name = Hibernate developer = Red Hat latest release version = 3.3.1 GA latest release date = release date|2008|09|11 operating system = Cross platform (JVM) latest preview version = latest preview date = platform = Java Virtual… …   Wikipedia

  • Hibernation — For the ability of certain operating systems, see Hibernate (OS feature) Hibernation is a state of inactivity and metabolic depression in animals, characterized by lower body temperature, slower breathing, and lower metabolic rate. Hibernation… …   Wikipedia

  • TuxOnIce — (formerly known as Suspend2) is an implementation of the suspend to disk (or hibernate) feature which is available as patches for the 2.6 Linux kernel. It was formerly known as swsusp . During the 2.5 kernel era, Pavel Machek forked the original… …   Wikipedia

  • Энергосберегающие режимы Windows — Энергосберегающие режимы (режимы энергосбережения) обеспечивают экономию электроэнергии за счет отключения дисплея и/или жесткого диска компьютера. При этом системные данные копируются либо в память, либо на жесткий диск, либо и в память и на… …   Википедия

  • Hibernation (computing) — Hibernation in computing is powering down a computer while retaining its state. Upon hibernation, the computer saves the contents of its random access memory (RAM) to a hard disk or other non volatile storage. Upon resumption, the computer is… …   Wikipedia

  • NHibernate — This article is about the .NET and Mono library. For other uses, see Hibernate. NHibernate Stable release 3.2.0 / July 30, 2011; 3 months ago (2011 07 30) Written in C# Operating system …   Wikipedia

  • Features new to Windows XP — Windows XP has many features not found in previous versions of Windows. Improved device supportWindows XP provides new and/or improved drivers and user interfaces for devices compared to Windows Me and 98.Windows Image Acquisition (WIA),… …   Wikipedia

  • Spring Framework — Infobox Software name = Spring Framework caption = developer = [http://www.springsource.com SpringSource] latest release version = 2.5.5 latest release date = release date|2008|06|23 latest preview version = latest preview date = operating system …   Wikipedia

  • Grails (framework) — Infobox Software name = Grails caption = author = developer = released = latest release version = 1.0.3 latest release date = release date|2008|6|6 operating system = Cross platform platform = Cross platform (JVM) language = programming language …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”