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



In article <9_2Jg.1632$Cq4.510@xxxxxxxxxxxxxxxxxxxxxxxxxx>,
Darren Dunham <ddunham@xxxxxxxxxxxxxxxx> wrote:

Ken Gray <see-sig@xxxxxxxxxxxxxxx> wrote:
/tmp is NOT mounted on swap - it's tmpfs, which is backed by swap. df -k
lies when it says "swap" for /tmp.

If tmpfs uses swap for the storage, why is df incorrect to show "swap"
as the device?

I don't see the error. It's true that not *all* of swap is available to
tmpfs, but I don't think that's what you're referring to.

I was over-simplifying, but the reason why I say that df lies about swap
is that you'll see the numbers change based on the allocations made by
tmpfs - so what it's showing you is how much of the swap reserve tmpfs
is using, not the amount of swap available.

It's not really an error, just an annoyance to me. I seem to have many
things these days that annoy me :).

--
Ken

Remove pants before e-mailing!

krgray@xxxxxxxxxxxxxxxx
.



Relevant Pages

  • 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: 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: 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)