Why is hibernation still used?

66

13

I've never quite understood the original purpose of the Hibernation power state in Windows. I understand how it works, what processes take place, and what happens when you boot back up from Hibernate, but I've never truly understood why it's used.

With today's technology, most notably with SSDs, RAM and CPUs becoming faster and faster, a cold boot on a clean/efficient Windows installation can be pretty fast (for some people, mere seconds from pushing the power button). Standby is even faster, sometimes instantaneous. Even SATA drives from 5-6 years ago can accomplish these fast boot times.

Hibernation seems pointless to me when modern technology is considered, but perhaps there are applications that I'm not considering.

What was the original purpose behind hibernation, and why do people still use it?


Edit:

I rescind my comment about hibernation being obsolete, as it obviously has very practical applications to laptops and mobile PCs, considering the power restrictions. I was mostly referring to hibernation being used on a desktop.

Moses

Posted 2013-09-13T04:10:06.123

Reputation: 10 813

21SSD drives haven't been very affordable to the masses for all that long. As far as SATA drives with sub 10 second boot times from 5-6 years ago, I don't remember any. Even if they existed, they were probably out of the price range for the average consumer. Hibernate functionality probably caused Microsoft little effort to keep within the product line, and I believe there was enough demand for it made no sense to scrap it. – Josh – 2013-09-13T04:14:47.277

15People use it because it's far from obsolete. – Daniel R Hicks – 2013-09-13T04:17:30.847

@DanielRHicks Yes, perhaps I jumped the gun on that one. – Moses – 2013-09-13T04:18:27.677

Don't underestimate the increase of boot times with SSDs. I see my machines gradually boot slower, even though they are kept clean and well maintained. – Jan Doggen – 2013-09-13T06:54:56.033

11The "original purpose" didn't include "modern technology". Most of the world doesn't have "modern technology". Speeding up boot times was never the only reason, and isn't on most people's minds. // Is this a serious question? – hunter2 – 2013-09-13T08:56:30.733

29Hibernation on desktop is also useful: it allows the computer to restore its state even if a power failure occurs. Combined with suspend-to-RAM for fast resume, this is probably the best combination for a desktop (Windows' hybrid sleep option does this). – Andrey Vihrov – 2013-09-13T08:59:15.270

1@AndreyVihrov Agreed. That is available on other OS, too. ("s2both" or "suspend-hybrid" on most Linux machines) – hunter2 – 2013-09-13T10:47:18.917

27Got news for you. Hibernate is even used for "big iron" servers and the like. In fact, many can hibernate, transfer the hibernated image to a different hardware box, and restart the image. This allows quick reconfiguration, with minimal downtime, in large server farms, etc. – Daniel R Hicks – 2013-09-13T11:49:33.380

@JoshR Good point regarding not scrapping it. It is very irksome when a perfectly good feature is scrapped in a new version; no matter what the feature somebody somewhere likely uses and likes the feature, and what are you really saving by eliminating it? – Michael – 2013-09-13T15:28:41.787

2At times you want to keep all of context of work you've been doing. – Michael Pankov – 2013-09-13T15:45:08.807

4Sleep and standby are indeed faster, and are better for most purposes, but they still require the machine to draw some degree of power. Hibernation doesn't require the machine to draw any power at all, and sometimes, this is what you need.Impending power failure is probably the best remaining case on desktops, servers, and the like. If you're down to the UPS and you've got to go down immediately, you may not have time to do it all cleanly. Hibernation provides an alternative. – The Spooniest – 2013-09-13T16:56:50.413

@Andrey Vihrov: Good one. To add to your point, laptops can go in standby and be sustained by battery, but for desktop, hibernation is the only way survive through even a short power failure (without UPS which is not used commonly). – jaychris – 2013-09-13T17:43:05.230

3

Do you realize that when you shut down Windows 8 is hibernates the kernel? That's how it gets faster startup times. http://blogs.msdn.com/b/b8/archive/2011/09/08/delivering-fast-boot-times-in-windows-8.aspx

– Mark Allen – 2013-09-13T19:35:23.423

3Do you shut your PC off at night? If so, why do you shut it off? Why not user Hibernate and pick up where you left off? Save reboots for updates. Hibernation is so much faster than booting. – Mark Allen – 2013-09-13T19:36:08.737

@DanielRHicks, I've never heard of running a hibernation image on different hardware before. Can you forward me a reference to that? – user606723 – 2013-09-13T21:29:21.613

@user606723 - I don't have a reference handy, but it's done on IBM's "Power" servers, among others. (This does generally require that the I/O be virtualized, something that I've never seen done on "small iron".) – Daniel R Hicks – 2013-09-13T22:02:45.810

Full disk encryption is much less effective with sleep-to-RAM vs. sleep-to-disk (hibernate). For the latter, the data are fully locked, while in the former, even if you lock the disk on sleep (which has its own complications), anything sensitive in RAM is still there. – Reid – 2013-09-14T16:03:00.473

