LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 07-01-2015, 05:19 PM   #1
scoot1976
LQ Newbie
 
Registered: Jul 2015
Posts: 4

Rep: Reputation: Disabled
Is it worth compiling my own kernel?


Hi,

I ask this question out of curiosity, I used to re-compile custom kernel's many years ago on multiple versions of Linux and I've not done it for a long time.

I've just got back into Linux (shame on me, I've gone for Debian though I would have gone for Redhat had it not been enterprise and yes I know I could have used CentOS) and now have a working LAMP/Mail/"Anything I want it to do" server which I have thoroughly enjoyed setting up.

Is it worth doing and relearning? Don't get me wrong I used to enjoy it.

Thanks,

Scoot

Last edited by scoot1976; 07-01-2015 at 05:21 PM.
 
Old 07-01-2015, 06:29 PM   #2
LinBox2013
Member
 
Registered: Sep 2013
Location: Southern Kentucky
Distribution: Arch
Posts: 119

Rep: Reputation: 45
Quote:
Originally Posted by scoot1976 View Post
Hi,

I ask this question out of curiosity, I used to re-compile custom kernel's many years ago on multiple versions of Linux and I've not done it for a long time.

I've just got back into Linux (shame on me, I've gone for Debian though I would have gone for Redhat had it not been enterprise and yes I know I could have used CentOS) and now have a working LAMP/Mail/"Anything I want it to do" server which I have thoroughly enjoyed setting up.

Is it worth doing and relearning? Don't get me wrong I used to enjoy it.

Thanks,

Scoot
If you are looking for more speed, not worth the time. If you want to learn, learning is fun and I say go for it.

I used to compile my own back in the day. It has however come to a point where the returns are about none. The speed of hardware is just insane nowadays. I did a Gentoo on this laptop about 8 months ago just to check. I was in front of a full compiled XFCE desktop in about 3 hours. Insane (I did it a long time ago and it took days).
 
Old 07-01-2015, 06:40 PM   #3
mralk3
Slackware Contributor
 
Registered: May 2015
Distribution: Slackware
Posts: 1,900

Rep: Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050
My experience has been that a custom kernel can significantly speed things up and provide better performance, provided you pick the correct kernel configuration options prior to running make.

My experience in the past as a system administrator has been that the default kernel is used in a production environment. This guarantees stability, kernel security updates, and support form the distribution maintainer. It is generally better to use a well tested kernel in a server environment; the distribution kernel is just that.

For personal use, I usually build a custom kernel using the newest long term support (LTS) kernel available. Then every few releases of that LTS kernel, I recompile for bug fixes and other updates. I usually leave the distribution kernel installed on servers though.

I am positive others will have different outlooks/opinions. For personal use, it really is a matter of preference. The exceptions are if you are trying to optimize, you have a very specific hardware setup across multiple machines, or you are trying to reach a policy specification for specific use cases (an example would be for security/ system hardening).

The majority of the time, the distribution provided kernel is the best option. This is because it is tested and it will most likely run well, regardless of whatever you throw at it.
 
Old 07-01-2015, 07:10 PM   #4
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,974

Rep: Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623
On a home system it would end up being a learning project for the most part.

On a production server it could improve your server use to some degree. You'd have to set any number of the settings for your load. You'd have to remove all the hundreds of extra drivers too. As to how far it would improve your system would be the real test. I'd think a well run server farm would have their own kernel. Millions of servers run stock kernels. It can be considered a safer move.

Anyone interested in linux ought to do it once I'd think. It can be rather time consuming the first time.

Last edited by jefro; 07-01-2015 at 07:13 PM.
 
Old 07-01-2015, 09:35 PM   #5
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,623

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
to LEARN to do it
-- YES --
and who knows you might need to build a custom kernel for very odd and unusual hardware

but as above it is a very good learning experience
like building a SECOND install of say glib for a development version of some software
-- The Gimp DEVELOPMENT branch is notorious for things like that

for the EXPERIENCE go for it

to speed up booting and the OS or to SHRINK the size ????

Not worth it too much , but there is always an exception to the rule



to quote above
Quote:
For personal use, it really is a matter of preference. The exceptions are if you are trying to optimize,
i do this with the image editor "The Gimp "
after 14 or so years of building the source , this is just a habit i do

Last edited by John VV; 07-01-2015 at 09:39 PM.
 
Old 07-02-2015, 04:48 AM   #6
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,479

Rep: Reputation: Disabled
If you want to, do it.
I've been using Linux & BSD since 1999, & only twice have I compiled a kernel, & that was just for curiosity.
 
Old 07-02-2015, 10:34 AM   #7
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
What is point of calling the system Linux and not compile the kernel for your specific taste or need. I have done it many a times upto now. You have to learn a lot more for building your own kernel and learning is needed constantly as features and options change with versions. Though some options remain same.
 
Old 07-02-2015, 11:22 AM   #8
scoot1976
LQ Newbie
 
Registered: Jul 2015
Posts: 4

Original Poster
Rep: Reputation: Disabled
Thanks for the replies I think I'll do it on my main pc, I don't really want to have to recomplile on the server every time a new one comes out for security reasons. Quite looking forward to seeing what's in there these days.
 
Old 07-02-2015, 11:38 AM   #9
JaseP
Senior Member
 
Registered: Jun 2002
Location: Eastern PA, USA
Distribution: K/Ubuntu 18.04-14.04, Scientific Linux 6.3-6.4, Android-x86, Pretty much all distros at one point...
Posts: 1,802

Rep: Reputation: 157Reputation: 157
Absent a specific hardware need to do so, I would think that it doesn't make sense to compile a custom kernel. When you do, you invite all kinds of compatibility issues with other software packages.
 
  


Reply



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
Compiling specifically for recent AMD64 cpus - worth it? forrest44 Slackware 3 09-03-2009 09:48 PM
Kernel 2.6.x....is it worth it? uio Slackware 6 04-03-2006 08:50 AM
2.6 kernel worth it? deveraux83 Slackware 2 10-28-2004 09:35 AM
2.6 kernel - is it worth it joker20 Slackware 6 09-23-2004 03:57 AM
Is the 2.6.* kernel worth it??? tigerflag Slackware 9 06-21-2004 04:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 06:35 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
Open Source Consulting | Domain Registration