From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id B66B61381F3 for ; Mon, 26 Nov 2012 08:18:59 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D69A321C046; Mon, 26 Nov 2012 08:18:44 +0000 (UTC) Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 4317321C008 for ; Mon, 26 Nov 2012 08:17:32 +0000 (UTC) Received: from compute2.internal (compute2.nyi.mail.srv.osa [10.202.2.42]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id D712D2077E for ; Mon, 26 Nov 2012 03:17:31 -0500 (EST) Received: from frontend2.nyi.mail.srv.osa ([10.202.2.161]) by compute2.internal (MEProxy); Mon, 26 Nov 2012 03:17:31 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=binarywings.net; h=message-id:date:from:mime-version:to:subject:references :in-reply-to:content-type; s=mesmtp; bh=oKDDFKkq9udkUMxIAM36JYyc 9wY=; b=WZ8JgnHd2fBa1anji9Vl0wcqEoHzY7dlEQiUIpzxUoqXxnIz2gW9bLIK COvBhEUJlQcnIaHv9DIB0ify3w6kOWT6hD9Y1Avxv7wc5O/pST6+FAJ7jIowreZk vZLAqjCY1+j7P5D36haAHsAhVhGmaeDRwZY2HZdY7G1xa8AkQZs= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=message-id:date:from:mime-version:to :subject:references:in-reply-to:content-type; s=smtpout; bh=oKDD FKkq9udkUMxIAM36JYyc9wY=; b=olu92z9r/WMuycvs4X+V3y4os1FFImlGqveO HyGyjHOGEmD48JD0QlhVo8mALkn/27Cn07ih3dKl2aqyEL2AD4zbzPjzlyeJ/L5M PyZAUiPJ0vxGVuRzhcWvLN+SzOIm8+m/5C1gGe1TDmW7MWaznNcW+NPhXDTb8mw5 PEa9fec= X-Sasl-enc: YvgDpy1wgRId1KRdE8hRdX1Mf8O/bQRf5eudEZZFzaOm 1353917849 Received: from [192.168.5.18] (unknown [83.169.5.6]) by mail.messagingengine.com (Postfix) with ESMTPA id 71922482640 for ; Mon, 26 Nov 2012 03:17:29 -0500 (EST) Message-ID: <50B32590.4060502@binarywings.net> Date: Mon, 26 Nov 2012 09:17:20 +0100 From: Florian Philipp User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.10) Gecko/20121117 Thunderbird/10.0.10 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] swap on ssd? References: <1353883588.13218.5.camel@moriah> In-Reply-To: <1353883588.13218.5.camel@moriah> X-Enigmail-Version: 1.3.5 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigC367EB5D1A849C1B04F0B64C" X-Archives-Salt: 8151317f-71ef-4392-8d5d-4cb80ea003b3 X-Archives-Hash: d7f702e34b4aaf757d0394663b17efd0 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigC367EB5D1A849C1B04F0B64C Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Am 25.11.2012 23:46, schrieb William Kenworthy: > Has anyone tried swap on ssd? - has it killed the drive prematurely? -= > any other effects? >=20 > 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. >=20 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? >=20 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 --------------enigC367EB5D1A849C1B04F0B64C Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAlCzJZUACgkQqs4uOUlOuU999ACaA8ecMiiI8AIvkqq82ZrBNhml 7k8Ani9ev3dn0GLjEj6EF34sKcG6vK+3 =XlQZ -----END PGP SIGNATURE----- --------------enigC367EB5D1A849C1B04F0B64C--