1and thanks to SSDs, hibernation makes even MORE sense now. OSX uses a per-process hibernation model for a lot of stuff, and they justify it with SSDs not being the future but the present. – fluffy – 2013-09-14T16:57:50.833

Answers

111

Normally hibernate mode saves your computer's memory, this includes for example open documents and running applications, to your hard disk and shuts down the computer, it uses zero power. Once the computer is powered back on, it will resume everything where you left off.

You can use this mode if you won't be using the laptop/desktop for an extended period of time, and you don't want to close your documents.

Simple Usage And Purpose: Save electric power and resuming of documents. In simple terms this comment serves nice e.g (i.e. you will sleep but your memories are still present).

Why it's used:

Let me describe one sample scenario. Imagine your battery is low on power in your laptop, and you are working on important projects on your machine. You can switch to hibernate mode – it will result your documents being saved, and when you power on, the actual state of application gets restored. Its main usage is like an emergency shutdown with an auto-resume of your documents.

BlueBerry - Vignesh4303

Posted 2013-09-13T04:10:06.123

Reputation: 7 221

I don't think this answers the question at all. The question reads "Why is hibernation still used?". The question is not "Why is hibernation used?" and it is not "How does hibernation work?". the question is about obsoletes, which this answer does not cover. – tuskiomi – 2019-07-19T18:35:34.993

this is the correct answer, the combination "power off + everything saved" needed to be shown – avalancha – 2013-09-13T06:52:42.963

4it uses zero power is kind of a bold statement. This would only be true if the computer was actually unplugged from the wall after going into hibernation. A motherboard will keep drawing power (although quite little), even when the computer is turned off. – Deniz Zoeteman – 2013-09-13T09:47:42.520

36@TutorialPoint what about "it uses the same amount of power as a complete shutdown"? – John Dvorak – 2013-09-13T09:53:16.907

1That seems good ;) – Deniz Zoeteman – 2013-09-13T10:27:51.643

23Comparing it to a human "sleeping" is a rather poor analogy considering the other inactive state of a computer is in fact called "sleep". Hibernate is more like extracting someone's memories, storing them in a jar, and killing them, then restoring the memories and resuscitating them when they might be useful. – Dan – 2013-09-13T14:57:01.887

@Dan The other mode is "suspend", Windows "sleep" is a combination of the two IIRC (store to disk like hibernate in the event of complete power loss, then suspend for a fast restore) – Izkata – 2013-09-13T15:24:42.343

1@Dan That is an awesome analogy. – None – 2013-09-13T15:43:25.500

9@TutorialPoint I think there is a difference between the statement "hibernate uses zero power" and the statement "activating hibernate causes your computer to use zero power". The first statement is absolutely true, in that you could unplug the computer without overriding the function of hibernate. – nmclean – 2013-09-13T16:15:08.297

hmm working on important documents on windows? #never – code ninja – 2013-09-13T22:38:53.103

1Perfect description, I've been using hibernation for as long as it has been available, usually having 30+ browser instances, 6+ IDEs and numerous misc tools and apps open at any given time. Without hibernation getting back into "the groove" of my work would take a long time. Hibernation helps me get to focusing immediately. I wish other operating systems would clue in and adopt. All my IMPORTANT work occurs on Windows. Further, hibernation works with VMs, Games, etc. Sleep/S3-Suspend has nothing in comparison. – Shaun Wilson – 2013-09-14T04:24:25.880

"...it will result your documents being saved". This is wrong and should be fixed as it might be misleading. Files and documents opened by programs are not saved, it's just the memory states of the programs which are saved. – mowwwalker – 2013-09-14T05:07:16.013

@ShaunWilson - Hibernate is actually a function of (whatever functions as) the "hypervisor", not the main OS. In some cases the hypervisor functionality is a separate product, while in others it's just the low-level interfaces in the OS. There are hypervisors for Linux that support hibernation. – Daniel R Hicks – 2013-09-14T12:53:14.910

@TutorialPoint - the adapter being plugged in may consume power, but it doesn't get used for the purpose of running the computer and maintaining the state. – Random832 – 2013-09-14T20:12:54.057

141

Because it saves the status of all running programs. I leave all my programs open and can resume working the next day very easily.

Doing a real boot would require to start all programs again, load all the same files into those programs, get to the same place that I was at before, and put all my windows in exactly the same place.

Hibernating saves a lot of work pulling these things back up again.

magicandre1981

Posted 2013-09-13T04:10:06.123

Reputation: 86 560

I guess the application I wasn't considering was laptops, which is where this would make the most sense. Unless you're really concerned about power consumption, hibernation on a desktop just didn't make much sense to me. – Moses – 2013-09-13T04:19:47.620

39Since about DOS 2, I've never had a computer that could fully boot in less than 5 minutes. Getting drivers loaded, services started, internet operating, etc is time-consuming, and it's much faster to start from hibernate. – Daniel R Hicks – 2013-09-13T04:20:15.077

1

@DanielRHicks True, maybe I've spoiled myself getting my machines to start so quickly :) Not everyone has access to such modern hardware, as Lưu Vĩnh Phúc pointed out.

– Moses – 2013-09-13T04:34:54.953

21@moses: My computer costs about $0.03 an hour to run when idle. Assuming I'm away from my computer for at least 15 hours a day, that's $164 a year I save just by turning my computer off when I'm not using it. – BlueRaja - Danny Pflughoeft – 2013-09-13T06:23:57.940

Precisely. Hibernation isn't a faster power down/power up, it's a deeper sleep. – 3Doubloons – 2013-09-13T07:05:06.453

26@moses What you don't seem to get is that hibernation does NOT require power. When leaving my PC in hibernate, I UNPLUG it from the wall. Hibernation literally reads everything from the ram and saves it to the hard drive, to be loaded next time you start your PC. – David – 2013-09-13T07:35:36.997

1Comments have been removed. Please use comments to request clarification or add constructive information, not for discussion. Thanks. – slhck – 2013-09-13T09:37:36.320

1@moses - Some of us have computers that do real work. Right now there are 96 different processes running on my laptop, and I don't run any servers or keep Skype live or any of that stuff. It takes time to start all that. – Daniel R Hicks – 2013-09-13T12:15:32.857

6@BlueRaja Did you factor in how much money you lose in power & efficiency because you have to shut down and boot your computer again and set up your working environment anew? I don’t believe your number, on the contrary, I think hibernate is cheaper. – Konrad Rudolph – 2013-09-13T12:26:28.390

@David Where did you get the impression that I didn't know hibernation did not use power? I was aware of that. – Moses – 2013-09-13T12:33:32.923

1@KonradRudolph heck, by my calculations the startup/shutdown time alone would account for over 8 hours per year, based on 2 minutes combined, once every weekday. – Marc Gravell – 2013-09-13T12:33:34.203

1It should be said IMO that the need to start all programs again manually is only because some window systems, like apparently Windows, can't seem able to safe just the information about which programs were running, in which workspace (ach, Windows doesn't have those anyway...) and with what window configuration. XFCE for example does this by default, and an accordingly set up GNU/Linux can thus boot about as fast into a full working session as Windows boots into idle state – without hibernation. – leftaroundabout – 2013-09-13T13:09:23.010

6@leftaroundabout: Oh my, how much does the MS-bashing add to this conversation! Does the XFCE fairy also save internal program state? Because if it doesn't then it can't restore anything remotely resembling the computer's state before shutting down. "A" working session != the previous working session. – Jon – 2013-09-13T14:26:36.810

6@moses: Even through both Hibernation and Stand-by allow you to continue your work from where you left off, only Hibernation protects your work against power-losses when you are away. – Daniel Santos – 2013-09-13T14:29:36.967

1+1, and related: I use hibernate in Linux when I want to switch to Windows for games without closing any of my work. – Izkata – 2013-09-13T15:21:50.443

@David I did some experimenting a while back, hibernation/an "off-but-still-plugged-in" computer used a third of the power (10 mA if I recall correctly) as it did when it was in sleep mode (~30 mA). Unless you're actually unplugging it or switching off the PSU, there isn't really much of a difference. Plus, sleep-to-ready time can be several times faster. – Nick T – 2013-09-13T16:41:49.810

@MarcGravell So true. It is worse in many cases. From my experiences at work, where we have encrypted hard drives, it takes up to a disgusting 10 minutes or on average 5 mins to get to a useable state where I can open Outlook etc from powering on compared to from standby. That is a lot of time (rough guess of about 20 hours (from (5/7*365-30)*5/60 per year or two working days). Needless to say I use that time to boil the kettle instead of pulling my hair out. – Cor_Blimey – 2013-09-13T19:33:52.353

1@KonradRudolph: We seem to be saying the same thing? I'm saying that hibernating, which actually shuts down your computer, saves about $164 a year for me over leaving my computer on 24/7 as moses is advocating. *(Though, I actually do shut my computer down and not hibernate, because I've had issues with hibernating in the past, and with my fast SSD my computer literally boots in 15 seconds and programs start in under 1)* – BlueRaja - Danny Pflughoeft – 2013-09-14T01:18:56.310

@DanielRHicks for completeness of information, recent versions of Windows will boot in less than 15 seconds (barring any hardware initialization during POST.) – Shaun Wilson – 2013-09-14T04:28:10.117

@KonradRudolph hibernation used to have numerous bugs under NT5.0, but has been vastly improved since NT5.1 and further after NT5.2 - though many of these improvements to stability are actually improvements to the underlying driver architecture in windows. – Shaun Wilson – 2013-09-14T04:28:57.120

