root@williscorto:~#df -h
Filesystem Size Used Avail Capacity Mounted on
zroot 211G 766M 210G 0% /
devfs 1.0k 1.0k 0B 100% /dev
tmpfs 3.5G 12k 3.5G 0% /tmp
procfs 4.0k 4.0k 0B 100% /proc
fdescfs 1.0k 1.0k 0B 100% /dev/fd
linprocfs 4.0k 4.0k 0B 100% /compat/linux/proc
zroot/usr 213G 3.2G 210G 2% /usr
zroot/usr/home 220G 10G 210G 5% /usr/home
zroot/var 210G 34M 210G 0% /var
zroot/var/log 210G 13M 210G 0% /var/log
SirDice said:Works just fine. Never heard of any issues with the combination. tmpfs(5) is still considered experimental though.
phoenix said:That was with putting swap on ZFS volumes, not tmpfs.
# Just after a reboot
dice@williscorto:~>df -h /tmp
Filesystem Size Used Avail Capacity Mounted on
tmpfs 5.6G 8.0k 5.6G 0% /tmp
# Generate a large random file
dice@williscorto:~>openssl rand 2000000000 > test.ran
dice@williscorto:~>ll -h test.ran
-rw-r--r-- 1 dice dice 1.9G Mar 14 11:32 test.ran
# Check again
dice@williscorto:~>df -h /tmp/
Filesystem Size Used Avail Capacity Mounted on
tmpfs 3.3G 8.0k 3.3G 0% /tmp
# Notice the size difference?
dice@williscorto:~>swapinfo
Device 1K-blocks Used Avail Capacity
/dev/gpt/corto-swap 4194304 0 4194304 0%
dice@williscorto:~>cp test.ran /tmp/
dice@williscorto:~>df -h /tmp/
Filesystem Size Used Avail Capacity Mounted on
tmpfs 5.6G 1.9G 3.7G 33% /tmp
# Size is back to 'normal'
dice@williscorto:~>swapinfo
Device 1K-blocks Used Avail Capacity
/dev/gpt/corto-swap 4194304 287784 3906520 7%
dice@williscorto:~>uname -a
FreeBSD williscorto.dicelan.home 9.0-STABLE FreeBSD 9.0-STABLE #0: Wed Jan 25 13:03:03 CET 2012 root@molly.dicelan.home:/usr/obj/usr/src/sys/CORTO amd64