UbuntuThis forum is for the discussion of Ubuntu Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
hi guys. I am compiling the latest kernel on my ubuntu box and it is basically 500-600 mb!Why is that since comparing to Ubuntu's kernel it is much fatter(5-6 times fatter to be exact).How can i make the kernel be more light-weight. When i was extracting i noticed that the kernel extracted folders such as sparc so i am assuming it installed the dependencies for every single architecture. Is there a way i can make it i386 only?if i am wrong about my deduction what exactly is causing the problem?i compiled on feisty and the kernel is 2.6.22
Are you just counting the size of the full kernel source directory after you compile? This will be very large, since it contains all the sources and binaries. Try doing a 'make deb-pkg' and see what the size of the .pkg file created is.
The sources contain all the files for every supported architecture, processor, driver etc, but when you compile on x86 you will only compile the relevant bits for x86. If you want to get the kernel size down further, you can remove drivers, FSes etc that you don't need. The kernel RPM for my mail server, for example, is 1.4MB compared with 45MB for the original Fedora kernel package.
Disabling CONFIG_KALLSYMS_ALL will drop the size of the kernel by only a few K. If you really want to do this (unless you're compiling for an embedded arch with very limited RAM, you probably don't) then you can in [g|x]config by switching off:
General setup -> Configure standard kernel features (for small systems) -> Load all symbols for debugging/ksymoops
I still think you're comparing the total size of the sources and compiled binaries with the size of the binary kernel package though. An 'everything switched on' kernel for i386 is only about 40-50Meg.
Ok. Also , i am not comapring the sources. I installed the kernel and in synaptic , while i clicked to rmeove my custom kernel , it took of like 500 mb but when i ticked of to remove the ubuntu kernel , it only removed about 100-200 mb. also , i isntalled kubuntu , removed kubuntu the kde and then isntalled kde-base , when i added my custom kernl it was over 2 gb with just kdebase
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.