From owner-freebsd-hackers Wed Mar 25 10:34:36 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id KAA03566 for freebsd-hackers-outgoing; Wed, 25 Mar 1998 10:34:36 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from dyson.iquest.net (dyson.iquest.net [198.70.144.127]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id KAA03490 for ; Wed, 25 Mar 1998 10:34:28 -0800 (PST) (envelope-from toor@dyson.iquest.net) Received: (from root@localhost) by dyson.iquest.net (8.8.8/8.8.8) id NAA05640; Wed, 25 Mar 1998 13:34:16 -0500 (EST) (envelope-from toor) From: "John S. Dyson" Message-Id: <199803251834.NAA05640@dyson.iquest.net> Subject: Re: Question about "ps" output In-Reply-To: <199803251616.IAA11359@austin.polstra.com> from John Polstra at "Mar 25, 98 08:16:15 am" To: jdp@polstra.com (John Polstra) Date: Wed, 25 Mar 1998 13:34:16 -0500 (EST) Cc: hackers@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL32 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > This is probably an ignorant question, but I'll ask it anyway. > In the output of "ps -l", what circumstances cause RSS to be larger > than VSZ, as in the last line here? > > UID PID PPID CPU PRI NI VSZ RSS WCHAN STAT TT TIME COMMAND > 1001 3815 3814 1 10 0 1036 460 wait Ss p2 0:01.48 -bash (bash) > 1001 11328 3815 3 28 0 644 276 - R+ p2 0:00.01 ps -l > 1001 10758 10757 1 10 0 1020 440 wait Is p6 0:00.19 -bash (bash) > 1001 10771 10758 101 -6 0 3568 6476 - R+ p6 23:36.70 cvsup -h bur > > I thought VSZ was the total size of the process, and RSS was the > subset of it resident in memory. > On 2.2.X and earlier versions of 3.0-current, VSZ didn't take mmaped segments into account. Now it does. RSS has been accurate. John To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message