Why would top show the processes are using swap when there is no swap space?



My system has 4GB of RAM so I decided that I don't need to have swap
space.
However, in "top", I can still see that processes's virtual memory is
the
sum of the residential and swap memory. For example:
Swap: 0k total, 0k used, 0k free, 1189192k
cached

PID USER PR NI VIRT RES SWAP SHR S %CPU %MEM TIME+
COMMAND
9580 seki 15 0 2164 1160 1004 856 R 0.3 0.0 0:00.04 top

This is part of the output from "top".
We can confirm that no swap space is used.
However, VIRT=RES+SWAP and SWAP is not zero:
VIRT=2164, RES=1144, SWAP=1020 and 2164=1144+1020

My question is: since there is no space disk, where to swap to pages
to?
Thanks a lot.

.



Relevant Pages

  • Re: Hard disk running...and running...and running...and...
    ... >>> A glimpse at my memory stats says 512M or ram is used 95%...from Boot! ... You say you have 512M of RAM and a 4GB swap file??? ... What does the command free say? ...
    (alt.os.linux.suse)
  • Re: swap size for 2gb 2 processors?
    ... Given that RAM and disk prices both follow similar pricing ... price for a swap partition has remained reasonably constant. ... to have more than 50 percent of virtual memory be swap space. ... Hence a 2:1 ratio of RAM to swap, which allowed virtual memory ...
    (comp.os.linux.misc)
  • Re: [opensuse] Re: RAM
    ... I'm sitting right now in front of my 1gig machine. ... What command and what output do I ... If you're using any swap at all, you would benefit from additional RAM. ...
    (SuSE)
  • Re: [opensuse] Re: RAM
    ... I'm sitting right now in front of my 1gig machine. ... What command and what output do I ... If you're using any swap at all, you would benefit from additional RAM. ...
    (SuSE)
  • Re: [rfc] no ZERO_PAGE?
    ... For purely-RAM virtual memory the latency ... disk if you add swap to the picture. ... is slower, ram is faster. ...
    (Linux-Kernel)