what process is eating my swap?
Stijn Hoop
stijn at win.tue.nl
Fri May 9 07:12:49 PDT 2003
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 at sandcat] </> uname -v
FreeBSD 4.8-RELEASE #0: Thu May 1 20:20:44 CEST 2003
[stijn at 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 99%
full, I thought) to determine it, but:
[stijn at sandcat] </> ps auxww | grep -v VSZ | awk 'BEGIN {vsz = 0} {vsz = 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 at sandcat] </> grep /tmp /etc/fstab
/dev/da0s1b /tmp mfs rw,-s=524288 2 2
[stijn at 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 at 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
--
"An adult is a child who has more ethics and morals, that's all."
-- Shigeru Miyamoto
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20030509/fb823925/attachment.bin
More information about the freebsd-questions
mailing list