Linux-kernel mailing list archive 2000-02,: Re: size of the inflated kernel

# Re: size of the inflated kernel

Keith Owens (kaos@ocs.com.au)
Wed, 12 Jan 2000 11:53:10 +1100

- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: Martin Mares: "Re: 2.3.3[78]: kernel oops in pci_fixup_compaq"
- Previous message: Horst von Brand: "Re: time_t size: The year 2038 bug?"
- Maybe in reply to: T V Govind: "size of the inflated kernel"
- Next in thread: Nicholas Mc Guire: "Re: size of the inflated kernel"

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/

- Next message: Martin Mares: "Re: 2.3.3[78]: kernel oops in pci_fixup_compaq"
- Previous message: Horst von Brand: "Re: time_t size: The year 2038 bug?"
- Maybe in reply to: T V Govind: "size of the inflated kernel"
- Next in thread: Nicholas Mc Guire: "Re: size of the inflated kernel"