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 1QMQpi-0004dl-L3 for garchives@archives.gentoo.org; Tue, 17 May 2011 20:25:34 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2D5271C1F8; Tue, 17 May 2011 20:25:21 +0000 (UTC) Received: from mail-wy0-f181.google.com (mail-wy0-f181.google.com [74.125.82.181]) by pigeon.gentoo.org (Postfix) with ESMTP id C43831C065 for ; Tue, 17 May 2011 20:23:51 +0000 (UTC) Received: by wyi11 with SMTP id 11so887221wyi.40 for ; Tue, 17 May 2011 13:23:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; bh=hNaM0ncbKzt597uJCt16NA+2QD1IcfD/2eUMpltHcy8=; b=vmy/M+qu2AVtVhWCrnXOw0fjAyHyYneniMbbiTXib74+PcbfKq+SmtuDvt4m1kv/ci jXElk+B45VhJufRhWKgFDnCbFVDjaa+MfJjYAPSV6XAYM7cN2ixTyYfMvzJBlexm1vU0 tF14g7K6o/nzEhiy5W7IotBS7foQFwu4tAluc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; b=hptzT6DHCQDaYC08BEKDbvTE+/QF848OLJpZFpaeCak6eJgP/CJduAYHj/J21gq29g p3JlIDwDOQeUX4BcqC+O3uDWCo01wXcgvaND4k7AomuuEugSs+Wt/D39crs26TteyPs4 UA+wG8CvKdsrboagkgik82y2TVZg+oWsxRgnQ= Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 Received: by 10.227.62.207 with SMTP id y15mr1029594wbh.86.1305663830906; Tue, 17 May 2011 13:23:50 -0700 (PDT) Sender: freemanrich@gmail.com Received: by 10.227.136.149 with HTTP; Tue, 17 May 2011 13:23:50 -0700 (PDT) In-Reply-To: <1305662441.2645.1.camel@TesterTop4> References: <20110517165748.GA3266@linux1> <1305655899.18096.4.camel@tablet> <20110517192056.GA13002@Vereniki.lan> <1305662441.2645.1.camel@TesterTop4> Date: Tue, 17 May 2011 16:23:50 -0400 X-Google-Sender-Auth: EcYbIuE_v6bdnw9EYRtQXVs-lDY Message-ID: Subject: Re: [gentoo-dev] rfc: use of the /run directory From: Rich Freeman To: gentoo-dev@lists.gentoo.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: 77a58d85b8b52e60655c5f28c881dd54 2011/5/17 Olivier Cr=EAte : > On Wed, 2011-05-18 at 01:18 +0530, Nirbheek Chauhan wrote: >> Maybe you should use /var/tmp for that? Or ~/tmp/ ? >> >> OTOH, we could use an rc.conf configuration variable to control >> whether /tmp is mounted as tmpfs. > > Having /tmp and /var/tmp as tmpfs sounds like a terrible idea.. I don't > think we should facilitate it in any way. I've run my system this way for ages - even back when I had 2GB of RAM running kde, samba, mythtv, mysql, and apache. Usually not a problem. Unfortunately the kernel swapping logic isn't perfect, which can cause it to bog down if you're compiling something like chromium or openoffice. When you think about it tmpfs on swap should be no slower than ext3. If anything it should be faster since it doesn't need to journal. In practice it doesn't always work this way, but I'd consider this a bug. With a filesystem, anything you write ends up on disk within 30 seconds or whatever. With a tmpfs, some of the stuff you write ends up on disk, and the kernel has more freedom with how it goes about doing this. Then problem comes when the kernel decides to swap out mysql or whatever in order to hang onto some pages full of .so files or whatever from your latest build. Rich