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



victorfeng1973@xxxxxxxxx wrote:
<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.

That's only true if you think of 'swap' as being the stuff on disk.

Most utilities (and tmpfs) consider 'swap' the unified view of all pages
in RAM and swapfiles. So you might say that the VM system will tend to
allocate pages in RAM first, then on disk, but I would not refer to
either of those singly as "swap".

--
Darren Dunham ddunham@xxxxxxxx
Senior Technical Consultant TAOS http://www.taos.com/
Got some Dr Pepper? San Francisco, CA bay area
< This line left intentionally blank to confuse you. >
.



Relevant Pages

  • RE: Where do you put your swap partition?
    ... so I can mount /tmp on a tmpfs file system. ... it, hits the disk several times, even with a large buffer cache. ... don't have enough ram, you have to swap, but you're no worse off than ... disk and /var on a third, and have swap space defined on all three. ...
    (Debian-User)
  • Re: Partitioning hard drives...
    ... a misbehaving program can fill your disk and it's better to fill /var ... really a good idea to use tmpfs instead and configure some ... I think you are _not_ saying use tmpfs for swap space ... the disk within five to thirty seconds, ...
    (uk.comp.os.linux)
  • 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: 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: ramdisk
    ... It's a swap disk. ... available (either from RAM or from disk), ... tmpfs pages may be staged to disk. ...
    (comp.unix.solaris)