Date: Wed, 26 Mar 1997 18:45:14 +1100 From: Bruce Evans <bde@zeta.org.au> To: brianc@netrover.com, freebsd-hackers@FreeBSD.org Subject: Re: binary/resident size Message-ID: <199703260745.SAA01189@godzilla.zeta.org.au>
next in thread | raw e-mail | index | archive | help
>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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199703260745.SAA01189>