From owner-freebsd-bugs Tue Jan 30 23:51:05 1996 Return-Path: owner-bugs Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id XAA27638 for bugs-outgoing; Tue, 30 Jan 1996 23:51:05 -0800 (PST) Received: from jhome.DIALix.COM (root@jhome.DIALix.COM [192.203.228.69]) by freefall.freebsd.org (8.7.3/8.7.3) with ESMTP id XAA27622 for ; Tue, 30 Jan 1996 23:50:49 -0800 (PST) Received: (from peter@localhost) by jhome.DIALix.COM (8.7.3/8.7.3) id PAA07654; Wed, 31 Jan 1996 15:49:38 +0800 (WST) Date: Wed, 31 Jan 1996 15:49:38 +0800 (WST) From: Peter Wemm Message-Id: <199601310749.PAA07654@jhome.DIALix.COM> To: aagero@aage.aage.priv.no (Ege Rxbekk) cc: bugs@freebsd.org Subject: Re: ps pages in swapped-out processes Newsgroups: freebsd.bugs References: <199601302306.AAA11772@birk04.studby.uio.no> X-Newsreader: NN version 6.5.0 #1 (NOV) Sender: owner-bugs@freebsd.org Precedence: bulk >If i do e.g. "ps aux", I might see something like >aagero 221 0.0 0.0 704 0 p1 IWs Mon04AM 0:00.45 -bash (bash) >but running ps again, gives >aagero 221 0.0 0.1 704 12 p1 Is Mon04AM 0:00.45 -bash (bash) >and the process has gained some RSS size, together with all the other >swapped-out processes. This is on a quite recent current-system. >-aage This is because 'ps' accesses the process's address space to fetch data from the 'user' struct and the argument strings from it's stack. There are two pages for the user area (4K each) and generally the argv strings are all in the third page for a total of 12K. -Peter