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 2A2481381F3 for ; Mon, 26 Nov 2012 12:42:26 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 239B421C048; Mon, 26 Nov 2012 12:42:10 +0000 (UTC) Received: from icp-osb-irony-out5.external.iinet.net.au (icp-osb-irony-out5.external.iinet.net.au [203.59.1.221]) by pigeon.gentoo.org (Postfix) with ESMTP id 7E501E0574 for ; Mon, 26 Nov 2012 12:40:57 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgEFAD9is1B8qbaU/2dsb2JhbABEhii2KYNTFnOCHgEBBSNKBxULDQsCAiYCAlcyh3OsapIrgSKLFYEaghSBEwOIXJMQIoo3gnw X-IronPort-AV: E=Sophos;i="4.83,320,1352044800"; d="scan'208";a="63061999" Received: from unknown (HELO moriah.localdomain) ([124.169.182.148]) by icp-osb-irony-out5.iinet.net.au with ESMTP; 26 Nov 2012 20:40:55 +0800 Received: from localhost (localhost [127.0.0.1]) by moriah.localdomain (Postfix) with ESMTP id 095C52810AF for ; Mon, 26 Nov 2012 20:40:55 +0800 (WST) X-Virus-Scanned: amavisd-new at lan.localdomain Received: from moriah.localdomain ([127.0.0.1]) by localhost (moriah.lan.localdomain [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id a5g2CicUWpHQ for ; Mon, 26 Nov 2012 20:40:46 +0800 (WST) Received: from [127.0.0.1] (localhost [127.0.0.1]) by moriah.localdomain (Postfix) with ESMTP id 213F22810D3 for ; Mon, 26 Nov 2012 20:40:46 +0800 (WST) Message-ID: <1353933645.14023.15.camel@moriah> Subject: Re: [gentoo-user] swap on ssd? From: William Kenworthy To: gentoo-user@lists.gentoo.org Date: Mon, 26 Nov 2012 20:40:45 +0800 In-Reply-To: <50B32590.4060502@binarywings.net> References: <1353883588.13218.5.camel@moriah> <50B32590.4060502@binarywings.net> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.4.4 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 Content-Transfer-Encoding: 7bit X-Archives-Salt: 6baac5ca-e0ad-4b0d-9dfc-4dd6db42680d X-Archives-Hash: 05ef3b1419a5096783a897cb28e26b1f 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