Re: Specific Swap Usage
- From: Miroslav Lachman <000.fbsd@xxxxxxx>
- Date: Thu, 28 Feb 2008 14:43:12 +0100
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"
- Follow-Ups:
- Re: Specific Swap Usage
- From: Kostik Belousov
- Re: Specific Swap Usage
- References:
- Specific Swap Usage
- From: Arne Schwabe
- Specific Swap Usage
- Prev by Date: Re: warning of pending commit attempt.
- Next by Date: Re: warning of pending commit attempt.
- Previous by thread: RE: Specific Swap Usage
- Next by thread: Re: Specific Swap Usage
- Index(es):
Relevant Pages
|
|