/tmp: change default to mdmfs and/or tmpfs?

Ronald Klop ronald-freebsd8 at klop.yi.org
Sun Jun 9 12:18:31 UTC 2013


On Sun, 09 Jun 2013 13:45:28 +0200, Dmitry Morozovsky <marck at rinet.ru>  
wrote:

> Dear colleagues,
>
> what do you think about stop using precious disk or even SSD resources  
> for
> /tmp?
>
> For last several (well, maybe over 10?) years I constantly use md  
> (swap-backed)
> for /tmp, usually 128M in size, which is enough for most of our server  
> needs.
> Some require more, but none more than 512M.  Regarding the options, we  
> use
> tmpmfs_flags="-S -n -o async -b 4096 -f 512"
>
> Given more and more fixes/improvements committed to tmpfs, switching  
> /tmp to it
> would be even better idea.
>
> You thoughts?  Thank you!
>
>

What keeps you from putting this in fstab and stop using the tmpmfs  
rc.conf variable?
'tmpfs           /tmp            tmpfs   rw,size=536870912      0       0'

I thought tmpmfs/varmfs infrastructure was more for diskless/full-NFS  
systems anyways.

Ronald.


More information about the freebsd-fs mailing list