clear_tmp_enable="YES"
fstat /tmp/tpl-*
So what is the caveat? Why is the driver not compiled into the generic kernel if it is so good? It must be a very good reasonUse tmpfs(5). Not only is it faster and more efficient than a drive-based directory, it self-clears when the machine is reset or powered off.
There is no need to compile a custom KERNEL.So what is the caveat? Why is driver not compiled into the generic kernel if it is so good? It must be a very good reason
/dev/gpt/system on / (ufs, local, soft-updates)
devfs on /dev (devfs, local, multilabel)
tmpfs on /tmp (tmpfs, local)
Like many things, it's just not enabled by default. I've had it enabled since version 7 point something, quite some time before it stopped being considered an experimental feature (that was back in 9.1R). And I've never had any trouble with it since.So what is the caveat? Why is the driver not compiled into the generic kernel if it is so good? It must be a very good reason
freebsd ~ % kldstat
Id Refs Address Size Name
1 7 0xffffffff80200000 1fa7c38 kernel
2 1 0xffffffff82211000 2acd5 vboxguest.ko
3 1 0xffffffff8223c000 665d nullfs.ko
4 1 0xffffffff82243000 587b fdescfs.ko
freebsd ~ % sudo mount -t tmpfs tmpfs /mnt
freebsd ~ % kldstat
Id Refs Address Size Name
1 9 0xffffffff80200000 1fa7c38 kernel
2 1 0xffffffff82211000 2acd5 vboxguest.ko
3 1 0xffffffff8223c000 665d nullfs.ko
4 1 0xffffffff82243000 587b fdescfs.ko
5 1 0xffffffff82249000 adec tmpfs.ko
freebsd ~ % mount
/dev/gpt/fb10root on / (ufs, local, soft-updates)
devfs on /dev (devfs, local, multilabel)
/dev/gpt/fb10data on /data (ufs, local, soft-updates)
tmpfs on /mnt (tmpfs, local)
freebsd ~ %
And some of us store persistent data in /tmp and don't want it to clear out when the machine is rebooted.Use tmpfs(5). Not only is it faster and more efficient than a drive-based directory, it self-clears when the machine is reset or powered off.
Use /var/tmp/ for that. See hier(7).And some of us store persistent data in /tmp and don't want it to clear out when the machine is rebooted.
/tmp/ temporary files that are not guaranteed to persist across sys-
tem reboots
/var/ multi-purpose log, temporary, transient, and spool files
{...}
tmp/ temporary files that are kept between system
reboots
I used to do that, too, but it's easy to lose things. It's like storing important documents in a trash can: sure, it works, but it only has to go wrong once...And some of us store persistent data in /tmp and don't want it to clear out when the machine is rebooted.
This is very wrong practice. /tmp is for temporary files only, mainly from applications. If your /tmp gets full then you will run into trouble.And some of us store persistent data in /tmp and don't want it to clear out when the machine is rebooted.
You want to store temporary personal files? Simple: put them in ~/tmp.And some of us store persistent data in /tmp and don't want it to clear out when the machine is rebooted.
No, I didn't say that the files were personal.You want to store temporary personal files? Simple: put them in ~/tmp.
export TMPDIR="${HOME}/tmp/"