From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1MAZC0-0003ql-3m for garchives@archives.gentoo.org; Sun, 31 May 2009 00:46:28 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1DFF8E01FF; Sun, 31 May 2009 00:46:27 +0000 (UTC) Received: from yw-out-1718.google.com (yw-out-1718.google.com [74.125.46.154]) by pigeon.gentoo.org (Postfix) with ESMTP id 01340E01FF for ; Sun, 31 May 2009 00:46:26 +0000 (UTC) Received: by yw-out-1718.google.com with SMTP id 5so25616196ywm.46 for ; Sat, 30 May 2009 17:46:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=ZeRhajc1n20lPvcXP8PqS/XCOm+OlaX/TgACJJ33Ryc=; b=hA02lpSwSapYvfReSmkSYp1nrp764fFS9jmzkw6VKLmQKAzDnXs9ZjeZRJHQMkilLT 1jsVeGFbjHA+eCXKLbgj7wqAI7w1Ad/5ais8+ovYHC+JqFh59QKrQQJ5Rd3n5YyCh8Ii Wk7w0qyP5v20zyuEP8IVjkzh64RZlGtLDDbpA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=Ij+CJ3VKwZc+WxXv6i5ljD35ootqbvtxqb4JFCqKCeKfefmmOnSjBAIrj0X+1ppX0T cFOonKOx+qf/hYvTMMTTukfkcTqMEcVlxmY+oWibpcA1bL6Dsvu85Lhf6HFzE/W/C5Hn 9Bzkg+qmudv0IF5gDZQ71WkxG9gsGGcY0R1tE= 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 Received: by 10.90.29.13 with SMTP id c13mr3670582agc.8.1243730786736; Sat, 30 May 2009 17:46:26 -0700 (PDT) In-Reply-To: <4A21C548.4020401@gmail.com> References: <49bf44f10905301038v244d6209t37520ea5a956e388@mail.gmail.com> <200905310015.43547.michaelkintzios@gmail.com> <4A21C548.4020401@gmail.com> Date: Sat, 30 May 2009 17:46:26 -0700 Message-ID: <49bf44f10905301746t22d92952pb6672b6f4808f942@mail.gmail.com> Subject: Re: [gentoo-user] Re: Disabling swap & mounting /tmp on tmpfs = new standard? From: Grant To: gentoo-user@lists.gentoo.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 621fc4a7-8441-4141-a425-595510723739 X-Archives-Hash: 241bdd16aa94f1c7a14a43fe3e55675d >>>> I recently disabled swap and mounted /tmp on tmpfs for a netbook since >>>> the SSD is so slow, and now I'm wondering if that would be a wise move >>>> for all of my Gentoo systems. =A0In what type of situation would it be= a >>>> bad idea? >>>> >>> Instead of disabling swap, just make it small (like 32MB or something; >>> whatever the smallest allowable partition size is). =A0The kernel needs >>> swap to operate optimally, even if it's extremely small. =A0Just make s= ure >>> it's there. >>> >> >> Hmm, on this old box I noticed swap was using more than 135,000K earlier= today >> as I was emerging xulrunner and ImageMagick. =A0I think that the size of= swap >> is relevant to the memory size that the box in question has. =A0Not all >> machines have found their way to 2G RAM yet ... ;) >> >> > > Don't forget that you can set swapiness too. =A0This is set in > /etc/sysctl.conf and for mine I have this: > > vm.swappiness =3D 30 > > The lower the number, the less chance of it using swap. =A0If it is set t= o > 90, it will use a lot of swap which is fine if you have little ram or a > really fast drive. =A0If it is set to 30, then it will not use swap unles= s > it is basically out of ram. > > With the setting of 30, mine uses swap when compiling OOo or some other > large package or if I am opening a TON of pics. =A0Otherwise, swap is at = 0 > or close to it even after being up a long time. =A0I have 2Gbs here tho. > Your mileage may vary. > > Dale Thanks Dale. Should "vm.swappiness =3D 30" work well on all systems? My Gentoo systems have vastly different specs and duties so I love tweaks that always improve things. It sounds like /tmp on tmpfs is one of those. - Grant