From owner-freebsd-questions@FreeBSD.ORG Fri May 9 12:41:08 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 1B00C37B401 for ; Fri, 9 May 2003 12:41:08 -0700 (PDT) Received: from pcwin002.win.tue.nl (pcwin002.win.tue.nl [131.155.71.72]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0463843F75 for ; Fri, 9 May 2003 12:41:07 -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 h49JeIVo008769; Fri, 9 May 2003 21:40:18 +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 h49JeHTw008768; Fri, 9 May 2003 21:40:17 +0200 (CEST) Date: Fri, 9 May 2003 21:40:17 +0200 From: Stijn Hoop To: Alexander Haderer Message-ID: <20030509194017.GG7374@pcwin002.win.tue.nl> References: <5.2.0.9.1.20030509161609.019c6298@postamt1.charite.de> <20030509141200.GC7374@pcwin002.win.tue.nl> <5.2.0.9.1.20030509161609.019c6298@postamt1.charite.de> <5.2.0.9.1.20030509181219.01a8c170@postamt1.charite.de> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="9Iq5ULCa7nGtWwZS" Content-Disposition: inline In-Reply-To: <5.2.0.9.1.20030509181219.01a8c170@postamt1.charite.de> User-Agent: Mutt/1.4.1i X-Bright-Idea: Let's abolish HTML mail! cc: freebsd-questions@freebsd.org Subject: Re: 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 19:41:08 -0000 --9Iq5ULCa7nGtWwZS Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, May 09, 2003 at 06:14:41PM +0200, Alexander Haderer wrote: > At 16:32 09.05.2003 +0200, Stijn Hoop wrote: > >On Fri, May 09, 2003 at 04:18:17PM +0200, Alexander Haderer wrote: > >> What does "top -o size" show? Look at column size. What is on top? How= =20 > >many > >> processes? > > > >Here's a random sample. Of course mount_mfs is using 256M, that's to be > >expected. > > > >last pid: 39401; load averages: 0.15, 0.14, 0.09 up=20 > >1+03:32:39 16:31:15 > >117 processes: 1 running, 116 sleeping > >CPU states: 0.0% user, 0.0% nice, 1.2% system, 1.2% interrupt, 97.7%= =20 > >idle > >Mem: 146M Active, 445M Inact, 124M Wired, 32M Cache, 86M Buf, 4984K Free > >Swap: 1536M Total, 1536M Used, 4K Free, 99% Inuse > > > > PID USERNAME PRI NICE SIZE RES STATE TIME WCPU CPU COMMAND > > 24 root 10 0 257M 16512K mfsidl 0:01 0.00% 0.00% mount_m= fs > > 262 mysql 2 0 32828K 16504K poll 48:17 1.17% 1.17% mysqld > > 263 root 2 0 18356K 17644K select 0:03 0.00% 0.00% perl > >38861 www 18 0 10952K 7336K lockf 0:01 0.00% 0.00% httpd > >34040 www 2 0 10900K 7340K poll 0:08 0.00% 0.00% httpd > >37664 www 18 0 10876K 7304K lockf 0:03 0.00% 0.00% httpd > >38249 www 18 0 10860K 7296K lockf 0:02 0.00% 0.00% httpd > >38203 www 2 0 10852K 7264K poll 0:02 0.00% 0.00% httpd > >37490 www 2 0 10848K 7272K poll 0:05 0.00% 0.00% httpd > >39005 www 18 0 10840K 7224K lockf 0:00 0.00% 0.00% httpd > >38001 www 18 0 10836K 7256K lockf 0:02 0.00% 0.00% httpd > >37942 www 18 0 10828K 7240K lockf 0:03 0.00% 0.00% httpd > >38864 www 18 0 10812K 7220K lockf 0:01 0.00% 0.00% httpd > >38862 www 18 0 10680K 7104K lockf 0:01 0.00% 0.00% httpd > > > >I see nothing wrong in the output so far. >=20 > Well, in this case you have to much (107) memery consuming processes=20 > running. httpd is 10MB, for example. How many httpd processes are active? Good question. [stijn@sandcat] <~> ps auxww | grep httpd | wc -l 13 so that's 130 MB of httpd, 256 MB of mfs and then other processes averaging around 5 MB. But as far as I can see, the top 'SIZE' column is the same as the 'ps auxww' VSZ column, right? Because, as I posted in my other email, if I total that column, I have processes taking about 700 MB of virtual memory (and the mfs is included). Since this machine has 768 MB of RAM and 1536 MB swap, it could not be full :( I really wonder where this memory is allocated. Thanks for thinking with me so far, both to you and Anthony. --Stijn --=20 The rain it raineth on the just And also on the unjust fella, But chiefly on the just, because The unjust steals the just's umbrella. --9Iq5ULCa7nGtWwZS Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE+vAQhY3r/tLQmfWcRAqhgAJ9QuiSFmmJgKQY/gaPbwjMJT1Yu1wCfS2Yu rdhzs/oCGImgsFf65TOgRmk= =Lc4C -----END PGP SIGNATURE----- --9Iq5ULCa7nGtWwZS--