@ShaunWilson So? I’m not clear how that relates to my comment. – Konrad Rudolph – 2013-09-14T11:16:01.330

1At work, I use hibernation when I'm in the middle of a project at the end of the day so I can pick up where I left off. Most of the time, though, I shut it down. I found that Win7 has problems with mapped network drives when waking from hibernate. At home, I just let it run so all I have to do is hit "shift" on the keyboard and I'm ready to go. – TecBrat – 2013-09-14T15:04:25.767

2@ShaunWilson - I have great difficulty believing that you could boot most "real" PC configurations in 15 seconds. I believe that you can maybe get up to the signon screen that quickly (my laptop will probably do it in under 2 minutes), but from signon to really running is still probably 10 minutes. Prior to that, although the screen looks OK, the system is unusable due to long delays. – Daniel R Hicks – 2013-09-14T22:59:57.267

1@DanielRHicks I don't know what computer you have, but my Xubuntu install takes less than 3 minutes from a cold boot. Chromebooks are 8 seconds... – Vreality – 2013-09-15T18:14:37.007

@Vreality - I'm talking Windoze here. (Hence the "doze".) – Daniel R Hicks – 2013-09-15T19:47:34.847

Had to reboot this PM, so I timed it on my Sony laptop (dual core 2.0 GHz, 4.0 GB) running Vista. From start to signon was 1:45. From signon until the "swirly" stopped was 4:35. (Probably would have taken closer to 10 minutes, but I let is sit at signon for several minutes and didn't count that time.) And it took another 15 minutes or so for the disk light to stop flashing steadily. – Daniel R Hicks – 2013-09-16T00:51:28.237

@DanielRHicks Do you have an SSD? It used to take my Windows 7 PC 5 minutes to boot, but since I upgraded from a fast HDD to a fast SSD it boots in literally 15 seconds (most of which is from the BIOS). Saluto tells me there's another 45 seconds of startup programs loading after that (so a total of 1 minute to fully "boot"), but as soon as Windows loads I can immediately start using all my programs (which didn't used to be true), so it is effectively a 15-second boot. – BlueRaja - Danny Pflughoeft – 2013-09-16T01:04:02.693

3No, I don't have an SSD, and most people don't. SSDs are still 10x the cost of conventional hard drives, and less durable/reliable. Besides, much of the startup time is due to different apps and OS components interacting, getting all the icons loaded, configuring antivirus, connecting to the Internet, starting Skype, etc. That stuff would speed up somewhat with an SSD, but not by the scale factor seen in the early boot process. – Daniel R Hicks – 2013-09-16T11:16:31.330

1All these conversation about how long does a computer takes to boot makes me remember when some magazines (PC magazine, I think, don´t even know it still exists) began to compare Windows versions and OS/2 by how much they took to boot up. What happened? Microsoft made the windows "boot up" (=show the mouse cursor and make it move) in smaller times... so it "booted up" very fast. But if you look at that HDD/SSD led, it'll keep blinking as mad for a long time, loading things in background... yes, a fast boot up, for those who buy such concept. – woliveirajr – 2013-09-16T16:06:58.297

@DanielRHicks: Perhaps you should try using a computer with an SSD sometime, because the time to load a program is drastically faster. – BlueRaja - Danny Pflughoeft – 2013-09-17T18:17:19.073

1I have 14 computers in my house, none of them take more than 20 seconds to boot. All but one of them are a Windows machine. When people use the term "Windoze" and "Micro$oft" I can't take them seriously anymore. Fact is, the slowest booting machine I own is a quad core extreme 3.3ghz with an SSD... running Linux. – Shaun Wilson – 2013-09-18T03:28:22.873

@BlueRaja How much of that presumed power savings are you losing in the computer going through the power-expensive process of booting, over and over? Further, how much more is it costing you because your hardware dies faster because of the expand/shrink of heating/cooling every time you change the state of on/off? – killermist – 2013-11-30T00:02:45.687

30

Hibernation preserves the current system state, and lets you power down completely. Yes, you can boot in mere seconds, but how long will it take you to get your web browser, word processor, chat client, music player, etc. etc. etc. up after that? With hibernation, no time at all.

Ignacio Vazquez-Abrams

Posted 2013-09-13T04:10:06.123

Reputation: 100 516

14Don't forget to reopen an other 100+ tabs in the browser :P – Johannes Kuhn – 2013-09-13T13:02:56.897

2@JohannesKuhn buy a better browser :/ This should be a browser feature, obviously – sehe – 2013-09-15T09:57:11.163

19

Firstly, not everything is on SSD. I'm on a laptop right now with no SSD, and I hibernate all the time.

Secondly, hibernation preserves the full memory state (more or less). If you have a running process that you do not wish to close, hibernation is the way to go.

There have been a couple of times when I have had to pack up my laptop when there still is a running process. This is especially necessary when I'm running CPU-intensive programs like Mathematica or a compilation because putting the laptop inside a bag is one way to overheat it. Hibernation is the best thing to do here.

