From owner-freebsd-hackers Wed Mar 7 9:43:41 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from mail.numachi.com (numachi.numachi.com [198.175.254.2]) by hub.freebsd.org (Postfix) with SMTP id D677A37B719 for ; Wed, 7 Mar 2001 09:43:37 -0800 (PST) (envelope-from reichert@natto.numachi.com) Received: (qmail 9628 invoked by uid 3001); 7 Mar 2001 17:43:31 -0000 Received: from natto.numachi.com (198.175.254.216) by numachi.numachi.com with SMTP; 7 Mar 2001 17:43:31 -0000 Received: (qmail 69147 invoked by uid 1001); 7 Mar 2001 17:43:31 -0000 Date: Wed, 7 Mar 2001 12:43:31 -0500 From: Brian Reichert To: freebsd-hackers@freebsd.org Subject: swap info: 'ps' as opposed to 'limits' Message-ID: <20010307124331.E71030@numachi.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Pardon my ignorance: I'm trying to corral bloated processes, WRT swap usage. I wish to control them via 'limits'. However, I'm (in my ignorance) unable to map the attributes that 'ps' can report on, ie.: # ps -opid,rss,rsz,vsz,command (there are others, of course) To the attributes that can be controlled via the setrlimit(2) utilities (ulimits, limits, et al.) RLIMIT_DATA datasize RLIMIT_RSS memoryuse RLIMIT_STACK stacksize (there are others, of course) Does anyone have any quickie pointers? I _think_ some comination of rss or rsz -> memoryuse will be what I want, but I don't know how to infer stack usage via 'ps'. And what is 'vsz' (virtual size) anway, WRT setrlimit? -- Brian 'you Bastard' Reichert 37 Crystal Ave. #303 Daytime number: (603) 434-6842 Derry NH 03038-1713 USA Intel architecture: the left-hand path To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message