Date: Thu, 28 Feb 2008 16:37:40 +0200 From: Kostik Belousov <kostikbel@gmail.com> To: Miroslav Lachman <000.fbsd@quip.cz> Cc: Arne Schwabe <arne@rfc2549.org>, FreeBSD Current <freebsd-current@freebsd.org> Subject: Re: Specific Swap Usage Message-ID: <20080228143740.GY57756@deviant.kiev.zoral.com.ua> In-Reply-To: <47C6BA70.5070509@quip.cz> References: <47C5E204.9080003@rfc2549.org> <47C6BA70.5070509@quip.cz>
next in thread | previous in thread | raw e-mail | index | archive | help
--ymtaOUW2lKqK7has Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Feb 28, 2008 at 02:43:12PM +0100, Miroslav Lachman wrote: > Arne Schwabe wrote: > >Hi, > > > >is there any way to look what programs are swapped out and how much=20 > >memory they use? Looking at SIZE in top is just a wild guess. One server= =20 > >here grows in swap usage and panics eventuelly when all swap is usage.= =20 > >Swap usage is growing slowly (100 MB /week ) but it is growing and see= =20 > >no way to get what really uses swap :( (Read man ps three times already = :/) >=20 > 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> >=20 > from `man top` > COMMAND is the name of the command that the process is currently=20 > running (if the process is swapped out, this column is marked "<swapped>"= ). >=20 > In `ps` output in column state: W - The process is swapped out. >=20 > You can get a list of swapped processes by this command: > ps auxwww | awk '$8 ~ /.W.*/ { print $0}' >=20 > (tested on FreeBSD 6.2 & FreeBSD 7.0) Swapped process very much means swapped out kernel stack only. --ymtaOUW2lKqK7has Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (FreeBSD) iEYEARECAAYFAkfGxzMACgkQC3+MBN1Mb4hh+gCg6Q+qNdmNdm2ArlbfFcEjSlhG tNgAoJomDSOLJwGqFbeh7RvRutRhSDA3 =rU2I -----END PGP SIGNATURE----- --ymtaOUW2lKqK7has--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080228143740.GY57756>