Re: size of the inflated kernel

From: Keith Owens (kaos@ocs.com.au)
Date: Tue Jan 11 2000 - 19:53:10 EST


On Tue, 11 Jan 2000 18:21:11 +0530 (IST),
T V Govind <govind@wipinfo.soft.net> wrote:
> Is there some means to find out the size of the fully inflated kernel
> after system boot. i'm trying to strip down the kernel to have as many
> modules as loadable and need to know the actual memory used up by the
> kernel.

ksymoops -v /usr/src/linux/vmlinux -s map < /dev/null

will save the complete map including modules. _stext/_etext are the
bounds of the program text. Next you get the data, types D and d.
That is followed by __init_begin/__init_end, this is allocated when the
kernel starts then the area is discarded and reused for kmalloc after
initialization. Next is BSS, from __bss_start to _end. _end is the
end of the static kernel but remember to allow for the hole where
__init data is reused.

ftp://ftp.ocs.com.au/pub/ksymoops/v2.3

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Jan 15 2000 - 21:00:19 EST