Nowadays I use
tmpfs(5) for the
/tmp directory. This will use a combination of swap and/or free memory :
Code:
# dev mount FStype Options Dump Pass#
#----------- ----- ----- ------------------- ---- ----
tmpfs /tmp tmpfs rw,mode=01777,size=2147483648 0 0
#
# calculate the size with 'echo 1024^2 | bc' for size in MB
# calculate the size with "echo '2 * 1024^3' | bc" for size in GB
# NOTE: you cannot use 'noatime' for tmpfs !
# ------------------------------------------