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 <gentoo-user+bounces-138656-garchives=archives.gentoo.org@lists.gentoo.org>) id 1SYNtb-0003Iz-VP for garchives@archives.gentoo.org; Sat, 26 May 2012 20:47:32 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B0751E0777; Sat, 26 May 2012 20:47:03 +0000 (UTC) Received: from mx.virtyou.com (mx.virtyou.com [178.33.32.244]) by pigeon.gentoo.org (Postfix) with ESMTP id 05FDDE0738 for <gentoo-user@lists.gentoo.org>; Sat, 26 May 2012 20:45:21 +0000 (UTC) Received: from [192.168.2.43] (p5B277133.dip.t-dialin.net [91.39.113.51]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx.virtyou.com (Postfix) with ESMTPSA id 526AEDC058 for <gentoo-user@lists.gentoo.org>; Sat, 26 May 2012 22:45:21 +0200 (CEST) Message-ID: <4FC140AA.4050101@wonkology.org> Date: Sat, 26 May 2012 22:44:26 +0200 From: Alex Schuster <wonko@wonkology.org> User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 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] How can I control size of /run (tmpfs)? References: <4FC1332A.3040703@gmail.com> <4FC1368E.7080005@gmail.com> <4FC13850.2020802@gmail.com> <4FC13CE2.5060309@gmail.com> In-Reply-To: <4FC13CE2.5060309@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Archives-Salt: c7c1b1d4-87d6-4209-93a9-90f13eec6395 X-Archives-Hash: 0076d0e26deda1596b7ad94345d7f374 Dale writes: > 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 1K-blocks Used Available Use% Mounted on >>>> tmpfs 8223848 224 8223624 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=128m 0 0 ??? Just try it :) I don't know if this would work, probably yes. But you can change it later with mount -o remount,size=128m /run >>> Holy smoke ! Mine is doing the same thing. >>> tmpfs 7.9G 260K 7.9G 1% /run >>> >>> But I also have this: >>> tmpfs 7.9G 0 7.9G 0% /var/tmp/portage Now have a look at /dev/shm... >>> So, between those two, I could run out of ram since I have 16Gbs. But only if you copy stuff to /run yourself, otherwise this will never happen. >>> There is now TWO people that needs a answer to this question. Why does >>> it need that much anyway? It looks to me like a few hundred Mbs, like >>> Jarry posted, would be plenty. Jeepers creepers. lol It doesn't need it, it's just the maximum sitze, which it will never reach. >> 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... In case of power failure or lockup, the contents are lost, and will not cause confusion on the next reboot when /run is still populated by stuff. Just an idea, I do not know if it would really matter. But it does no harm, so why not juest keep it like it is. > I had no idea it was doing this either until your post. I got the same > questions as you do. Why is it there? Why so much is allocated to it? > Where can we change the settings for this questionable "feature"? > > I'm hoping someone will come along and answer both our questions. I'm > really hoping for a place we can change the settings. I don't mind it > being there so much if it is useful. I would like to know its purpose > tho. I don't know the details, but I'd think it does not matter. There will nothing be put into /run that uses a lot of memory, so it will never actually use its default size of half of your RAM. Wonko