/tmp and swap space

Matthew Seaman m.seaman at infracaninophile.co.uk
Thu Jul 29 16:32:46 UTC 2010


On 29/07/2010 16:35, gahn wrote:

> is it possible to create /tmp directory under swap space? under
> solaris, it is automatically created under swap unless one specifically
> instructs the system not to do so..

Yes, this is certainly possible.  Just add:

   tmpmfs="YES"
   tmpsize="32m"

to /etc/rc.conf, and then either reboot, or run:

   /etc/rc.d/tmp start

Note that this will mount a /tmp filesystem on top of anything that's
already there, thus making those files inaccessible until you unmount
again.

(use whatever value of 32m you prefer, of course)

	Cheers,

	Matthew

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 267 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20100729/ec197093/signature.pgp


More information about the freebsd-current mailing list