For desktop PCs, yes, hibernation makes less sense as you can still sleep/suspend and achieve the same effect. However, the need for hibernation on a desktop is -o different than the need for hibernation years ago. Booting up may be faster, but the standard boot doesn't give you back all your open programs. Sleep/Suspend/Hibernate do, and which one you want to use depends on whether or not you trust your power supply on a desktop. And in many cases, you can't -- I live in a city where there are scheduled power cuts every day in some parts of the suburbs.

The only thing modern technology gives us when it comes to hibernation is the ability to just shut down a computer when we aren't concerned about the running programs and restart with the same/similar speed as hibernation.

Manishearth

Posted 2013-09-13T04:10:06.123

Reputation: 1 136

18

For quick shutdowns during power outages...

UPS signals power out, machine checks battery level, saves system state to disk so it comes back exactly as prior to the power outage.

Otherwise shutdown can take too long to process, open programs don't always have clean shutdown from system initiated close and will damage or lose unsaved open documents.

Standby flat out doesn't do any of that...

Fiasco Labs

Posted 2013-09-13T04:10:06.123

Reputation: 6 368

In my experience, Windows take longer to hibernate than to manually save your opened files, close programs and shutdown – jsedano – 2013-09-13T15:15:51.870

1@anakata - I've observed that Windows (at least Vista) has a well-concealed "fast hibernate/fast restart" that works much faster than the command-driven version of hibernate. (Why the difference I haven't a clue.) This version appears to get invoked when the system shuts down due to low battery. – Daniel R Hicks – 2013-09-13T17:02:52.067

@DanielRHicks I never notice that, I used to use Hibernate when I wanted to preserve the state of my machine and suspend was not an option because it comsumes battery, but more than once when the battery level was critical the hibernation wasn't completed successfully and that is a PITA to recover from. – jsedano – 2013-09-13T17:18:45.023

6Who knows what evil lurks in the heart of Windows? – Daniel R Hicks – 2013-09-13T19:04:53.070

@anakata, first, we're talking UPS here, not laptop battery. You should have a UPS that can do its job properly. Second, yes manual close and shutdown is preferable, it's quicker and preserves your UPS battery, but there will be times when you're not present when the power cut hits. Hibernating with a dying laptop battery is just asking for it. – Fiasco Labs – 2013-09-14T03:24:18.333

1@anakata - Back in the olden days, right after semiconductor RAM took over from core, they had a design where a computer would "hibernate" during a power failure by using the momentum of the disk drive. A generator on the disk hub would provide enough power to dump RAM to disk. (Before the switch from core, of course, zero time was needed.) – Daniel R Hicks – 2013-09-17T18:24:44.260

13

Hibernation is the only way to turn off a computer completely and later, turn it on and get back the exact same state when you left it.

It has nothing to do with battery or laptop or boot time saver, ssd, new technology, old times and original purpose. The purpose has never changed. The way people use their computer nowadays don't change this.

Edit: for more details:

Since the computer has to get back to its previous state, it has to save it somewhere.

That's the purpose of the "hiberfil.sys" file on the hard drive. (We are talking windows OS)

This way it can save all the content of the RAM on the hard drive. Hibernation can be activated or deactivated. When activated, hiberfil.sys is created. (I haven't tried to see if it's deleted when turning hibernation off)

So one thing worth remember is that you will lose disk space when you use hibernation. By default, the hiberfil.sys file will have 75% the size of the RAM. Example: if you have 8 GB of ram, you will "lose" +-6 GB of Rom of your hard drive.

But its size can be configured (up to 100% of RAM). If you want to know more about it, here is a link from Microsoft: http://msdn.microsoft.com/en-us/library/windows/hardware/gg463229.aspx

Kev

Posted 2013-09-13T04:10:06.123

Reputation: 172

1Actually, Windows compresses its hibernation file. By default, it's about 75% of the size of physical RAM. – Bob – 2013-09-13T12:42:58.453

You are right, I'll update the answer. – Kev – 2013-09-15T15:06:12.477

10

I use hibernation all the time, as it saves my workflow. I detest rebooting because I have to re-think, where I left off from the previous day. At the end of the day I'll add what you might call a placeholder on my system, usually in Visual Studio or notepad. So after arising out of hibernation this is immediately presented, thus giving me a much needed memory jolt - especially useful when it's 9am and in need of coffee.

Visual Studio reminder!

Other people may use sticky notes plastered onto their screens, or read entries in their daily log. Whatever works for you. For me, my workflow is spread across numerous applications; Firefox, Visual Studio, Outlook, Windows Event Log, Microsoft SQL Management Studio, LINQPad, iPlayer, Greenshot, Notepad, and PowerShell. I'll reboot when forced by Windows Update, but otherwise I'd rather be productive. Just hibernate, take your laptop home, and not worry about the power as you would if it was sleeping.

