From owner-freebsd-questions Sun Dec 7 22:29:22 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id WAA04420 for questions-outgoing; Sun, 7 Dec 1997 22:29:22 -0800 (PST) (envelope-from owner-freebsd-questions) Received: from dyson.iquest.net (dyson.iquest.net [198.70.144.127]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id WAA04413 for ; Sun, 7 Dec 1997 22:29:16 -0800 (PST) (envelope-from toor@dyson.iquest.net) Received: (from root@localhost) by dyson.iquest.net (8.8.8/8.8.8) id BAA03416; Mon, 8 Dec 1997 01:28:29 -0500 (EST) (envelope-from toor) From: "John S. Dyson" Message-Id: <199712080628.BAA03416@dyson.iquest.net> Subject: Re: Out of Swap Space? In-Reply-To: <199712080623.WAA09076@mail.san.rr.com> from Studded at "Dec 7, 97 10:21:52 pm" To: Studded@dal.net Date: Mon, 8 Dec 1997 01:28:29 -0500 (EST) Cc: toor@dyson.iquest.net, FreeBSD-Questions@freebsd.org X-Mailer: ELM [version 2.4ME+ PL31 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Studded said: > On Sun, 7 Dec 1997 21:40:44 -0500 (EST), John S. Dyson wrote: > > >"pstat -s" tells you the swap space currently allocated. > > Pardon me if this is a FAQ, but I've looked high and low for > something that will tell me WHICH processes are swapping. I've often > wanted this information for balancing loads between machines, but the only > thing I've come up with is killing processes selectively, which is of > course, less than optimal. :) > > Any help appreciated, > Interesting request. To get an idea of memory usage on processes, you can cat /proc//map. That doesn't tell you exactly what you want to know though (swap space). That would be an interesting "fun" project to add to procfs though. (That project is specifically one that I think of while laying in bed, and forget about by the time that the morning comes around.) I am making sure that this stays in my mailbox for future review. -- John dyson@freebsd.org jdyson@nc.com