LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-29-2016, 09:20 AM   #1
gmaslin
Member
 
Registered: Mar 2013
Posts: 32

Rep: Reputation: 0
Custom laptop kernels and compile scripts


On laptops and other mostly standardized hardware from Dell, HP and Lenovo, wouldn't it make sense to make some custom kernels and maybe even a custom OS like Porteus that could run entirely in RAM? Hell, I bet some of the members here probably did it already for this hardware. I think putting them in this thread and making it a sticky would be helpful to noobs and experienced users so they wouldn't have to redo what has already been done well. Any thoughts to the contrary?
 
Old 03-29-2016, 09:29 AM   #2
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
What's the point of a custom kernel? With Slackware's generic kernel and the correct initrd, your kernel will stay lean, but even running the huge kernel, you won't likely see any noticeable benefit compiling a custom kernel. And Eric (Alien Bob) has already started work on a live distro, called SlackLive. It can run completely in memory, or you can enable persistence and use it through reboots.
 
Old 03-29-2016, 10:10 AM   #3
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,098

Rep: Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175
there is an extensive topic on the matter

https://www.linuxquestions.org/quest...os-4175458495/

this time I'll pass...

Last edited by ponce; 03-29-2016 at 10:16 AM.
 
Old 03-29-2016, 10:25 AM   #4
gmaslin
Member
 
Registered: Mar 2013
Posts: 32

Original Poster
Rep: Reputation: 0
Thanks for the links. Homework in progress.
 
Old 03-30-2016, 01:01 AM   #5
archfan
Member
 
Registered: Mar 2016
Location: /dev/hug
Distribution: Slackware 14.2 x64
Posts: 85

Rep: Reputation: 32
Quote:
Originally Posted by bassmadrigal View Post
What's the point of a custom kernel? With Slackware's generic kernel and the correct initrd, your kernel will stay lean, but even running the huge kernel, you won't likely see any noticeable benefit compiling a custom kernel. And Eric (Alien Bob) has already started work on a live distro, called SlackLive. It can run completely in memory, or you can enable persistence and use it through reboots.
There's nothing wrong with running your own customized kernel. I do it. Many people on here do it all the time. Sometimes you need to enable certain extra settings that are disabled by default or apply custom patches for some applications.
 
Old 03-30-2016, 04:43 AM   #6
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,058

Rep: Reputation: Disabled
Quote:
Originally Posted by archfan View Post
There's nothing wrong with running your own customized kernel.
bassmadrigal didn't state that it's wrong but just asked the rationale of doing that in this specific case. Reading the original post that's a sound question IMO. I am not sure what the OP really means writing a "custom laptop kernel" as he or she seems to imply that the same "customization" should more or less fit all laptop models of a specific brand. Which is wrong as even a specific model can often be shipped with different components coming from different vendors. So for instance doing a "make localmodconfig" will lead to different results for variants of a same model.
 
1 members found this post helpful.
Old 03-30-2016, 08:43 AM   #7
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Quote:
Originally Posted by archfan View Post
There's nothing wrong with running your own customized kernel. I do it. Many people on here do it all the time. Sometimes you need to enable certain extra settings that are disabled by default or apply custom patches for some applications.
In those cases, it's perfectly acceptable to run a custom kernel. But, as Didier mentioned, it didn't seem that was the reasoning for OP's request.

For the vast majority of users, Slackware's default kernels have all the support needed to fit the majority of hardware configs out there. Some people feel the need to slim down the kernel to only match their hardware (I used to be one of them), but with today's computers, most users won't see any noticeable improvement (measurable? maybe, but it isn't likely they'll actually notice it).

I'm not saying it is bad to have a custom kernel, but for many users, there's not much benefit to be gained by it other than the learning experience (which is a very good reason to compile your own kernel).
 
Old 03-30-2016, 01:52 PM   #8
OldHolborn
Member
 
Registered: Jul 2012
Posts: 229

Rep: Reputation: 190Reputation: 190
Having had some new, to me, hardware and a bit of spare time recently I bencharked both an Atom N450 and an Atom N570 netbook with 32 and 64 bit stock kernels and my own tweaked kernels.

The differences in performance between stock and my own kernels were quite unastounding, typically an improvement of about 1%, not a compelling argument in my opinion for the extra workload involved in tracking and creating the plethora of .configs required to cover all use cases. Indeed, for stock desktop machines, it's moving me away from my habit of compiling bespoke kernels for each machine here.

Where I will continue is for some of my older machines, ones that don't come anywhere near the published minimum requirements for Slackware, where any memory that can be clawed back is a win. Those boxes should really go in the bin though, they lose on power, noise and space to any virtual machine or Arm SBC, as it is they live only as challenges

If you are playing with anything like that you'll be able to compile your own kernel and more and wouldn't be satisfied with a stock kernel anyway, so, if you want it, do it yourself

Last edited by OldHolborn; 03-30-2016 at 02:01 PM.
 
  


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
Should I compile a custom kernel for my laptop? padilhath Linux - Laptop and Netbook 2 08-23-2010 09:14 PM
Headers for custom kernels? miros84 Linux - Hardware 2 01-26-2010 06:28 AM
backward compatibility in kernels + custom kernels + more queries mmp_3341 Linux - Kernel 1 04-12-2007 07:28 AM
Modules & custom kernels adrianlarsson Linux - Newbie 2 01-17-2007 01:03 PM
custom kernels... Why so hard? mm0204 Linux - Newbie 2 06-08-2005 04:09 AM

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

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