wonea

Posted 2013-09-13T04:10:06.123

Reputation: 1 737

2Exactly! Booting: Something you do when you apply a hotfix, or if you manage to crash the system. The rest of the time, hibernate! – Mark Allen – 2013-09-13T19:39:58.820

9

Hibernation is targeted at the mobile business market where efficient use of battery power is necessary. Hibernation, while slow, draws almost no power. Standby, on the other hand, can still draws a surprising amount of battery.

When using a laptop on battery, hibernation can become especially useful when you know you are not going to be using it for awhile. The reason is threefold.

1) Standby still draws power that can add up to a large percentage of your battery if left for extended periods. Estimates vary on the power difference, and there could be significant differences depending on the PC. I'll edit should I find a power consumption comparison chart.

2) Applications can wake a PC from Standby without user interaction. Common examples are Windows Update, "background" virus or system scans or other background tasks. This creates an issue where you laptop has suddenly increased its power-consumption (without user consent) and is unlikely to return to standby upon task completion. This then kills your battery.

3) Should a PC wake from standby without user interaction, it could wake in an environment that is not PC-friendly, such as a sealed and insulated carrying case. This could quickly damage computer components should the computer heat up.

EDIT: Hibernation on a desktop makes little or no difference. The difference in power drain between hibernation/standby makes standby the obvious choice when a constant power source is available. The exception would be if you lived in an area when power outages are frequent and you don't want data loss.

Usta

Posted 2013-09-13T04:10:06.123

Reputation: 504

4Hibernation, once the machine is done saving RAM to disk and ignoring the short burst of power needed while reading RAM contents back from disk, draws *no* power. The system is shut down. You can unplug a desktop computer that is hibernated from the wall outlet, put it in storage, bring it back out a year later, plug it back in and power it on -- and keep typing the exact sentence you were working on. – a CVn – 2013-09-13T09:33:39.043

@MichaelKjörling subject to hard drive aging, of course. How long can hard drives be stored for before becoming unusable? :-) – John Dvorak – 2013-09-13T09:43:08.990

1@JanDvorak Of course; but assuming proper storage a year shouldn't be a problem at all. Besides, the point was that the system draws no power, which sleep mode does. – a CVn – 2013-09-13T09:50:12.933

Shutting the computer down and Hibernate still draws power, but of such insignificant amounts that realistically it draws no power. Computers continue to draw enough power to be aware of its LAN port. The majority of PCs seem to have that Enabled by default, and the computer needs to consume enough power to know when it is being 'told' to wake up. – Usta – 2013-09-13T13:41:55.300

On a Desktop hibernation does make sense when you typically turn off the machine from mains... – Akash – 2013-09-13T16:17:49.257

8

I want to concentrate more on the technical aspects. You have to distinguish between Sleep and Hibernate. Both allow you to resume your work in a short amount of time, but both have different features and thus allow for different usage scenarios. Both allow you to resume work in a relatively short amount of time.

Sleep

When your computer is sent to sleep, the majority of components of your computer are powered down. The memory is still being powered though, saving the state of your operating system for a quick resume. Running out of battery on a laptop or losing power otherwise will lose your session and unsaved work. There have also been cases where this damaged/destroyed the operating system. Due to this danger, this should probably only used on laptops supported by batteries or desktop computers hooked up to a UPS.

Hibernation

Hibernation saves the content of your memory to your hard drive, allowing the computer to be completely powered down and thus not wasting any energy. It also allows you to resume work at a different place, for example if you move your desktop computer to a new location or if you don't use a battery for your laptop. Since the memory content has to be read back into memory upon boot, getting the system back up and running takes longer than getting it out of sleep which is almost instantaneously.

Hibernation makes sense for people who have a lot of work going on that either can't be saved due to external circumstances or whose work setup is rather complex so that setting it up again would take an enormous amount of time. This can apply to laptop but probably mostly desktop users, since laptop users could also use sleep mode in conjunction with the laptop's battery. So hibernation makes especially sense for desktop computers which usually don't have an electric life line in form of batteries in case of a power outage.

Apparently, as is obvious from the other answers, people also use it to serve their laziness thinking it is actually a faster way of booting. I agree with the author of this question that in the days of SSDs and ever improving operating systems hibernation for such people doesn't really make sense. After all, there are benefits to rebooting such as flushing the memory to clear out memory leaks, removing rogue processes and whatnot. Saving the occasional seconds by using hibernation without a good reason will probably have detrimental effects if used over longer times.

Zerobinary99

Posted 2013-09-13T04:10:06.123

Reputation: 1 651

7

Not everyone is using SSD. The SSD usage is still much less than HDD at this point of time.

And even in the case of using SSD, when people are doing something and then they need to shutdown the computer while leaving the opening programs' state as-is, there's no solution other than hibernation.

phuclv

Posted 2013-09-13T04:10:06.123

Reputation: 14 930

7

