public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: William Kenworthy <billk@iinet.net.au>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] swap on ssd?
Date: Mon, 26 Nov 2012 20:40:45 +0800	[thread overview]
Message-ID: <1353933645.14023.15.camel@moriah> (raw)
In-Reply-To: <50B32590.4060502@binarywings.net>

On Mon, 2012-11-26 at 09:17 +0100, Florian Philipp wrote:
> Am 25.11.2012 23:46, schrieb William Kenworthy:
> > Has anyone tried swap on ssd?  - has it killed the drive prematurely? -
> > any other effects?
> > 
> > I have a system that is maxed with with 4G ram and tends to use swap
> > heavily at times which slows things down ... so I am thinking a small
> > ssd might help here.
> > 
> 
> You should tell us which model you want to use. In any case, if it is
> relatively recent, I don't think you can actually break it with write
> cycles anymore unless you keep it 100% busy 24/7.
> 
> > Another slower alternative is a usb thumbdrive ... might try that later
> > today as I have some around ... again anyone tried this and found
> > something unexpected?
> > 
> 
> Thumbdrives have much simpler wear leveling. They also use triple level
> cells (TLC) which are even worse than the MLCs found in cheaper SSDs.
> Not to forget that USB doesn't support proper DMA and therefore
> increases CPU load. Long story short: Swapping on thumbdrives is as fast
> as a snail riding a turtle -- but turtles have a longer life span.
> 
> Another idea:
> You can try to reduce the swap load by using frontswap with zcache. It
> compresses memory pages in RAM which would otherwise be swapped. You
> still need swap but less often.
> 
> Enable
> FRONTSWAP
> CRYPTO
> CONFIG_STAGING
> CONFIG_ZCACHE
> 
> then add "zcache" to your boot parameters.
> 
> Regards,
> Florian Philipp
> 

Now thats interesting, more knobs to twist/buttons to push :)  

Thanks for that info!

My original question was on writing to swap destroying ssd's - but I
seem to remember that problem was more hot air than fact - born out by
the fact that no-one has jumped with an actual failure.  My work macbook
air (gentoo of course) has swap on the ssd, but with 8G ram its hardly
ever used unlike my home desktop/server which I am talking about here.
I did try an early intel ssd for a week (only drive in a dual core atom
system) before I had to give it back and it was certainly FAST.

Ive just had a a 500G drive expire so the hobby cash I was going to use
for the ssd has gone on a new WD 2TB - next month then :(

Was pushing a load of 109 at one stage trying to sync a small cephfs
cluster with one osd on the failing drive.

Yes, I would love to upgrade, but its also a good learning experience to
keep pushing the old rig - I dont get to play with this stuff otherwise.

Maybe Santa will call this year ...

BillK








      reply	other threads:[~2012-11-26 12:42 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-25 22:46 [gentoo-user] swap on ssd? William Kenworthy
2012-11-25 23:02 ` Volker Armin Hemmann
2012-11-25 23:51   ` felix
2012-11-26  0:23   ` William Kenworthy
2012-11-26  0:29     ` microcai
2012-11-26  1:08       ` Bill Kenworthy
2012-11-26  3:25         ` 微蔡
2012-11-26 10:01     ` Volker Armin Hemmann
2012-11-26 11:48       ` microcai
2012-11-26 13:16         ` Alan McKinnon
2012-11-26 13:50           ` Dale
2012-11-25 23:18 ` Neil Bothwick
2012-11-26  7:35   ` Daniel Troeder
2012-11-26 15:45   ` [gentoo-user] " Grant Edwards
2012-11-26  8:17 ` [gentoo-user] " Florian Philipp
2012-11-26 12:40   ` William Kenworthy [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1353933645.14023.15.camel@moriah \
    --to=billk@iinet.net.au \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox