Re: size of the inflated kernel

From: Nicholas Mc Guire (nicholas.mc.guire@univie.ac.at)
Date: Wed Jan 12 2000 - 02:43:18 EST


> Hi,
> 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.
>
check the bootmessage with dmesg right after the box boots up , you can't
tell from the size of vmlinuz because the amount of allocated kernel memory
depends on your hardware and on the memory available (reserved + data will
change) . dmesg will give you something like:

....snip
Calibrating delay loop... 349.80 BogoMIPS
Memory: 128120k/131072k available (976k kernel code, 412k reserved, 1508k data, 56k init)
CPU: AMD AMD-K6tm w/ multimedia extensions stepping 02
...snip
VFS: Mounted root (ext2 filesystem) readonly.
Freeing unused kernel memory: 56k freed

so in this case the kernel code is 976k

but this may change depending on modules inserted and things like that ,but
this should give you a good approximation.

nmg

*------------------------------------------------------------------------*
*THERE {__} Universitaet Wien *
*IS oo ) Inst. f. Materialphysik *
*LIFE O_ `_-------. Mc Guire Nicholas *
*IN (-. ,-\ *
*THE || )---< ) nicholas.mc.guire@univie.ac.at *
*NET ! ||| | | privat: der.herr@hofr.at *
* q5293324@bonsai.fernuni-hagen.de *
*------------------------------------------------------------------------*

-
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