Re: Swap usage



howa <howachen@xxxxxxxxx> wrote:
Hi

How to know if my linux is currently using swap or not, e.g.

Top:

Mem: 4041528k total, 3988108k used, 53420k free, 87912k
buffers
Swap: 2048248k total, 29364k used, 2018884k free, 2359168k
cached

Says there. 29365k used. That's swap.


If it is not currently using swap, how to check if it hit the swap
frequency?

frequency? Did you mean recently?
Dunno, I'm sure there're a few system monitoring and stat collection tools
out there that might be able to tell you, like sar, I think... But if you've
not got any of that stuff running at the time, I think you can only look at
current swap usage as a snapshot, not review how it was used in the past.

Swap's nothing to worry about. Programs that're running but haven't been
used for a time end up being swapped out to make the system RAM available
for file caching and buffering. It's more use than just sitting there
holding a program that's not being used.
--
| spike1@xxxxxxxxxxxxx | |
| Andrew Halliwell BSc | "The day Microsoft makes something that doesn't |
| in | suck is probably the day they start making |
| Computer science | vacuum cleaners" - Ernst Jan Plugge |
.



Relevant Pages

  • Re: new disk layout
    ... the 'buffers' and 'cached' need not be saved, ... need is the swap in use plus the memory in use. ... Don't hold your breath, for years I kept pointing out issue with suspend and being told "stop whining and send patches," and I would say "the patch is suspend2." ... probably large enough even when you upgrade to 4 GB RAM. ...
    (Fedora)
  • Re: Ram memory after many days
    ... >> cache as others have already suggested. ... Swap should only be used if the ... about 200MB free (mostly cache and buffers), ... it should show even X growing, so I'll monitor it for the next few ...
    (Debian-User)
  • Re: Memory usage measurement
    ... not including cache and buffers. ... buffers/cache and Swap used column, ... VmallocChunk: 767044 kB ... Habit is habit, and not to be flung out of the window by any man, but ...
    (Ubuntu)
  • Re: Swap usage
    ... How to know if my linux is currently using swap or not, ... I'm sure there're a few system monitoring and stat collection tools ... used for a time end up being swapped out to make the system RAM available ...
    (comp.os.linux.misc)
  • Re: new disk layout
    ... the 'buffers' and 'cached' need not be saved, ... need is the swap in use plus the memory in use. ... probably large enough even when you upgrade to 4 GB RAM. ...
    (Fedora)