From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-user+bounces-148814-garchives=archives.gentoo.org@lists.gentoo.org> Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 1C8A11381F3 for <garchives@archives.gentoo.org>; Mon, 22 Jul 2013 08:23:25 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id CA045E09EB; Mon, 22 Jul 2013 08:23:18 +0000 (UTC) Received: from mail-gg0-f177.google.com (mail-gg0-f177.google.com [209.85.161.177]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id C6085E09D7 for <gentoo-user@lists.gentoo.org>; Mon, 22 Jul 2013 08:23:17 +0000 (UTC) Received: by mail-gg0-f177.google.com with SMTP id i1so1987496ggn.22 for <gentoo-user@lists.gentoo.org>; Mon, 22 Jul 2013 01:23:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=F2e9ibqZnFKHHu7rfwgSJybTfaZ44FB3nrA17vkGkiM=; b=EO38ELbW2YiDpaY6eEaExH4jrzk0TlThkvEs0KO2r/eEdVTeTlzMQFD4xtfSqQ1DBP 6lVRPi8MdtVTGNI9mcXSUCFR6HdwDBO1eaOVF1kIcSEqIOLwSUzgdFvASptHDvpAOkNV wfZiY8+96oC3NfhmmInVDyb9J2Vd+8byFducL2XE/5le4iq/YkJ6mswvYgKF2ESnxbz0 t24yzb+I/1e10/lQsMOQf7+LIMnDJSbsE4PDu+xXHohbvu6Ss9jOaPFVHPqZjdUSJyIQ x7cv7XRE/uupu/9/Dwkt7UiaDCpnlTbFms7SL3ebJ0vJvF59p8k+vwlsQLWxaghITW6Z vA3g== X-Received: by 10.236.210.106 with SMTP id t70mr12814280yho.206.1374481396674; Mon, 22 Jul 2013 01:23:16 -0700 (PDT) Received: from [192.168.2.5] (adsl-65-0-122-60.jan.bellsouth.net. [65.0.122.60]) by mx.google.com with ESMTPSA id v68sm37894059yhn.22.2013.07.22.01.23.15 for <multiple recipients> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 22 Jul 2013 01:23:16 -0700 (PDT) Message-ID: <51ECEBEF.3000900@gmail.com> Date: Mon, 22 Jul 2013 03:23:11 -0500 From: Dale <rdalek1967@gmail.com> User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:22.0) Gecko/20100101 Firefox/22.0 SeaMonkey/2.19 Precedence: bulk List-Post: <mailto:gentoo-user@lists.gentoo.org> List-Help: <mailto:gentoo-user+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-user+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-user+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-user.gentoo.org> 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] more on SSD: swap References: <20130721113141.6be7f5ad@acme7.acmenet> <51EC5E5D.1050100@iinet.net.au> In-Reply-To: <51EC5E5D.1050100@iinet.net.au> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Archives-Salt: 80d2e001-69fa-4013-b210-61575513359d X-Archives-Hash: 6b0640224d7079096317bd9afed199f7 William Kenworthy wrote: > On 21/07/13 22:31, luis jure wrote: >> OK, now i have my system successfully installed and running on my new SSD. >> now i have to decide what to do with the rest of the disk (it's a 256MB >> samsung). >> >> the first big question is: what about swap? i found some web pages >> (perhaps old) stating that it's not wise to put swap on the SSD because of >> all the read/writes. but apparently from what i read on the recent >> thread on this list, that shouldn't be much of a concern now. >> >> i also read somewhere that if you have swap on the SSD and want to avoid >> unnecessary read/writes, you can reduce swappiness. i have 12GB RAM and i >> think normally i don't really need swap space on disk, so i thought that >> could be a good idea. >> >> so what i'm planning to do now is: >> >> - put swap on the SSD >> - reduce swappiness >> - put /var/tmp/portage on tmpfs >> >> so, do you guys think that's a good setup? >> > swap: this will make one of the bigger speedups to the system when you > need swap. swap is good - yes you can do without it, but the day comes > when you REALLY do want it, and ... [crash!] ... otherwise it can just > sit there waiting :) > > /etc/sysctl.conf: > > #vm.swappiness=1 > #vm.vfs_cache_pressure=50 > > these were recommended to me for running vm's and seem to do the job > (usually I am running with a several GB of swap (16G ram, 16G swap) in > use ... these settings definitely minimise it though big rsync jobs > stall when it fills ram+swap. > > /var/tmp/portage is a more difficult one ... a long thread way back > (Dale, I think you were in it) looking at speed showed there was no > speed advantage to compiling in tempfs because spinner) disk caching was > so good the data only hit the disk when necessary. I presume the same > will apply with compiling and SSD's in that the actual writes will be > minimal (in the scheme of things) so it shouldn't be a worry. My > experience with compiling in tempfs is that it works, but has a much > higher failure rate than on disk - i.e., things like OO/Lo, KDE, gcc and > glibc have large space requirements that you must make sure tmpfs can > satisfy before you start. And if its a busy machine actively using lots > of ram it gets "hard". I am making the point that most machines today > are way overprovisioned but when you are near the edge, saying things > like I gave xGB ram and never needed swap, so you wont either is > misrepresenting the situation. > > BillK > > Yes, I did so some testing on whether portage's work directory on tmpfs instead of HDD was faster or not and it wasn't much difference. I actually had a couple times where it was faster on HDD but could have been that some other process took up a few seconds of time too. The difference was literally seconds on compiles that were between 30 minutes to one hour. Dale :-) :-) -- I am only responsible for what I said ... Not for what you understood or how you interpreted my words!