LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices

Reply
 
Search this Thread
Old 04-18-2011, 11:21 PM   #1
thund3rstruck
Member
 
Registered: Nov 2005
Location: East Coast, USA
Distribution: Fedora 18, Slackware64 13.37, Windows 7/8
Posts: 346

Rep: Reputation: 38
Kernel Recompilation/Optimization


I'd like to experiment with trimming out all the drivers, programs, and services on a few linux laptops I have laying around so as to optimize (speed them up) specifically for my hardware.

Can anyone recommend a howto or walk-through that demonstrates how to optimize and recompile a kernel (./configure options, etc). I searched around for a few days but wasn't able to find anything with any depth. I understand that LFS is a possibility but I'd prefer to work from an existing system.

Does anyone here have experience recompiling kernels? Can doing this vastly improve system performance compared to a default distro installation?

Thanks!
 
Old 04-19-2011, 03:03 AM   #2
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 327Reputation: 327Reputation: 327Reputation: 327
Most recent distros use modular kernels. That means that only the parts needed to support the current hardware and services are loaded. The only savings you would get with a custom kernel is a few megabytes of disk space. On the downside, you would have to recompile a kernel for every piece of hardware you added. In short, don't bother trying to optimize the kernel.

You can get some significant savings by shutting down services you don't need. In a root terminal on Fedora, for example, you can run:

Code:
chkconfig --list | grep 5:on
That will get you a list on the running services. You can disable the ones you don't need with:

Code:
chkconfig <service name> off
service <service name> stop
For information on the service you can usually use 'man <service name>' or 'rpm -qi <service name>' to get details on the service.
 
Old 04-19-2011, 10:48 AM   #3
thund3rstruck
Member
 
Registered: Nov 2005
Location: East Coast, USA
Distribution: Fedora 18, Slackware64 13.37, Windows 7/8
Posts: 346

Original Poster
Rep: Reputation: 38
Quote:
Most recent distros use modular kernels. That means that only the parts needed to support the current hardware and services are loaded. The only savings you would get with a custom kernel is a few megabytes of disk space.
Gotcha. Clearly the Linux space has improved greatly since 1998 (the last time I dug this deep into Linux OSes). I'll instead focus on halting un-necessary services and installing the most responsive window managers (wmaker, flux, etc).

Thanks!
 
  


Reply

Tags
compile, compilekernel, kernel


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 recompilation for transparent proxy produces kernel soft lockup gael Linux - Kernel 1 09-17-2009 09:48 AM
Help please .. kernel recompilation .. StarBV Slackware 4 03-05-2007 11:34 PM
kernel recompilation shrishailnk Linux - Networking 2 04-30-2006 10:05 PM
Get agpgart as a loadalbe kernel module, without kernel recompilation? TruongAn Linux - Software 3 03-28-2006 10:44 AM
Kernel Recompilation Thomas_Delrue Linux - General 1 08-30-2001 04:11 PM


All times are GMT -5. The time now is 04:59 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration