Does having swap space on a solid state drive affect the drive's lifetime?

3

Let's say you have an 8GB solid-state hard drive, which has a limited number of writes by nature (I think). If you have swap space for your Ubuntu installation, will the lifetime of your solid state drive decrease because of the swap space? If so, would disabling the swap space increase the lifetime of the drive? Would there be any downside to not having swap space to cover those situations where you run out of RAM space (like computer freezing or crashing)?

Brian T Hannan

Posted 2010-01-28T01:34:41.923

Reputation: 891

Answers

4

would disabling the swap space increase the lifetime of the drive?

that is fairly easy to answer: yes, any write operation avoided will increase the life span of a solid state disk.

but will your computer live long enough to tell the tale? hardly. :)

Molly7244

Posted 2010-01-28T01:34:41.923

Reputation:

Amen on your last sentence, when was the last time you actually something long enough for it to break? – Ivo Flipse – 2010-01-28T07:24:56.597

0

Yes, as I understand it, SSDs are not recommended for storing pagefiles or swap space. They'd be really fast at it, but it will be detrimental to the device's overall lifetime.

quack quixote

Posted 2010-01-28T01:34:41.923

Reputation: 37 382

1So what? I know I would certainly prefer faster swap at the cost of device lifespan. Nothing lasts forever. – micmcg – 2010-01-28T02:15:37.447

1so what? spend your budget however you like. i know i'd certainly prefer replacing equipment as seldom as possible. nothing lasts forever, but toys last longer when you take care of them. – quack quixote – 2010-01-28T02:35:29.053

Yeah but does it make a difference over a sensible lifespan? Like is it the difference between 6 months and 3 years, or the difference between 10 years and 15 years? The first is relevant, the second is a total "so what". If the drive would still get 3+ years of use as a swap, to me the speed boost is worth the shortened life span. The speed boost may extend the life of your computer as a whole, postponing the replacement of that "toy" – micmcg – 2010-01-28T04:37:47.743

hey, if you wanna buy me two SSDs, i'll be happy to try it out and tell you when the one with the swapfile breaks. – quack quixote – 2010-01-28T07:01:37.710

0

In theory.

In practice, it isn't that much of an issue. The drives are ratted for years of continuous full bandwidth writing (granted, that is the whole of the drive, rather than a few GB of swap).

Go read up on the anandtech.com articles on them.

Ronald Pottol

Posted 2010-01-28T01:34:41.923

Reputation: 641