atom feed54 messages in org.freebsd.freebsd-currentRe: Using TMPFS for /tmp and /var/run?
FromSent OnAttachments
O. HartmannMar 29, 2012 7:17 am 
David WolfskillMar 29, 2012 9:14 am 
Chris ReesMar 29, 2012 9:41 am 
Vitaly MageryaMar 29, 2012 9:59 am 
O. HartmannMar 29, 2012 12:49 pm 
Eric van GyzenMar 29, 2012 12:49 pm 
David WolfskillMar 29, 2012 12:57 pm 
O. HartmannMar 29, 2012 1:06 pm 
David WolfskillMar 29, 2012 1:13 pm 
Xin LiMar 29, 2012 1:49 pm 
Eric van GyzenMar 29, 2012 1:51 pm 
Xin LiMar 29, 2012 1:52 pm 
Matt ThyerMar 30, 2012 5:50 am 
sth...@nethelp.noMar 30, 2012 6:18 am 
Chris ReesMar 30, 2012 7:42 am 
jbMar 30, 2012 8:16 am 
Lucas HoltMar 30, 2012 8:28 am 
sth...@nethelp.noMar 30, 2012 10:14 am 
C. P. GhostMar 30, 2012 10:31 am 
Chris ReesMar 30, 2012 10:55 am 
Steve KarglMar 30, 2012 11:15 am 
mattMar 30, 2012 11:25 am 
Adrian ChaddMar 30, 2012 12:36 pm 
Chris ReesMar 30, 2012 12:41 pm 
Adrian ChaddMar 30, 2012 12:44 pm 
deep...@gmail.comMar 30, 2012 5:57 pm 
Adrian ChaddMar 30, 2012 6:59 pm 
Benjamin KadukMar 30, 2012 7:05 pm 
jbMar 30, 2012 7:47 pm 
Matthias AndreeMar 30, 2012 11:07 pm 
Matthias AndreeMar 30, 2012 11:15 pm 
Matthew SeamanMar 31, 2012 12:30 am 
Gary PalmerApr 1, 2012 6:40 am 
Rainer DuffnerApr 1, 2012 7:14 am 
jbApr 1, 2012 12:54 pm 
deep...@gmail.comApr 1, 2012 3:49 pm 
Warren BlockApr 1, 2012 7:14 pm 
grarpampApr 2, 2012 2:41 am 
Gleb KurtsouApr 2, 2012 3:30 am.txt
David WolfskillApr 2, 2012 3:59 am 
David WolfskillApr 2, 2012 6:26 am 
jbApr 2, 2012 8:46 am 
Chris ReesApr 2, 2012 8:51 am 
Gleb KurtsouApr 2, 2012 2:03 pm.txt
Chuck BurnsApr 2, 2012 3:05 pm 
Doug BartonApr 2, 2012 3:22 pm 
John BaldwinApr 3, 2012 6:41 am 
David WolfskillApr 3, 2012 10:01 am 
jbApr 3, 2012 10:29 am 
David WolfskillApr 4, 2012 6:38 am 
Gleb KurtsouApr 5, 2012 12:42 am.txt
David WolfskillApr 5, 2012 4:19 am.diffs
Luke DeanApr 28, 2012 11:03 am 
Chris ReesApr 28, 2012 11:12 am 
Subject:Re: Using TMPFS for /tmp and /var/run?
From:matt (send@gmail.com)
Date:Mar 30, 2012 11:25:18 am
List:org.freebsd.freebsd-current

On 03/30/12 11:15, Steve Kargl wrote:

On Fri, Mar 30, 2012 at 05:56:06PM +0000, Chris Rees wrote:

On 30 March 2012 17:31, C. P. Ghost <cpgh@cordula.ws> wrote:

On Fri, Mar 30, 2012 at 3:18 PM, <sth@nethelp.no> wrote:

However, if you always want to use tmpfs instead of stable storage,

please do not. Some people expect /tmp to be persistent. This is why /etc/defaults/rc.conf has clear_tmp_enable="NO". Changing this would break the POLA. This is a mistake.

The default should be clear_tmp_enable="YES" if only to uncover those broken configurations that expect /tmp to be persistent.

If you want to break POLA and make a lot of people angry, sure. Otherwise no.

I couldn't agree more. Not clearing /tmp on reboot has been the norm for way too long and it is too late to change now. It's not just POLA, it also involves deleting data of unaware users, and that should be avoided.

Anyone willing to change policy w.r.t. /tmp can do so on their own machines. Nothing is preventing them from doing so. But by changing defaults, one should err on the side of caution and remain conservative, IMHO.

Well stated.

From man hier:

/tmp/ temporary files that are not guaranteed to persist across system reboots

There is also a difference between "not guaranteed to persist" and knowingly blowing the files away by explictly clearing /tmp.

PS: How many users of FreeBSD know that hier(7) exists? How many new users even know about man pages?

man hier is a unix standard.

a new user will eventually find man pages if they're meant to, just as small turtles will eventually find the sea...

In general you may receive some advantages by not blowing away /tmp such as better performance in programs that cache there, but my understanding (think historically in context of hier) is that *users* should not expect the *admin* to not blow away /tmp for space on a multiuser system. It might be there tomorrow, but it might not.

Many larger multiuser systems had/have such folders, as many users = many crap files that some admin or script needs to clear to preserve storage for things that actually need to be stored. In some cases, the script would only clear it on Fridays in the middle of night, so temporary files might persist from say 1 week to a few hours..."you were warned".

Dunno, but tmpfs + unionfs for the ports tree is where it would really be awesome!