LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


View Poll Results: Do You Compile Your Own Kernel or Use The One Shipped With Your Distribution?
I compile my own kernel (official tree) 51 17.47%
I compile my own kernel (other tree) 6 2.05%
I use the kernel shipped with my distribution 223 76.37%
Other 12 4.11%
Voters: 292. You may not vote on this poll

Reply
  Search this Thread
Old 08-29-2016, 09:57 AM   #1
jeremy
root
 
Registered: Jun 2000
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 13,602

Rep: Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084
Do You Compile Your Own Kernel or Use The One Shipped With Your Distribution?


The Official LQ Poll Series continues. This time we want to know: Do You Compile Your Own Kernel or Use The One Shipped With Your Distribution?

--jeremy
 
Old 08-29-2016, 10:17 AM   #2
pilotgi
Member
 
Registered: Apr 2002
Location: ks
Distribution: openSUSE Tumbleweed
Posts: 495

Rep: Reputation: 33
I've tried compiling my own kernel in the past but usually ended up with some problems, like network issues.
 
Old 08-29-2016, 10:22 AM   #3
crazypenguin
Member
 
Registered: Jun 2002
Location: Idaho
Distribution: Linux Mint, Manjaro, FreeBSD, Android
Posts: 99

Rep: Reputation: 11
Years ago I would almost always compile my kernel. But in the last 8 years or so I have been using the stock distro kernel. Running Linux Mint I see little reason for me to compile a custom kernel.
 
1 members found this post helpful.
Old 08-29-2016, 10:32 AM   #4
sidboyce
Member
 
Registered: Jan 2003
Location: Halesowen, West Midlands, UK
Distribution: SuSE 10.0/Mandriva 2006/gentoo
Posts: 89

Rep: Reputation: 15
I compile all my kernels from the latest git versions.
 
Old 08-29-2016, 10:33 AM   #5
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,337

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
When I first started using Linux in 2000 I always compiled my own kernels. I usually build my computers from second hand parts. In the early days when memory was typically fairly small I compiled my kernels in order to reduce their memory footprint and thus speed up my computers. I stopped doing so when memory became very cheap and the kernel began using loadable drivers.

------------------
Steve Stites
 
3 members found this post helpful.
Old 08-29-2016, 10:42 AM   #6
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
Using Debian Sid I tend to have fairly current kernels to install but I do still compile the latest stable kernel "the Debian way" to see how things are going. I needed to do so with my current day-to-day laptop as the drivers for the touchpad in the then current kernel didn't work so now I compile my own now and again to check it out.
 
1 members found this post helpful.
Old 08-29-2016, 10:50 AM   #7
Ook
Member
 
Registered: Apr 2004
Location: Hell, Arizona (July - 118 degrees)
Distribution: Slackware 14.2 soon to be Slackware 15
Posts: 699

Rep: Reputation: 131Reputation: 131
I almost always compile my own kernel. Though honestly, I've never noticed any performance differences. About all I do is change to the deadline block i/o scheduler, set it to preemptive, disable control group scheduler and a few minor tweaks. Never seems to make any difference, so my motivation to do so has dwindled these past few years.
 
Old 08-29-2016, 11:19 AM   #8
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,573
Blog Entries: 19

Rep: Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452
It depends on the distro, doesn't it. If there's a stock kernel, I generally use it. Why make extra work for yourself? But two of the three systems on my main computer (Crux and LFS) require you to build your own kernel. It's still the distro kernel in the sense that I use the source provided, but I can take the opportunity to cut out a lot of cruft, making for a faster boot -- and of course no initrd.

On the laptop, I have Dragora (which I hardly ever use and plan to get rid of eventually) and Nutyx. The Nutyx stock kernel uses an initrd and tries to set up a framebuffer console that plays merry hell with my chrome video card. So in that case, I was forced to build my own alternative kernel and that's the one I use.
 
1 members found this post helpful.
Old 08-29-2016, 11:21 AM   #9
Timothy Miller
Moderator
 