I user hibernation on my desktop PC at work at the end of each day and only power it down completely over weekends. While it may not take a long time to get to the login prompt it takes a bit more time to start up the PC and all the programs I need and load in the projects I was working with. Both Visual Studio and Eclipse takes a while to load and then the projects take a bit more. Then the anti-virus needs to load before I can start doing anything and I also like to start up Outlook and it also takes a while. With hibernation I can switch on the computer and get to work almost instantly.

liftarn

Posted 2013-09-13T04:10:06.123

Reputation: 151

4

Hibernate allows you to unplug your PC from the outlet temporarily. Suppose you need to migrate to another place or inject the power meter between the outlet and your PC

enter image description here

You need to unplug the power cable first. Try doing that with sleep mode (which needs some power to sustain the RAM, I believe).

Furthermore, since you can see that Hibernate does not need any power to keep the state,

  1. It saves you more bills (and environment) that simple sleep,
  2. Hibertante is safer during night outages,

Val

Posted 2013-09-13T04:10:06.123

Reputation: 1

http://superuser.com/a/644780/110460 claimed that he needed to write a new answer because mine uses the "nontechnical word" temporary whereas undefinite time is more correct. Tell him that is not better because Hibernate makes sense only if you plan to restore. This implies a time limit indeed. If you do not want to restore then you do not need Hibernate. Remind him about temp folder on disk. Let him explain how wrong the folder naming in OS is and which answers he has to write about it. – Val – 2013-09-14T12:19:04.867

Next, he notices that I ignored the improved storage speed. But who cares? I am telling you a simple recipe: start choosing whether you want to log off and stay dependent on power source offline. This determines whether you need to Hibernate, sleep or shut down. Once this is decided, once you understand whether you want to Hibernate, sleep or shut down, the aspect of speed ceases to exist. You do not look at the speed when making the choice. – Val – 2013-09-14T12:50:51.707

2I find claims about environmental benefits always very tedious. Writing gigs of RAM to a SDD drive might wear out that drive sooner, and a new drive might undo any earlier energy benefits. Also, simple sleep, which doesn't need a computer to boot if the power was not dropped, might make more people sleep the computer for short periods. (Things like safe sleep, being sleep with an additional safety hibernate image in case power fails during sleep, are even better, if one only considers electricity.) And really, how often do you need to "migrate to another place or inject the power meter"? – Arjan – 2013-09-14T13:02:19.903

It really does not matter how often I need to migrate. The point is that EVERY TIME you need to do that, you use Hybernate. Ok? Do you have any objection to that? If no then why to ask? How often must be asked concerning the savings. You put everything upside down. Savings really depend on how often you go offline. If you restart the PC every minute then reload will cost more than any savings. Sleep is good for short interrupts, hybernate for longer. Since reload cost is constant while savings accumulate, they overweight at longer interruptions. – Val – 2013-09-14T14:37:24.773

1Switching OSes during hibernate is very dangerous because of caching. No OS likes to have the filesystem changed right under its nose. – kinokijuf – 2014-05-11T19:40:15.967

4

The questions in particular here requires additional information in this regard, and varily after that a suitable answer can be given. What kind of user are you?

Hibernation is particularly common in laptops and notebooks where the applications are left in the same state as you left them, and the system will come to its original state with everything in the same way.

If you are just a common user who uses the system for internet, games then the web pages and the state of game where you left them will be available to you after a regular boot.

If you are Office employee, and require that you use multiple instances of word or spreadsheet than,hibernate will restore that also.

Moat importantly, in case that you are a computer programmer, than the software which require to to that are large and take quiet some time to load and relocate all the files which you last coded, thus hibernate can also use for that

Thus you can see there are multiple uses

Hunain Usman

Posted 2013-09-13T04:10:06.123

Reputation: 121

4

Basically, for "sleep" mode, the computer turns off disk drives, displays, etc, and copies "state" out of power-hungry components into RAM (the last "power-hungry" component being the CPU itself). The RAM is then "kept alive" with a low-frequency refresh, and when something triggers the CPU to awaken it puts everything back where it belongs.

