Subject: Re: Memory used by kernel.
To: None <Riccardo.Veraldi@fi.infn.it>
From: Simon Burge <simonb@wasabisystems.com>
List: port-alpha
Date: 01/24/2002 02:58:33
Riccardo.Veraldi@fi.infn.it wrote:

> this is my situation:
> NetBSD 1.5.3_ALPHA (SHAKIRA) #0: Sat Jan 19 23:31:20 CET 2002
>     fddi@shakira.hidden.org:/usr/src/sys/arch/alpha/compile/SHAKIRA
> DEC 3000 - M300, 150MHz
> 8192 byte page size, 1 processor.
> total memory = 160 MB
> (2048 KB reserved for PROM, 158 MB used by NetBSD)
> avail memory = 142 MB
> using 1024 buffers containing 8192 KB of memory
> 
> Where does go 18 MB of memory??
> It says 8MB are used for buffers, 2MB reserved for PROM so the should be
> 10MB. Instead 142MB are avaliable, so there is a hole of 8MB I Can;t
> explain.
> anyone could give me some help about it?
> thanks a lot

On my 1.5.3_ALPHA kernel, the kernel itself takes up nearly 4MB (look at
the "dec" (for decimal) column):

	thoreau:~ 1172> size /netbsd 
	text    data    bss     dec     hex     filename
	3292972 260552  380744  3934268 3c083c  /netbsd

The other ``missing'' 4MB would be various other miscellaneous data
structures set up at kernel boot time.  One reason that the buffers
might be reported separately is that they are usually the largest of
these data structures.

Simon.
--
Simon Burge                            <simonb@wasabisystems.com>
NetBSD CDs, Support and Service:    http://www.wasabisystems.com/