From: Florian Philipp <lists@binarywings.net>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] swap on ssd?
Date: Mon, 26 Nov 2012 09:17:20 +0100 [thread overview]
Message-ID: <50B32590.4060502@binarywings.net> (raw)
In-Reply-To: <1353883588.13218.5.camel@moriah>
[-- Attachment #1: Type: text/plain, Size: 1375 bytes --]
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
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 262 bytes --]
next prev parent reply other threads:[~2012-11-26 8:18 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 ` Florian Philipp [this message]
2012-11-26 12:40 ` [gentoo-user] " William Kenworthy
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=50B32590.4060502@binarywings.net \
--to=lists@binarywings.net \
--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