Date: Fri, 9 May 2003 16:12:00 +0200 From: Stijn Hoop <stijn@win.tue.nl> To: freebsd-questions@freebsd.org Subject: what process is eating my swap? Message-ID: <20030509141200.GC7374@pcwin002.win.tue.nl>
next in thread | raw e-mail | index | archive | help
--raC6veAxrt5nqIoY
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
Hi,
My swapspace is 99% used, but I can't find a way to figure out what process=
is
using it. top & ps don't seem to list swap usage of processes, and systat
-swap only lists the fact that 99% is in use.
[stijn@sandcat] </> uname -v
FreeBSD 4.8-RELEASE #0: Thu May 1 20:20:44 CEST 2003
[stijn@sandcat] </> top | grep Swap
Swap: 1536M Total, 1536M Used, 4K Free, 99% Inuse
I tried to use ps's VSZ column (which should be > swap if swap was really 9=
9%
full, I thought) to determine it, but:
[stijn@sandcat] </> ps auxww | grep -v VSZ | awk 'BEGIN {vsz =3D 0} {vsz =
=3D vsz + $5} END {print vsz}'
788352
How can this be different from the top output?
Two things are suspect:
- I'm using a mfs /tmp, but that should be limited to 256M:
[stijn@sandcat] </> grep /tmp /etc/fstab
/dev/da0s1b /tmp mfs rw,-s=3D524288 2 2
[stijn@sandcat] </> df -h /tmp
Filesystem Size Used Avail Capacity Mounted on
mfs:24 252M 68K 232M 0% /tmp
- I'm using vinum for two RAID-5 arrays on 8 ATA disks, and was
rsync'ing from one to the other at the time the kernel complained
about lack of swapspace:
[stijn@sandcat] </> dmesg | grep swap
swap_pager_getswapspace: failed
pid 33932 (rsync), uid 0, was killed: out of swap space
Could vinum somehow 'leak' swap space? My swap partition is on a regular
SCSI disk, not on a vinum volume, so this seems farfetched but I'm a bit
at a loss here.
Anyone have any clue? I need to have a bit of virtual memory on this
machine...
--Stijn
--=20
"An adult is a child who has more ethics and morals, that's all."
-- Shigeru Miyamoto
--raC6veAxrt5nqIoY
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (FreeBSD)
iD8DBQE+u7cwY3r/tLQmfWcRApw/AJ9D8srIrl2ogmKPhEfBN/TWz2VzkwCfZv+y
x5l7FTIPWPyJnu8ds1ScR7I=
=ESuV
-----END PGP SIGNATURE-----
--raC6veAxrt5nqIoY--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030509141200.GC7374>