For hibernate most of the above occurs (plus any additional "state" is saved that was not saved above) and then the RAM image is written to "disk" (ie, persistent storage), as one big "file" (though on a reserved location in disk). At this point there is no "state" in the machine that is not represented by the RAM image on disk and the computer can be completely powered off. When the CPU is powered back on it checks for a RAM image on disk, and if there is one (and there's been no subsequent "boot") the image is read back into RAM and the system essentially restarts as if from sleep.

Daniel R Hicks

Posted 2013-09-13T04:10:06.123

Reputation: 5 783

4

As someone who works in IT in a corporate environment, with computers that are managed by Windows group policy, hibernate can cut down our boot time to 1/4 or less of what it would be to do a clean startup. Most of the management tasks that happen during boot don't need to happen during wake from hibernation. Of course, in our environment, we periodically reboot to catch updates and other config changes, but we can do that at our convenience such as over lunch breaks.

Plus in the environment we're in, we use self-encrypting hard drives as a security measure, and the ones we use are still spinning disks so we can't benefit from SSD speed yet, and may not for some time.

Doing a clean boot-up every time you turn the computer on also wastes more power than hibernate, since instead of simply pulling data back into RAM, every single application as well as the OS has to go through its full startup routine, which can cause far more CPU activity and hard drive usage.

trpt4him

Posted 2013-09-13T04:10:06.123

Reputation: 1 440

3

The answer is obvious to me.

Shutdown quits and closes everything. Then, after startup, I have nothing open.

A contrario, hibernation and then wake-up give me everything I had on the screen — even unsaved documents.

Nicolas Barbulesco

Posted 2013-09-13T04:10:06.123

Reputation: 371

2

The fact that your laptop starts under one minute doesn't mean that all laptops on the world start so fast. I have cheap travel-class laptop, used only for internet, and it's very slow. Startup takes a few minutes, shutdown sometimes much over minute. While restoring from hibernate isn't blitz-fast, it's significantly faster than booting, and hibernating is much faster than shutdown.

Standby simply isn't reliable on machines I was using. Leaving notebook standbyed for a half of the day often ended in failed startup and forced reboot, after which I'd had to restore the whole desktop. Not to mention the need to unplug device or the temporary power shortage.

Actually, I know a few people, who thinks that reboot is deprecaded and haven't rebooted for months - using only hibernation. (They are not using Windows, of course;)

Danubian Sailor

Posted 2013-09-13T04:10:06.123

Reputation: 464

Standby simply isn't reliable on machines I was using. Some notebooks are not reliable. That is why we should not use them. Find the difference in this logic with your argument. – Val – 2013-09-13T09:01:27.203

1@Val I don't understand your point. I was writing about my experience. You can say you have other experience, but you can't question mine. – Danubian Sailor – 2013-09-13T09:10:28.823

I have seen that you tried to use the logic in addition to your experiance. Sorry for making that guess. – Val – 2013-09-13T09:17:20.623

Windows has some problems when not carefully configured in that, in sleep mode, with an unplugged laptop, it will keep waking up until the battery is run down. At this point it will usually attempt to hibernate, but the battery may be so far gone that it fails. (But of course this says nothing about the concept of either sleep or hibernate, just lousy implementations.) – Daniel R Hicks – 2013-09-13T11:58:42.593

@DanielRHicks the question was why it's used and lousy implementations are one of reasons. My asnwer simply states, I'm using hibernation because longer standby is too unreliable for me. – Danubian Sailor – 2013-09-13T12:06:43.223

2(I was agreeing with you.) – Daniel R Hicks – 2013-09-13T12:10:28.320

2

Another innovative use of the Hibernation feature was its use by Dell MediaDirect 2.0's Express feature for laptops. That was basically a quick boot option that loaded up a custom media player application.

It worked by having a hidden partition with a Windows XP Embeded instalation, including only what is needed to run a media player program, and a custom media player/explorer program. Since the embeded install is basically a stripped down windows, that alone results in faster startup time.

The first time you run it will hibernate once fully loaded, and then reboot back to itself. From then on each boot is simply a restore from that initial hibernation, which resulted in substancially faster boot times. If the software ever had to be updated, or a hardware change invalidated the hibernation file, it would simply delete and recreate it.

(I may have a few details wrong, it has been a while since I last used it, but the above shows the basic concept.)

The basic concept would also apply to non-mobile special purpose windows devices, such as a desktop-based kiosk. If reading the hibernation file from an SSD, combined with a fast start bios, the resulting boot speed might be good enough to allow the kiosk to be off by default, and started by the user on demand.

Kevin Cathcart

Posted 2013-09-13T04:10:06.123

Reputation: 471

2

tl;dr; Shut-off computer without losing another user's work.

I am a huge fan of hiberate and have always set it up on my home desktops. Only recently in the last year have I disabled it after replacing my boot drive with striped SSDs. The choice wasn't due to the fast speed of the SSDs though. I had spent a lot of money on my "new toys" and writing a large memory dump to a SSD on each shutdown isn't good for the life of a SSD. I'd still have hibernate enabled if I could direct it to a secondary non-SSD drive.

On my other computers that don't have SSDs I still use hiberate because they are multi-user and it's nice to be able to shut a computer all the way off without having to worry about losing another users data. A family member may have been researching homework on the web and got side tracked leaving the computer running. I am able to shutdown the computer without losing their work.

user248279

Posted 2013-09-13T04:10:06.123

Reputation:

0

Thought I'd toss one more reason in the pile: having multiple OSes on a machine. If you dual boot between Linux and Windows, for example, you can switch to the other OS and come back without losing any work.

Synthead

Posted 2013-09-13T04:10:06.123

Reputation: 221