[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Making sense of dmesg output



Ian Darwin <ian@darwinsys.com> writes:

> 	avail mem = 26640384
> What's left for user-mode programs.

Nope. This is the amount of physical memory handed over to the VM system.

> 	using 430 buffers containing 1761280 bytes of memory
> 26640384 + 1761280 = 28401664
> Where did the rest of the memory go? Part to the kernel:
> $ size /obsd
> text	data	bss	dec	hex
> 2351104	290816	778984	3420904	3432e8
> 28401664 + 3420904 = 31822568
> Well, almost. Device drivers each allocate some memory, and so it goes...

This message is printed before any device drivers allocate memory.
What is allocated this far are the buffers, kernel text, data and bss,
static pagetables for the kernel and other data structures to handle the
physical memory, etc.

//art