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 1SYX5Y-0004mA-Gy for garchives@archives.gentoo.org; Sun, 27 May 2012 06:36:29 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 12869E07D5; Sun, 27 May 2012 06:36:15 +0000 (UTC) Received: from mail-gh0-f181.google.com (mail-gh0-f181.google.com [209.85.160.181]) by pigeon.gentoo.org (Postfix) with ESMTP id 6E1DAE079D for ; Sun, 27 May 2012 06:34:40 +0000 (UTC) Received: by ghbz13 with SMTP id z13so1069947ghb.40 for ; Sat, 26 May 2012 23:34:40 -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=PvKdD8lhLvUcho2dSpoYB4iOJf0VROijN3lKfHPJRBw=; b=GMR0kmd0iIe7LYNiTrI+X9JJrYS5EFtsadAZPrFul7hS8wukMQtBC0n3YySK5j9Nl6 yj61K2V9w5jPxqHB+Lc9Vc7evFitwwohd8ZUfl9UNJjANSNQwpsWPCRzG85P7zkwriMd PWj9cqZXCQtDDhjymoaH4Gdo4JuNlexwNEQod0TJ0PIFxWiX9eh0YYlPJErtu0a0KywW F4yoO8Vk3WC3Z7q2VwXeP0SWk1HQxPL5tDm13XUlnaSjGnegDQ6LSP7wFt+J0pzhB0y2 PCmz/kTXjPVJdOjhDhcjqDjP98kUMPprvdvuhh6OfmuY6ieG3qUd2+jawx6OI/50iodl Br6A== 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.236.125.234 with SMTP id z70mr3962458yhh.18.1338100479960; Sat, 26 May 2012 23:34:39 -0700 (PDT) Received: by 10.100.117.1 with HTTP; Sat, 26 May 2012 23:34:39 -0700 (PDT) In-Reply-To: References: <4FC1332A.3040703@gmail.com> <4FC1368E.7080005@gmail.com> <4FC13850.2020802@gmail.com> <20120526214001.0668531f@digimed.co.uk> <4FC15692.9070507@gmail.com> <20120526233444.670274c8@digimed.co.uk> <4FC16492.5020603@gmail.com> <20120527012105.284de0e6@khamul.example.com> <4FC17238.4020605@gmail.com> <4FC19A24.2000103@gmail.com> Date: Sun, 27 May 2012 01:34:39 -0500 Message-ID: Subject: Re: [gentoo-user] How can I control size of /run (tmpfs)? From: =?UTF-8?B?Q2FuZWsgUGVsw6FleiBWYWxkw6lz?= To: gentoo-user@lists.gentoo.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 71d0a992-d66e-4702-88e9-730d069ed136 X-Archives-Hash: 7dd872cfb6013d622e98b4083df5bf07 On Sun, May 27, 2012 at 1:20 AM, Canek Pel=C3=A1ez Vald=C3=A9s wrote: > On Sat, May 26, 2012 at 11:29 PM, Joshua Murphy wrot= e: > [ snip ] >> Well, given that it's there, it cleans up after itself, and it avoids >> issues in the instance where /var isn't available early on, is there >> much reason _not_ to link /var/run and /var/lock over to their >> respective equivalents on /run? > > I use systemd, which was the one introducing both /run and /run/lock: > > http://lists.freedesktop.org/archives/systemd-devel/2011-March/001757.htm= l > > With systemd, /var/run and /var/lock are bind-mounted to /run and > /run/lock respectively. /run uses in my laptop (regularly suspended, > with an uptime of 25 days) 8.8 megabytes, which I think is basically > nothing for my 4 gigabyte RAM. > > After more programs (dracut, plymouth) started using /run and > /run/lock, OpenRC implemented the same functionality; or so I read > somewhere, I haven't used OpenRC in a while. In theory, it should work > the same as with systemd. I take that back; OpenRC doesn't bind-mount /run in /var/run. I ssh'd to a server running OpenRC, and /var/run is independent from /run. And still a regular directory, not a tmpfs. That's a shame. Given that udev uses /run (stable "old" version, 171-r6), OpenRC should use it too; there is basically no cost, and the gains are obvious. With systemd is automatic the bind-mounting of /run into /var/run. Perhaps a future version of OpenRC will use it? Regards. --=20 Canek Pel=C3=A1ez Vald=C3=A9s Posgrado en Ciencia e Ingenier=C3=ADa de la Computaci=C3=B3n Universidad Nacional Aut=C3=B3noma de M=C3=A9xico