Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 29 May 2006 16:46:10 +0200
From:      Ulrich Spoerlein <uspoerlein@gmail.com>
To:        Greg Rivers <gcr+freebsd-stable@tharned.org>
Cc:        Paul Allen <nospam@ugcs.caltech.edu>, freebsd-stable@freebsd.org
Subject:   Re: kmem leak in tmpmfs?
Message-ID:  <20060529144610.GD1117@roadrunner.q.local>
In-Reply-To: <200605252220.44739.gcr%2Bfreebsd-stable@tharned.org>
References:  <wpy7wq6qlh.fsf@heho.labo> <44764417.4030004@alumni.rice.edu> <20060526004343.GE28128@groat.ugcs.caltech.edu> <200605252220.44739.gcr%2Bfreebsd-stable@tharned.org>

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

--eqp4TxRxnD4KrmFZ
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Greg Rivers wrote:
> On Thursday 25 May 2006 19:43, Paul Allen wrote:
> > >From Jonathan Noack <noackjr@alumni.rice.edu>, Thu, May 25, 2006 at
> > > 07:56:07PM -0400: I am currently running with the following in
> > > /etc/rc.conf and haven't experienced any problems:
> > > tmpmfs_flags=3D"-S -o async"
> >
> > Is there a way to accomplish this with an fstab entry?
> >
> > md	/tmp            mfs     rw,async,-s1024m,-S
> >
> > no,I don't think so.  But surely it would be better to just fixup the
> > standard mount -t path to not call mount_mfs...
> >
>=20
> Actually there is a way.  I too have not been satisfied with the tmpmfs=
=20
> features in rc, so for some time now I've simply created a hard link:
>=20
> 	cd /sbin && ln -f mdmfs mount_md
>=20
> and then used an entry like this in /etc/fstab:
>=20
> 	md		/tmp		md	rw,async,-Sp1777,-s768M	0	0
>=20
> This works great for me.  A simple patch to mtree could make this hard li=
nk=20
> part of the base system.  Nothing else is needed.

You should use the 'mfs' file system. This works out of the box:

md      /tmp    mfs     rw,-s256m,-S,-Otime,async,noatime  0       0

Ulrich Spoerlein
--=20
 PGP Key ID: 20FEE9DD				Encrypted mail welcome!
Fingerprint: AEC9 AF5E 01AC 4EE1 8F70  6CBD E76E 2227 20FE E9DD
Which is worse: ignorance or apathy?
Don't know. Don't care.

--eqp4TxRxnD4KrmFZ
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (FreeBSD)

iD8DBQFEewky524iJyD+6d0RAi6RAKCIIQgOJ2ANFv2AKiYN9mq3cT/rrgCdG3va
01WBI5ibqiJfrk+uIou5jWU=
=3DYs
-----END PGP SIGNATURE-----

--eqp4TxRxnD4KrmFZ--



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