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 1SYNhQ-00013t-SK for garchives@archives.gentoo.org; Sat, 26 May 2012 20:34:58 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2C145E0508; Sat, 26 May 2012 20:34:43 +0000 (UTC) Received: from mail-bk0-f53.google.com (mail-bk0-f53.google.com [209.85.214.53]) by pigeon.gentoo.org (Postfix) with ESMTP id 7BF9EE06F7 for ; Sat, 26 May 2012 20:33:25 +0000 (UTC) Received: by bkcjk13 with SMTP id jk13so1740025bkc.40 for ; Sat, 26 May 2012 13:33:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=2y6A5mBl+QQepOKRyER4xHReZjqVbHw+eGwdp7qDVf0=; b=DJXVA73cGfHyryYtsiTHq6Uj50KC57p885WmI3ZLcyLGt67wBrC0q09aH9Cs0CTDNz TVOIv4uOaqEVXfpAHaCkMMIKciKpPF6a4t5xr2nuiPp+TNPgICQ8EdlifZFl/9vRQF+1 wkPbsGto/IGPAwYArB7LapR4vmcbyPweWS70AmpQukYVQWtiGGhA3LSJJnA66Z4pTiJR PqyXSs/Ky0n+me6rQdeByu1MlD0mNMfmLzbubSrZhaa6B/QM6X1ANY+7V9lrrQK6eOXf H3ELQEnDadvw9psSJtzwpIYgHgO8lSzoCVCt1TljDM7GCLmj5mNRNHzOeXxrphyTdgYR gH0g== 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.204.129.87 with SMTP id n23mr1326525bks.19.1338064404541; Sat, 26 May 2012 13:33:24 -0700 (PDT) Received: by 10.204.42.207 with HTTP; Sat, 26 May 2012 13:33:24 -0700 (PDT) In-Reply-To: <4FC13850.2020802@gmail.com> References: <4FC1332A.3040703@gmail.com> <4FC1368E.7080005@gmail.com> <4FC13850.2020802@gmail.com> Date: Sat, 26 May 2012 20:33:24 +0000 Message-ID: Subject: Re: [gentoo-user] How can I control size of /run (tmpfs)? From: Michael Mol To: gentoo-user@lists.gentoo.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 2db46cb4-cc3b-4b30-90e6-69ec7d59ae10 X-Archives-Hash: 78037a1d56c59842d90c50fb7aa4e876 On Sat, May 26, 2012 at 8:08 PM, Jarry wrote: > On 26-May-12 22:01, Dale wrote: > >> Jarry wrote: >>> >>> >>> after updating baselayout from 2.0.3 to 2.1-r1 /run is mounted >>> as tmpfs. But I can not find any mount-option for controlling >>> how much memory is (or could be) used for it. >>> >>> Filesystem =C2=A0 =C2=A0 1K-blocks =C2=A0 =C2=A0Used Available Use% Mou= nted on >>> tmpfs =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A08223848 =C2=A0 =C2=A0 22= 4 8223624 =C2=A0 1% /run >>> >>> I know it does not use 8GB right now, yet I'd like to reduce >>> it to some lower value, not half of my physical memory. >>> How can I do it? Can I simply add line in fstab like: >>> >>> none /run tmpfs size=3D128m 0 0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ??? >>> >>> Jarry >> >> >> Holy smoke ! =C2=A0Mine is doing the same thing. >> tmpfs =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 7.9= G =C2=A0260K =C2=A07.9G =C2=A0 1% /run >> >> But I also have this: >> tmpfs =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 7.9= G =C2=A0 =C2=A0 0 =C2=A07.9G =C2=A0 0% /var/tmp/portage >> >> So, between those two, I could run out of ram since I have 16Gbs. >> >> There is now TWO people that needs a answer to this question. =C2=A0Why = does >> it need that much anyway? =C2=A0It looks to me like a few hundred Mbs, l= ike >> Jarry posted, would be plenty. =C2=A0Jeepers creepers. =C2=A0lol >> >> Dale > > > I suppose default size for tmpfs is half of physical memory, > if it is not configured somewhere else. > > BTW, is there any way to turn this great feature off? > What is it good for? I do not see any advantage in having > /run on tmpfs... If /var/run is described in /etc/fstab, then you can use mount options to control the maximum size of the tmpfs. http://www.kernel.org/doc/Documentation/filesystems/tmpfs.txt --=20 :wq