Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
I have been browsing around google to try and find some how-to's for recompiling the 2.6 Kernel. One question struck me - *why* do I want to recompile the kernel?
Just to say *I have* (almost like another step up the ladder when learning Linux) or is there actually a good reason to do so?
1. What are the performance increases after a freshly recompiled kernel?
a) for a Server
b) for a Desktop/Workstation
(i.e. any benchmark numbers we can discuss, as we computer nerds seem to be obsessed with numbers.....?)
2. What are the downsides to attempting a recompile?
All opinions appreciated (as long as they are constructive.... :-)
Well the big downside is that it's very easy to get it wrong in some way and end up with a system that won't boot. The reason you might want to do it are up to you. Sometimes you need to recompile the kernel to enable support for some hardware or something. Maybe a new kernel has a new feature? If it ain't broke, don't fix it. (unless you want to)
There are a bunch of reasons to compile a new kernel. I did it the first time for security reasons, because I didn't want to allow modular code in my kernel (being able to inject code into the kernel space is definitely a security risk if your paranoid like I am...).
Other reason's I can think of off the top of my head..... To add functionality you need, to reduce size (get ride of stuff you don't need), to upgrade to a version not currently offered by your particular distribution yet....
That is all I can really think of now.
There really are no downsides, providing you follow the golden rules.
1. Always keep a known good kernel image around.
2. Always keep an option on your bootloader to boot that previously stated known good kernel image.
Last thing you want is to have to dig out a boot disk to get your system up and running.
If your going to bother with compiling a new kernel you should look into the grsecurity patches. grsecurity adds some great options to help you lock down your system.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.