Kernel compiling: Why is my Kernel so big?

Dieter Wirz didi.wirz at gmail.com
Fri Jul 10 12:20:10 UTC 2009


Thanks, Markus!
You pushed me in the right direction...

2009/7/10 Markus Schönhaber <ubuntu-users at list-post.mks-mail.de>:
> Dieter Wirz:
>
>> ~ du /lib/modules/* -sh #Disk usage of modules
>> 672M    /lib/modules/2.6.28.10-didi1
>> 88M     /lib/modules/2.6.28-13-generic
>>
>> And initrd is about 50M!
>
> You should set
> INSTALL_MOD_STRIP=1
> for the modules_install stage. Otherwise the modules will contain
> debugging symbols, which makes them really huge.
> I'm not sure how to set INSTALL_MOD_STRIP with make-kpkg. But simply
> setting it in the evironment might be enough.

But instead of compiling the modules with debugging  info's and then
striping them off I now simply turn OFF "Compile the kernel with debug
info"....

# du /lib/modules/* -sh
88M     /lib/modules/2.6.28-13-generic
67M     /lib/modules/2.6.30.1-didi

Regards
Dieter




More information about the ubuntu-users mailing list