Can hibernating the computer damage the RAM?

52

10

I always hibernate my laptop. One of my friends said that hibernating the computer will cause damage to the RAM. From his point of view he said that suspended RAM data stored on the hard disk will burst into the RAM when the system is turned on and decrease the efficiency & lifetime of the RAM by creating black spots.

Is that true? Are there any other disadvantages to hibernating the computer?

Adithya Pathipaka

Posted 2015-04-29T08:17:59.083

Reputation: 677

74It couldn’t “burst in to the RAM” even if it wanted to, because a hard drive or even SSD is several orders of magnitude slower than RAM. ;) – Daniel B – 2015-04-29T08:33:03.807

84I have bad news for your friend. Your friend knows nothing about memory in a computer works. If hibernate caused physical damage to computers it wouldn't exist on nearly ever operating system in existence. – Ramhound – 2015-04-29T11:00:39.457

55Did he say "RAM"? Maybe he meant the SSD? Forcing the OS to page out all the RAM definitely increases the amount of data written to the SSD, reducing its lifetime. – AndreKR – 2015-04-29T13:28:14.163

15

Computers usually use DRAM so it seems unlikely as the DRAM is constantly refreshed. I means that whole RAM is read and written to about 15 times per second. So it would seem likely that any other read/write would have negligible effect on lifetime. Assume you would hibernate/resume only for 15 minutes each time - you would get 13500 writes of whole memory due to refreshes and 1 due to resume.

– Maciej Piechotka – 2015-04-29T15:51:12.503

20Your RAM can happily shovel around several gigabytes of data per second, all day, every day. Your friend is talking nonsense. – Boann – 2015-04-29T11:39:13.943

5The RAM will be fine as long as the hard drive truly loves the RAM and treats it gently, with the care, attention and respect it deserves. – JakeGould – 2015-04-30T00:35:41.447

4It could theoretically happen if you use ferrite core memory for your RAM. However, I doubt that you'll find a computer which uses ferrite core memory and has a modern operating system capable of hibernation, as ferrite core memory was obsoleted 40 years ago. – vsz – 2015-04-30T10:03:33.313

@AndreKR OP is using an SSD? – MonkeyZeus – 2015-04-30T19:23:47.933

1@MonkeyZeus Who isn't? :D – AndreKR – 2015-04-30T19:47:52.790

@AndreKR Looks like OP isn't based on this part: ...data stored on the hard disk will... – MonkeyZeus – 2015-04-30T19:51:16.247

1Good catch. Still, I can imagine the OP's friend meant that hibernating can cause damage to SSDs. – AndreKR – 2015-04-30T20:50:28.870

1

@AndreKR is right, see http://www.makeuseof.com/tag/disable-hibernate-ssd-warranty-purposes/. "A PC with 32GB of RAM, if hibernated 4 times a day, writes up to 46.7 terabytes per year in hibernate file writes alone. This voids many manufacturer warranties, if they place a cap on “host-writes” (which differs from NAND writes, due to a factor known as “write amplification“."

– amdn – 2015-05-01T15:23:56.950

I recall hearing a story Back In The Day that goes something like: A government-run lab were given a brand-spanking new computer. The scientists all oooh-ed and aaah-ed over it as it was installed, and profusely thanked the minister whose influence had enabled the lab to get the computer. About a year later, though, when the minister visited the lab again he found that the computer was sitting in a darkened room, turned off. Upon inquiring "Why?" he was told, "Well, there's only so many machine cycles built in to the computer, and we don't want to use them up too quickly". :-) – Bob Jarvis - Reinstate Monica – 2015-05-01T16:40:14.637

I wonder if the number of upvotes on this question is indicative of the amount of misinformation that is propagated about technology by people who don't understand it. – RockPaperLizard – 2015-05-02T08:09:40.953

Your friend was joking :-) "Burst into RAM" - there is no such thing. I wonder why moderator has protected this post. I would delete it at all. And I wonder why do people write 6 answers when all the answers are stating the obvious - NO. – Jet – 2015-05-02T23:15:21.203

1@Jet: It's only "obvious" when you know the answer. This is a perfectly reasonable question. – Lightness Races with Monica – 2015-05-03T01:42:53.697

No. It doesn't affect the RAM, normally when you use hibernation the system store the RAM to the HDD and on next boot it will reload it again from the disk to the RAM. – garybsimon – 2015-04-29T08:22:43.553

Answers

103

Hibernation will not damage your computer's RAM. In fact, your computer's RAM must continuously rewrite itself during operation to maintain its stored data.

  • When you place your computer into hibernation, any RAM in use is compressed and stored onto disk. When you turn your computer back on, the compressed RAM image is loaded and normal operation is resumed.

  • As with most devices requiring a non-trivial amount of working memory, the type of memory your PC uses is called dynamic RAM (DRAM). DRAM must be continuously refreshed to maintain its contents, and this refreshing is nothing more than rewriting the stored data. Your computer does this up to 16 times a second (every 64 ms). As such, hibernation does not unduly stress the RAM and will not damage it in any way.

  • Your friend may be confusing this with the fact that hibernation involves writing a potentially large amount of data to disk. If the system uses an SSD as a boot disk, frequent hibernation (more than a few times a day), especially if many programs are running, can reduce the lifespan of the SSD, as flash memory does have limited write endurance. In normal usage, this is not a concern as modern SSDs are designed to handle tens of gigabytes of writes per day over five years or more. (Do note that the memory image is compressed as it is written to disk, which itself reduces the total amount of writing.)

