Re: Specific Swap Usage



Arne Schwabe wrote:
Hi,

is there any way to look what programs are swapped out and how much memory they use? Looking at SIZE in top is just a wild guess. One server here grows in swap usage and panics eventuelly when all swap is usage. Swap usage is growing slowly (100 MB /week ) but it is growing and see no way to get what really uses swap :( (Read man ps three times already :/)

AFAIK swapped processes in top are shown in lt + gt signs (braces):
1382 root 1 5 0 1380K 0K ttyin 0:00 0.00% <getty>

from `man top`
COMMAND is the name of the command that the process is currently running (if the process is swapped out, this column is marked "<swapped>").

In `ps` output in column state: W - The process is swapped out.

You can get a list of swapped processes by this command:
ps auxwww | awk '$8 ~ /.W.*/ { print $0}'

(tested on FreeBSD 6.2 & FreeBSD 7.0)

Miroslav Lachman
_______________________________________________
freebsd-current@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • 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. ... top or free could tell you about swap usage. ...
    (SuSE)
  • Re: Redhat system speed problem (CVS)
    ... > Because running the command top doesn't show any processes using up that ... the kernel is just buffering efficiently. ... The swap usage is fine, ... up some memory in case more is needed quickly in the future. ...
    (linux.redhat)
  • Re: Specific Swap Usage
    ... Arne Schwabe wrote: ... is there any way to look what programs are swapped out and how much memory they use? ... One server here grows in swap usage and panics eventuelly when all swap is usage. ...
    (freebsd-current)
  • Re: D3/Linux Linux swap file usage
    ... If using FlashBASIC, split D3 memory, so: ... getting the old settings - not good. ... with the D3 flusher consuming memory and flowing into swap. ... the swap usage dropped to zero. ...
    (comp.databases.pick)
  • Re: Out of Memory
    ... >>depending I presume on the resolution of the slides being shown. ... >>Meanwhile swap usage increases consistently, ... 355MB, now without doing anything, memory climbed about to ... 750MB (RES), when stopping simpress. ...
    (comp.os.linux.misc)