decoration decoration
Stories

GROKLAW
When you want to know more...
decoration
For layout only
Home
Archives
Site Map
Search
About Groklaw
Awards
Legal Research
Timelines
ApplevSamsung
ApplevSamsung p.2
ArchiveExplorer
Autozone
Bilski
Cases
Cast: Lawyers
Comes v. MS
Contracts/Documents
Courts
DRM
Gordon v MS
GPL
Grokdoc
HTML How To
IPI v RH
IV v. Google
Legal Docs
Lodsys
MS Litigations
MSvB&N
News Picks
Novell v. MS
Novell-MS Deal
ODF/OOXML
OOXML Appeals
OraclevGoogle
Patents
ProjectMonterey
Psystar
Quote Database
Red Hat v SCO
Salus Book
SCEA v Hotz
SCO Appeals
SCO Bankruptcy
SCO Financials
SCO Overview
SCO v IBM
SCO v Novell
SCO:Soup2Nuts
SCOsource
Sean Daly
Software Patents
Switch to Linux
Transcripts
Unix Books

Gear

Groklaw Gear

Click here to send an email to the editor of this weblog.


You won't find me on Facebook


Donate

Donate Paypal


No Legal Advice

The information on Groklaw is not intended to constitute legal advice. While Mark is a lawyer and he has asked other lawyers and law students to contribute articles, all of these articles are offered to help educate, not to provide specific legal advice. They are not your lawyers.

Here's Groklaw's comments policy.


What's New

STORIES
No new stories

COMMENTS last 48 hrs
No new comments


Sponsors

Hosting:
hosted by ibiblio

On servers donated to ibiblio by AMD.

Webmaster
What do you use it for? | 179 comments | Create New Account
Comments belong to whoever posts them. Please notify us of inappropriate comments.
What have you got against the swap partition?
Authored by: ailuromancy on Thursday, September 20 2012 @ 02:57 PM EDT

Why do people 'know' that swap is bad for SSD despite the fact that for almost all use cases swap would take hundreds of years to damage an SSD?

Some old kernels wasted some CPU time failing to swap if there was no swap partition. AFAIK, that is a thing of the past. Truly ancient computers were desperately short of RAM, but disks were relatively cheap. If you actually used more swap space than about twice the RAM, then your computer would be annoyingly slow. Modern machines have an abundance of RAM, and will work fine without a swap partition.

Like you, my biggest use of swap in compiling in tmpfs. I do that so a power cut means restarting the compile, not restoring a filesystem if it got corrupted.

Here is an estimate of how long your ssd will last. Change sda to the name of your ssd. Set the write amplification (1.1 is a boast from Intel. The lowest boast I have seen is 0.5). Set the erases to 100000 if you have a really expensive SSD or 1000 if you got conned.

ssd=sda; amplification=1.1; erases=10000; read < /sys/block/$ssd/stat -a a; sectors_written=${a[6]}; read </proc/uptime on idle; echo "$erases*$(</sys/block/$ssd/size)*$on/($sectors_written*& #36;amplification*3600*24*365.24)" | bc

I get 66 years for the laptop, 12641 years for the desktop and 8563 years for the π. Wear levelling and enormous sizes make it really hard to wear out an SSD. The practical way to break one is to pull the power when they are collecting garbage.

[ Reply to This | Parent | # ]

What do you use it for?
Authored by: Anonymous on Friday, September 21 2012 @ 01:41 PM EDT
Its not how old your machine is, or what its specs are, its how do you use it?
If you have a lot of ram and don't use it hard, then swap is unnecessary. But
if you push it to the limit on a regular basis, then swap is still useful.

I have 8G of ram, but I do 3D rendering that can quickly use that up, so I still
use a swap partition. I use an 8G partition though, not double the ram, because
monitoring the performance showed that I never used more than 6G.

[ Reply to This | Parent | # ]

What have you got against the swap partition?
Authored by: Nivag on Sunday, September 23 2012 @ 12:51 AM EDT
New rule for swap is RAM + 2GB, allows room for hibernation. It is what I use
for my 8GB & 16GB Linux boxen.

[ Reply to This | Parent | # ]

Groklaw © Copyright 2003-2013 Pamela Jones.
All trademarks and copyrights on this page are owned by their respective owners.
Comments are owned by the individual posters.

PJ's articles are licensed under a Creative Commons License. ( Details )