bwDraco

Posted 2015-04-29T08:17:59.083

Reputation: 41 701

3

To assuage any concerns about lifetimes for modern SSDs, see this experiment: http://techreport.com/review/27436/the-ssd-endurance-experiment-two-freaking-petabytes

– cartographer – 2015-05-01T16:58:30.200

4@cartographer is right. Generally, there's no reason to be concerned about SSD flash endurance unless you constantly write more than one quarter the drive's capacity a day to it every day. Most consumer workloads won't come anywhere near these limits. – bwDraco – 2015-05-01T17:03:50.487

The entire contents of the RAM are overwritten 16 times a second; whether or not they've changed? From my amateur point-of-view, that seems super inefficient. – Carcigenicate – 2015-05-02T23:34:25.810

@Carcigenicate that's just the way DRAM works. There are other kinds of RAM that are stable, but they're slower, or significantly more expensive than you'd be willing to pay for RAM. And it's all handled by the memory controller, or even the DIMMs themselves, so it doesn't require any effort on the part of the CPU. – Jay Kominek – 2015-05-02T23:56:21.487

@Carcigenicate: As I understand it, it's done by the CPU's integrated memory controller these days. Yes, it's inefficient, with DDR3 modules typically drawing anywhere from 2 to 10 watts depending on capacity, speed, and voltage. – bwDraco – 2015-05-03T00:14:23.110

I love how nearly every conversation about general computing performance and reliability involves re-explaining points about SSDs, because the entire human population is inexplicably unable to retain an understanding of how SSDs work. Great answer, btw. – Jason C – 2015-05-03T21:58:42.967

17

As a matter of fact, your RAM must be discharged from every bit of data at the moment that hibernation takes place. This just empties it the same way as cutting off any energy source.

At wake up, the process is reversed as the RAM will be filled with "on disk" data.

This behavior is just as "soft" as your daily use of RAM when you launch and stop your applications, playing games, editing photos, etc.

If it was not the purpose of RAM to accept such rapid charging and discharging data, then it would not have been created the way that it was.

Continue with your habits or invest in a SSD to speed up your boot times and perhaps prefer to "shutdown" instead of "hibernate" your computer.

ChtiSeb

Posted 2015-04-29T08:17:59.083

Reputation: 179

11Or just leave it on forever! – None – 2015-04-29T14:43:03.723

10Remove the last paragraph and you'll have my upvote :) – That Brazilian Guy – 2015-04-29T15:48:02.587

8

Your friend has great imagination. But to say that writing data from HDD to RAM can burst your RAM is like saying that driving a Ferrari at 40 miles per hour can damage the engine. It can't because RAM is much faster.

Yuriy Zaletskyy

Posted 2015-04-29T08:17:59.083

Reputation: 217

4

No, it doesn't damage the RAM. The RAM is rewriting itself during normal operation.

Hibernation does however use the hard disk (defined as writing RAM contents to disk and shutting down the system).

Andrés Segovia

Posted 2015-04-29T08:17:59.083

Reputation: 183

0

One thing that the other answers have omitted is that, in modern operating systems, the entire hibernated contents of the RAM are not written back right away upon awakening. Enough is written back to make the computer usable, and the rest is used like a virtual memory cache, with the memory manager deciding what does and doesn't need to be written back to memory--the same way it works when you are just using computer normally.

Windows 8 even takes this further, in that it separates out two different parts of memory and hibernates them into different files. Only the part needed to have the computer running at all is in the hibernation file. The rest is written directly to the page file. In fact, the fast "startup mode" of Windows 8 is actually just resuming from hibernation using the hibernation file, but not using the page file. Hence, your friend is likely using hibernation all the time without knowing it.

The main benefit in not hibernating is just that you start out with a clean slate. (Or cleaner state in the case of Windows 8's fast start up mode). Memory does get corrupted over time. But you deal with the same issue just from leaving your computer on all the time.

The best solution is just to occasionally restart your computer. If you have Windows updates turned on (and you should) you probably do that anyways.

trlkly

Posted 2015-04-29T08:17:59.083

Reputation: 1 236

1This answer could be improved with cited sources. – Jason C – 2015-05-03T22:04:27.193

"In fact, the fast "startup mode" of Windows 8 is actually just resuming from hibernation using the hibernation file, but not using the page file." This isn't true. "fast startup mode" restarts the user session(s) from scratch, but not the system session. – Jamie Hanrahan – 2016-04-04T20:58:48.367