On Mon, Feb 14, 2005 at 02:35:18AM +0000, John wrote:
> Hello list
>
> How can I see what process is eating my swap? vmstat indicates that the swap
> is being eaten, but by what? If it all gets eaten, badness occurs.
> I'm running freebsd 5.3-release-p5.
>
> thanks for any input
A good start would be to just look at the output of `ps aux` and to
focus on the memory related columns: %MEM VSZ RSS. Take special note of
which processes are using large portions of memory. Use can also use
top(1) and then sort based on memory usage. I guess I'm suggesting that
rather than trying to figure out what is using all your swap, to turn
the search around and try to find what is using all your physical
memory such that intense swapping becomes necessary.

Nathan

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFCEQ2QO0ZIEthSfkkRAu+JAKDt7GT/Dr8qEIJi8GS0Lhgv756twACgoepV
ZBC8a171xiHkLcuoS9knXAM=
=oc0g
-----END PGP SIGNATURE-----