LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 12-22-2004, 06:25 PM   #1
DJ Tribal
LQ Newbie
 
Registered: Aug 2004
Location: Hardwired to the Internet
Distribution: Mandrake 10.1 Official
Posts: 12

Rep: Reputation: 0
Question Benefits of a custom kernel?


Hi,

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.... :-)
 
Old 12-22-2004, 07:04 PM   #2
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
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)
 
Old 12-22-2004, 07:05 PM   #3
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Kernel-Patch Debian Logo 2.6.2 not correctly working for custom kernel 2.6.11 smp deepclutch Debian 3 06-27-2005 03:59 AM
New FAQ topic: Should I edit my kernel configuration?/Should I build a custom kernel? chort *BSD 10 09-10-2004 11:15 PM
Slackware 10, custom 2.6.7 kernel, lilo, loads kernel very slowly entropyv Slackware 3 08-19-2004 06:06 PM
custom kernel with Debian kernel-package comprookie2000 Debian 9 06-29-2004 05:30 PM
base kernel vs custom kernel with distros geyes30 Linux - Newbie 8 01-02-2004 10:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:22 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration