From owner-freebsd-hackers Tue Mar 25 23:53:39 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id XAA24008 for hackers-outgoing; Tue, 25 Mar 1997 23:53:39 -0800 (PST) Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.2.228.19]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id XAA24003 for ; Tue, 25 Mar 1997 23:53:36 -0800 (PST) Received: (from bde@localhost) by godzilla.zeta.org.au (8.8.5/8.6.9) id SAA01189; Wed, 26 Mar 1997 18:45:14 +1100 Date: Wed, 26 Mar 1997 18:45:14 +1100 From: Bruce Evans Message-Id: <199703260745.SAA01189@godzilla.zeta.org.au> To: brianc@netrover.com, freebsd-hackers@FreeBSD.org Subject: Re: binary/resident size Sender: owner-hackers@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk >Just for curiousity's sake I built an assembler program that consisted soley >of "jmp ." (just to keep track of how much idle time has been "wasted". >I suspect cp_time[CP_IDLE] could tell me the same thing, but not via ps >or top). Too bad `hlt' is a privileged instruction. `jmp' will keep the CPU warm. >I guess I wasn't entirely surprised that when linked the binary was 4k. > > text data bss dec hex > 4096 0 0 4096 1000 > >What I don't understand is why VSZ is 132k and RSS is 20k. > > UID PID PPID CPU PRI NI VSZ RSS WCHAN STAT TT TIME COMMAND > 134 2443 1 333 74 20 132 20 - RN v1- 5502:24.27 idle > >It is run as 'idprio 31 nice -20 idle'. I get an RSS of 24 under -current. 24 is easy to explain: 1 page text 1 page stack 1 page page directory 1 page page table 2 pages user area I don't know what the big VSZ is for. Bruce