Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 4 Apr 2012 06:38:58 -0700
From:      David Wolfskill <david@catwhisker.org>
To:        Gleb Kurtsou <gleb.kurtsou@gmail.com>
Cc:        current@freebsd.org
Subject:   Re: Using TMPFS for /tmp and /var/run?
Message-ID:  <20120404133858.GB1420@albert.catwhisker.org>
In-Reply-To: <20120404095035.GA1929@reks>
References:  <20120404095035.GA1929@reks>

next in thread | previous in thread | raw e-mail | index | archive | help

--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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120404133858.GB1420>