From owner-freebsd-current@FreeBSD.ORG Wed Apr 4 13:39:05 2012 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6247E106566C for ; Wed, 4 Apr 2012 13:39:05 +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 330418FC15 for ; Wed, 4 Apr 2012 13:39:05 +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 q34DcxOZ032346; Wed, 4 Apr 2012 06:38: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 q34Dcw9u032345; Wed, 4 Apr 2012 06:38:58 -0700 (PDT) (envelope-from david) Date: Wed, 4 Apr 2012 06:38:58 -0700 From: David Wolfskill To: Gleb Kurtsou Message-ID: <20120404133858.GB1420@albert.catwhisker.org> Mail-Followup-To: David Wolfskill , Gleb Kurtsou , current@freebsd.org References: <20120404095035.GA1929@reks> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="olLTNZSltDMg5Vbm" Content-Disposition: inline In-Reply-To: <20120404095035.GA1929@reks> User-Agent: Mutt/1.4.2.3i Cc: current@freebsd.org 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: Wed, 04 Apr 2012 13:39:05 -0000 --olLTNZSltDMg5Vbm Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Apr 04, 2012 at 12:50:35PM +0300, Gleb Kurtsou wrote: > ... > tmpfs-32bit-size_max.patch.txt should fix the problem. I don't have i386 > installations to test it myself. >=20 > Do you run PAE kernel? Could you try filling up /tmp at least to 10g. > ... After updating source to r233868, applying the patch, then updating, here are the results of my testing so far (not using PAE). Summary: as before, I believe that the patch didn't hurt anything, but it also doesn't restrict the usable size of /tmp to the specified size (from /etc/fstab): Script started on Wed Apr 4 06:23:25 2012 g1-227(10.0-C)[1] _do uid=3D0(root) gid=3D0(wheel) groups=3D0(wheel),5(operator) /dev/ada0s2a on / (ufs, local, soft-updates) devfs on /dev (devfs, local, multilabel) tmpfs on /tmp (tmpfs, local) /dev/ada0s2d on /usr (ufs, local, soft-updates) /dev/ada0s4e on /var (ufs, local, soft-updates) /dev/ada0s4g on /common (ufs, local, soft-updates) fdescfs on /dev/fd (fdescfs) FreeBSD g1-227.catwhisker.org 10.0-CURRENT FreeBSD 10.0-CURRENT #2 233868M:= Wed Apr 4 06:02:25 PDT 2012 root@g1-227.catwhisker.org:/usr/obj/usr/s= rc/sys/CANARY i386 Wed Apr 4 06:23:27 PDT 2012 >>> Removing old libraries Please be sure no application still uses those libraries, else you can not start such an application. Consult UPDATING for more information regarding how to cope with the removal/revision bump of a specific library. >>> Old libraries removed Wed Apr 4 06:23:28 PDT 2012 g1-227(10.0-C)[2] exit Script done on Wed Apr 4 06:23:29 2012 Script started on Wed Apr 4 06:23:35 2012 g1-227(10.0-C)[1] df -hi /tmp Filesystem Size Used Avail Capacity iused ifree %iused Mounted on tmpfs 23G 12k 23G 0% 17 2.1G 0% /tmp g1-227(10.0-C)[2] grep tmpfs /etc/fstab # tmpfs /tmp tmpfs rw,size=3D2147483648 0= 0 tmpfs /tmp tmpfs rw,size=3D8g 0 0 g1-227(10.0-C)[3] ls -lhT /bkp/tmp/test=20 -rw-r--r-- 1 david wheel 8.0G Mar 25 10:42:49 2012 /bkp/tmp/test g1-227(10.0-C)[4] dd bs=3D1m if=3D!$ of=3D/tmp/test dd bs=3D1m if=3D/bkp/tmp/test of=3D/tmp/test 8192+0 records in 8192+0 records out 8589934592 bytes transferred in 186.178099 secs (46138266 bytes/sec) g1-227(10.0-C)[5] df -hi /tmp Filesystem Size Used Avail Capacity iused ifree %iused Mounted on tmpfs 23G 8.0G 15G 35% 18 2.1G 0% /tmp g1-227(10.0-C)[6] dd bs=3D1m if=3D/bkp/tmp/test of=3D/tmp/test1 8192+0 records in 8192+0 records out 8589934592 bytes transferred in 220.254916 secs (38999968 bytes/sec) g1-227(10.0-C)[7] df -hi /tmp Filesystem Size Used Avail Capacity iused ifree %iused Mounted on tmpfs 23G 16G 7.0G 70% 19 2.1G 0% /tmp g1-227(10.0-C)[8] exit Script done on Wed Apr 4 06:33:12 2012 g1-227(10.0-C)[5] =20 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. --olLTNZSltDMg5Vbm Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iEYEARECAAYFAk98TvEACgkQmprOCmdXAD1eBgCfdAMZ/UEZ/XLhykhtCaDr9ofy meEAnia4DDZu/KSNyGh2uzN1uhfXOEx/ =zhmm -----END PGP SIGNATURE----- --olLTNZSltDMg5Vbm--