Registered: Feb 2003
Location: Arizona, USA
Distribution: Debian, EndeavourOS, OpenSUSE, KDE Neon
Posts: 4,005
Blog Entries: 26

Rep: Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521
I use the ones that came with my distro. Generally speaking, they work, they're fast enough for me, so there's no motivation for me to compile my own.
 
Old 08-29-2016, 11:32 AM   #10
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,659
Blog Entries: 4

Rep: Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941
In my opinion, when you use any 'distro,' you need to very carefully consider what "the division of responsibility between the two of you ... distro-provider, and you ..." ought to be.

There are, basically, four credible alternatives:
  1. Linux From Scratch ... which is just what it says.
  2. Gentoo, which is a distribution that requires you to compile everything, but that provides you with what to compile.
  3. "Binary distribution" distros ... the usual gang of idiots ... ...
  4. Corporate models such as Red Hat and Canonical.

If you choose to compile things, yourself, when you have selected "doors #3 or #4," you have just introduced "a fly in their ointment." Suddenly, those people don't know (and ... can't know!) exactly what software is on your system. Their very-convenient binary updates, which are quite-necessarily built against "what every one of our client's machines must look like," suddenly cannot be depended-on to work anymore.

Therefore, although this is (of course) entirely a thing that you are entitled to do, and that you can do, you should carefully evaluate both the inherent risks, and the return on investment (ROI). "Exactly why have you decided to do this? And, all things considered, is it (to you) worth doing?"

Last edited by sundialsvcs; 08-29-2016 at 11:33 AM.
 
3 members found this post helpful.
Old 08-29-2016, 11:40 AM   #11
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
The first Linux I had was RH-5.1, had to patch the kernel to make my sound card work. Having fun since ...
 
Old 08-29-2016, 11:43 AM   #12
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541

Rep: Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065
Nope, don't.

Slackware provides the "huge" kernel as the default. It also provides the "generic" kernel for those so inclined to compile their own. The huge kernel includes everything (as modules), the generic you roll your own to customize, reduce size, only have drivers for your existing hardware, that sort of thing.

Given that the system recognizes the hardware and includes the appropriate modules, well, why bother? Today's machines are vastly different from years ago, plenty of RAM, plenty of disk, runs just fine with the huge kernel and I don't have mess around configuring and compiling (usually a couple or three times when I did). I could care less about a few seconds, my time is worth more than that.

Hope this helps some.
 
3 members found this post helpful.
Old 08-29-2016, 11:59 AM   #13
cram869
LQ Newbie
 
Registered: Aug 2004
Location: Poughkeepsie, NY
Distribution: Fedora, RHEL, Slackware, Gentoo, KnoppMyth
Posts: 23

Rep: Reputation: 1
I like most used to compile my own kernels for functionality with certain hardware, but I haven't seen a need to do some in the last several years. I can see the need if working on an embedded project, but I am much more likely to break something these days than improve on it.
 
1 members found this post helpful.
Old 08-29-2016, 12:07 PM   #14
hede
LQ Newbie
 
Registered: Sep 2005
Location: Denmark
Distribution: Sabayon, Rosa, ALT
Posts: 4

Rep: Reputation: 0
I allways use the kernel shipped with my Sabyon
 
Old 08-29-2016, 12:15 PM   #15
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,842

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
I use the default kernel. Sometimes (a few years ago) I built/compiled my own one, but nowadays I use only precompiled ones.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
change the shipped kernel on a Live CD scmbg Linux - Kernel 1 10-31-2008 12:28 AM
cannot re-compile fedora8 distribution kernel bjharker Fedora 1 09-19-2008 08:54 PM
Compile Wine to be distribution independent ? Dark Carnival Linux - Software 0 11-28-2007 04:38 AM
sound driver shipped in kernel, not listed in xconfig reetep Linux - General 4 01-29-2004 03:25 PM
Slackware 8.1 shipped? lto Slackware 7 07-15-2002 12:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:08 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