Re: Why is /var/tmp not mounted on swap?




Ken Gray wrote:
In article <1156859392.730382.215450@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
"greek_philosophizer@xxxxxxxxxxx" <greek_philosophizer@xxxxxxxxxxx>
wrote:

Why is /var/tmp not mounted on swap like /tmp?

/var/tmp seems to accumulate old files and could also be used to fill
/.

.


<nit>
/tmp is NOT mounted on swap - it's tmpfs, which is backed by swap. df -k
lies when it says "swap" for /tmp.
</nit>


tmpfs will use up memory first, then swap.

Victor

.



Relevant Pages

  • Re: Idea about a disc backed ram filesystem
    ... swapping when not in use by tmpfs. ... to one device (or not swap at all) and a tmpfs mount to swap to ... When you run out of RAM, or the RAM can be put to better use than keeping ...
    (Linux-Kernel)
  • Re: how to increase space for tmpfs /tmp
    ... ALL of the tmpfs space. ... not be afraid of using 100% of RAM here. ... with the OP swap size... ... unneeded pages out to swap space. ...
    (Debian-User)
  • Re: linux raid vs hw raid
    ... free memory is wanted; when the memory frees up, ... in swap so that it can use more physical memory for other tasks (e.g., ... The reason I like swap space is as a backing store for tmpfs ... You can always resize a tmpfs with something like "mount -o ...
    (comp.os.linux.misc)
  • Re: swap and /tmp
    ... I use tmpfs for /tmp on all of my machines and have so far not found ... although there was still a lot of swap available. ... because the encrypt/decrypt ... partition serving both purposes, and can change the size of the ...
    (Debian-User)
  • Re: linux raid vs hw raid
    ... free memory is wanted; when the memory frees up, ... in swap so that it can use more physical memory for other tasks (e.g., ... The reason I like swap space is as a backing store for tmpfs ...
    (comp.os.linux.misc)