From owner-freebsd-current@FreeBSD.ORG Mon Apr 2 13:27:00 2012 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 87EF81065677 for ; Mon, 2 Apr 2012 13:27:00 +0000 (UTC) (envelope-from david@catwhisker.org) Received: from albert.catwhisker.org (m209-73.dsl.rawbw.com [198.144.209.73]) by mx1.freebsd.org (Postfix) with ESMTP id 3EAF48FC0A for ; Mon, 2 Apr 2012 13:26:59 +0000 (UTC) Received: from albert.catwhisker.org (localhost [127.0.0.1]) by albert.catwhisker.org (8.14.5/8.14.5) with ESMTP id q32DQxjc010979; Mon, 2 Apr 2012 06:26:59 -0700 (PDT) (envelope-from david@albert.catwhisker.org) Received: (from david@localhost) by albert.catwhisker.org (8.14.5/8.14.5/Submit) id q32DQxtJ010978; Mon, 2 Apr 2012 06:26:59 -0700 (PDT) (envelope-from david) Date: Mon, 2 Apr 2012 06:26:59 -0700 From: David Wolfskill To: Gleb Kurtsou Message-ID: <20120402132659.GF1420@albert.catwhisker.org> References: <4F746F1E.6090702@mail.zedat.fu-berlin.de> <20120329161452.GZ1709@albert.catwhisker.org> <4F74BCD5.4040609@zedat.fu-berlin.de> <20120402103119.GA2389@reks> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="juZjCTNxrMaZdGZC" Content-Disposition: inline In-Reply-To: <20120402103119.GA2389@reks> User-Agent: Mutt/1.4.2.3i Cc: Current FreeBSD Subject: Re: Using TMPFS for /tmp and /var/run? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Apr 2012 13:27:00 -0000 --juZjCTNxrMaZdGZC Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Apr 02, 2012 at 01:31:19PM +0300, Gleb Kurtsou wrote: > ... > You could try the patch attached. It adds support for size option suffixes > (like 1g) and introduces swap limit (part of the older patch, not sure > if it's any use). >=20 > Patch is against 10-CURRENT. > Older version: https://github.com/glk/freebsd-head/commit/3bd8f7d > .... OK; here's a summary of what I found so far, now running: FreeBSD g1-227.catwhisker.org 10.0-CURRENT FreeBSD 10.0-CURRENT #0 233772M:= Mon Apr 2 05:42:48 PDT 2012 root@g1-227.catwhisker.org:/usr/obj/usr/s= rc/sys/CANARY i386 * First, the patch applied cleanly (via "patch -p1"). * Resulting sources build with no issues. * Prior specification I had in /etc/fstab: tmpfs /tmp tmpfs rw,size=3D2147483648 0 0 worked same as before the patch; "df -h /tmp" reported a size of 2.0G. * Changing the above to read: tmpfs /tmp tmpfs rw,size=3D2g 0 0 also provided the same result, so the unit-specification code looks as if it's working as expected. * I have 20G specified for swap, and 4G RAM (and, as above, I'm running i386). Changing the above tmpfs line in /etc/fstab to tmpfs /tmp tmpfs rw,size=3D8g 0 0 (still) yields: g1-227(10.0-C)[3] df -h /tmp Filesystem Size Used Avail Capacity Mounted on tmpfs 23G 12k 23G 0% /tmp g1-227(10.0-C)[4]=20 (Yes, I'm using a whopping total of 12kB while running X. I know of *very* few folks who use the window manager I prefer. :-}) I'll try exercising it a bit during the day at work & report anything noteworthy. But so far, I see no evidence of regression, and there is some measure of usability improvement (IMO). So it's looking encouraging. :-) Peace, david --=20 David H. Wolfskill david@catwhisker.org Depriving a girl or boy of an opportunity for education is evil. See http://www.catwhisker.org/~david/publickey.gpg for my public key. --juZjCTNxrMaZdGZC Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iEYEARECAAYFAk95qSIACgkQmprOCmdXAD3xUACdHG1LwA5uCDPdhZ5j9zi3impi wx4An2hKy/K3rB4+J8I0eh827hcfSw4S =kwZy -----END PGP SIGNATURE----- --juZjCTNxrMaZdGZC--