From owner-freebsd-questions Thu Nov 2 21:28:22 1995 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id VAA17403 for questions-outgoing; Thu, 2 Nov 1995 21:28:22 -0800 Received: (from dyson@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id VAA17394 ; Thu, 2 Nov 1995 21:28:20 -0800 From: John Dyson Message-Id: <199511030528.VAA17394@freefall.freebsd.org> Subject: Re: what's counted in RSS and VSZ? To: pgf@American.COM Date: Thu, 2 Nov 1995 21:28:20 -0800 (PST) Cc: freebsd-questions@freebsd.org In-Reply-To: <199511030324.WAA05749@mozart.american.com> from "Paul Fox" at Nov 2, 95 10:24:48 pm X-Mailer: ELM [version 2.4 PL24] Content-Type: text Content-Length: 703 Sender: owner-questions@freebsd.org Precedence: bulk > > here are the results: > > USER PID %CPU %MEM VSZ RSS TT STAT STARTED TIME COMMAND > pgf 8369 0.0 2.3 136 324 p3 S 10:21PM 0:00.04 simple.dynamic > pgf 8370 0.0 0.4 164 48 p3 S 10:21PM 0:00.01 simple.static > > questions: > > - how can RSS ever be bigger than VSZ? > The shared lib version does not include the shared lib in the VSZ, and the shared lib itself is 'prefaulted' into the processes address space by placing convieniently accessible (in memory) pages directly in. These pages count as part of the RSS even if they are not used. This significantly speeds up process start-up (most of the time.) John dyson@freebsd.org