From owner-freebsd-questions@FreeBSD.ORG Fri May 9 07:12:48 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B41A137B405 for ; Fri, 9 May 2003 07:12:48 -0700 (PDT) Received: from pcwin002.win.tue.nl (pcwin002.win.tue.nl [131.155.71.72]) by mx1.FreeBSD.org (Postfix) with ESMTP id B8A6D43F85 for ; Fri, 9 May 2003 07:12:45 -0700 (PDT) (envelope-from stijn@pcwin002.win.tue.nl) Received: from pcwin002.win.tue.nl (orb_rules@localhost [127.0.0.1]) by pcwin002.win.tue.nl (8.12.8/8.12.8) with ESMTP id h49EC0Vo007853 for ; Fri, 9 May 2003 16:12:00 +0200 (CEST) (envelope-from stijn@pcwin002.win.tue.nl) Received: (from stijn@localhost) by pcwin002.win.tue.nl (8.12.8/8.12.8/Submit) id h49EC0Tp007852 for freebsd-questions@freebsd.org; Fri, 9 May 2003 16:12:00 +0200 (CEST) Date: Fri, 9 May 2003 16:12:00 +0200 From: Stijn Hoop To: freebsd-questions@freebsd.org Message-ID: <20030509141200.GC7374@pcwin002.win.tue.nl> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="raC6veAxrt5nqIoY" Content-Disposition: inline User-Agent: Mutt/1.4.1i X-Bright-Idea: Let's abolish HTML mail! Subject: what process is eating my swap? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 May 2003 14:12:49 -0000 --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--