LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions
User Name
Password
Linux - Distributions This forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on... Note: An (*) indicates there is no official participation from that distribution here at LQ.

Notices


Reply
  Search this Thread
Old 12-17-2017, 08:37 PM   #1
TheLexx
Member
 
Registered: Apr 2013
Distribution: Gentoo
Posts: 79

Rep: Reputation: Disabled
People using self-compiled Linux kernels


Q1: Why did you choose a self-compiled kernel over a pre-built kernel?

Q2: Do you consider the machine(s) running self-compiled kernels to be your workhorse computer or an experimental box?

Q3: What distro(s) are running under the self-compiled kernel?
 
Old 12-17-2017, 10:18 PM   #2
Mill J
Senior Member
 
Registered: Feb 2017
Location: @127.0.0.1
Distribution: Mint, Void, MX, Haiku, PMOS, Plasma Mobile, and many others
Posts: 1,258
Blog Entries: 2

Rep: Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542
1: Because there is no pre built kernel in LFS.

2:currently experimental for the ultimate workhorse.

I've just started building my own, but I like the extreme control this gives. Since the kernel is the heart of the system, the ability to configure/build is a great help on a custom install.
 
Old 12-18-2017, 02:35 AM   #3
!!!
Member
 
Registered: Jan 2017
Location: Fremont, CA, USA
Distribution: Trying any&ALL on old/minimal
Posts: 997

Rep: Reputation: 382Reputation: 382Reputation: 382Reputation: 382
1: I make tinyconfig to: a) learn (kernel config) b) THE100%MINIMUM .config for my VBox Vpc
2: experimental (XP netbook is my 'workhorse'==web-browserS )
3: NuTyX !!! (try it!!! Thanks tnut!!)
 
Old 12-18-2017, 07:57 AM   #4
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,574
Blog Entries: 19

Rep: Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453
I have Crux and LFS on my main computer and both require you to build your own kernel. I also have Debian and for that I use the stock kernel.

In earlier days I usually built my own kernels because I was using very limited hardware and home-rolled kernels load faster. Now that I have 2 GB RAM (which I consider lavish for my purposes) I stick with distro stock kernels where they exist. It's better to do so anyway because the stock kernel may be tuned to the userspace software in the way that a home-rolled kernel wouldn't be.

When I installed NutyX on my laptop, I had to build my own kernel because the stock kernel's initramfs scripts tried to set up a framebuffer that would'nt work with my VIA video chip.
 
Old 12-18-2017, 08:51 AM   #5
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
I started compiling kernels "The Debian Way" (compiling to .deb packages then installing them) because when one of my laptops was new the touchpad didn't work properly on older kernels. Nowadays I'll compile newer kernels on the Debian Sid machines mainly just because I can and in case they let things work better.
 
Old 12-18-2017, 09:03 AM   #6
Soitgoes
Member
 
Registered: Oct 2016
Location: Beyond Thunderdome
Distribution: Gentoo
Posts: 67

Rep: Reputation: Disabled
1. It sounds cliche, but to learn more what is "underneath the hood".
2. If you run exotic hardware, this might be the only way to go.
3. There are a lot of options which I don't need, yet are built into many distros kernels.
4. I guess I'm just curious and I like breaking things.

I run Gentoo at home as my main server/desktop so I guess you could say it is my main "workhorse". Though my work laptop has to run Windows. I know, pretty sad. And no, I cannot really tell a difference between my own self-compiled kernel and a pre-built kernel. I can say though that my Gentoo box has given me little to no problems with those self-compiled kernels.

Best Regards
 
Old 12-18-2017, 09:16 AM   #7
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,574
Blog Entries: 19

Rep: Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453
When I was using Gentoo (and that was a few years ago) there was no pre-compiled kernel; you had to make your own. However you could use a script called genkernel which gave you a stock kernel.
 
Old 12-18-2017, 09:22 AM   #8
Soitgoes
Member
 
Registered: Oct 2016
Location: Beyond Thunderdome
Distribution: Gentoo
Posts: 67

Rep: Reputation: Disabled
It’s still that way. You can use genkernel but it’s encouraged to roll your own.
 
Old 12-21-2017, 06:24 AM   #9
slackartist
Member
 
Registered: Oct 2015
Location: Where the buffalo's roam
Distribution: Slackware Current Multilib
Posts: 161
Blog Entries: 20

Rep: Reputation: 26
low latency , double check the configuration settings, specify the processor family, maybe just switch video drivers to the open source ones. and to turn off the really noticeable built in kernel configs.

this is my media computer

but just this last recompile/kernel-upgrade was just trying to find a compiling error for the wipi, but i believe the drivers are outdated, since i went through a bunch of make compiles to get it to compile correctly but in the end it was no good. Will have to spot a different driver file elsewhere which is expected out of wireless dongles so the whole kernel recompile

i did spot a section about newer hardware esp usb two and three where there is a difference. would be good to see that tested personally one day
 
Old 12-26-2017, 11:38 AM   #10
_roman_
Member
 
Registered: Dec 2017
Location: _Austro_Bavaria_
Distribution: gentoo / linux mint
Posts: 433

Rep: Reputation: 29
Quote:
Originally Posted by TheLexx View Post
Q1: Why did you choose a self-compiled kernel over a pre-built kernel?

Q2: Do you consider the machine(s) running self-compiled kernels to be your workhorse computer or an experimental box?

Q3: What distro(s) are running under the self-compiled kernel?
q1: Removing modules and functionality I do not want or need.
Lockdown in regards of security.

Also certain features are not enabled usually. So i enable encryption and other features

q2: It is my only computer which I use on a daily basis

it is faster because I use experimental feature to compile for my ivybridge cpu instead of generic architecture. Speed improvement was in several percent for compiling libreoffice. libreoffice is my benchmark. and it was on several reruns to verify the results.

q3: gentoo ~amd64

Quote:
Originally Posted by Soitgoes View Post
It’s still that way. You can use genkernel but it’s encouraged to roll your own.
genkernel or genkernel-next

only use I see is to generate an initramfs.
I unpacked the genkernel initramfs, changed it and repacked it. As i saw during changing to luks and lvm2, that it has some coding flaws.

I saw several guys running genkernel boxes. I would not recommend it.

Genkernel kernel is nice as a starting point as a first kernel to use. I recommend that you than optimize it by removing unneeded bloat, adding functionality, and setting the cpu architecture and the compiler cpu type correctly.

Last edited by _roman_; 12-26-2017 at 11:47 AM.
 
  


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
Where are pre-compiled kernels in Slackware14 CDRom? Sefid par Linux - Newbie 5 07-11-2013 04:34 PM
Compiled kernels 3.0.4 and 3.0.8 both giving acpi errors AuroraZero Slackware 10 10-30-2011 03:03 PM
kernel-headers and custom compiled kernels jaakkop Slackware 2 11-22-2005 11:21 AM
DHCP not pulling IP on later 2.4 self compiled kernels php Slackware 1 05-15-2005 04:21 PM
Idea to help the people not good at configuring kernels e1000 Slackware 1 12-18-2003 11:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions

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