LinuxQuestions.org
Visit Jeremy's Blog.
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-31-2009, 04:15 AM   #1
amiga32
Member
 
Registered: Mar 2009
Location: Illinois
Distribution: slackware bro
Posts: 161

Rep: Reputation: 38
generic kernel config question


hey guys,

I am looking to safely trim more options out of the 2.6.27-generic-smp kernel. I use Slackware mainly for desktop/multimedia purposes on very modern hardware, so I am sure there are some legacy and server slanted type options that go into the kernel of stuff that I will never need.

The only changes I make are:

Under processors and features:
-Change kernel to preemptive
-Set timer frequency to 1000Hz
-Compile for Core 2 arch

Under PCI/bus options:
-Enable PCI_MSI

Under filesystem:
-Compile Ext3 into the kernel

Any advice on other stuff I can look into?

Thanks
 
Old 03-31-2009, 05:20 AM   #2
Didier Spaier
Senior Member
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slackware{,64}-{14.1,current} on a Lenovo Thinkpad T61 6457-4XG
Posts: 4,413

Rep: Reputation: 1123Reputation: 1123Reputation: 1123Reputation: 1123Reputation: 1123Reputation: 1123Reputation: 1123Reputation: 1123Reputation: 1123
See this page in Alien BOB's wiki.

I would enable "paravirtualization guest support" if it's not yet (I do not remember). There are a lot of modules you can disable under "Device drivers" but this will take you a lot of time and won't get things any faster. Would you do that though be careful not to remove anything you need. At least check lspci -k and also lsmod to make sure.

Last edited by Didier Spaier; 03-31-2009 at 05:22 AM.
 
Old 03-31-2009, 05:43 AM   #3
Ilgar
Member
 
Registered: Jan 2005
Location: Istanbul, Turkey
Distribution: Slackware 14.1, Slackware64 14.1
Posts: 929

Rep: Reputation: 96
Removing unneeded modules takes a lot of time but if you frequently compile kernels, it will make future compilations faster, so I'd say it would be worth the effort. It's a good idea to check lsmod output to see what modules are needed. Of course, you should know your hardware and leave the relevant kernel options enabled.

Some of the things that I change (in addition to what you listed):
- Drop unneeded modules and hardware support (like I have no AGP slots on my laptop motherboard, no floppies, tape drivers, etc.).
- Enable dynamic ticks
- I compile (some of) the modules always needed into the kernel (ext3, sata, cryptography etc).
- I have a single core CPU so I disable the SMP option.
- Make the ondemand governor the default
- Disable some debugging feautres (usually under the General and Small Systems sections)
 
Old 03-31-2009, 09:54 AM   #4
Didier Spaier
Senior Member
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slackware{,64}-{14.1,current} on a Lenovo Thinkpad T61 6457-4XG
Posts: 4,413

Rep: Reputation: 1123Reputation: 1123Reputation: 1123Reputation: 1123Reputation: 1123Reputation: 1123Reputation: 1123Reputation: 1123Reputation: 1123
IMHO disable SMP option is useless. I have a single core CPU and I noticed that the kernel is smart enough to check that and act accordingly. An extract of dmesg's output follows (customized 2.6.29-smp but I get similar output with Slackware's -smp kernels):
Code:
[    0.004295] Intel machine check architecture supported.
[    0.004308] Intel machine check reporting enabled on CPU#0.
[    0.004328] Checking 'hlt' instruction... OK.
[    0.020377] SMP alternatives: switching to UP code
Anyway _it's_your_choice_ but if you choose to do so read the warning in CHANGES_AND_HINTS.TXT

PS Time is in seconds. You can see that the kernel needs less than 2/100 second to think about that

Last edited by Didier Spaier; 03-31-2009 at 10:02 AM.
 
Old 03-31-2009, 10:54 AM   #5
Ilgar
Member
 
Registered: Jan 2005
Location: Istanbul, Turkey
Distribution: Slackware 14.1, Slackware64 14.1
Posts: 929

Rep: Reputation: 96
I'm aware of that. The kernel detects the number of cores at runtime and adjusts itself. Still, compiling for single core would save me from some if() statements, so why not do it, if it doesn't break anything?
 
Old 03-31-2009, 11:04 AM   #6
Didier Spaier
Senior Member
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slackware{,64}-{14.1,current} on a Lenovo Thinkpad T61 6457-4XG
Posts: 4,413

Rep: Reputation: 1123Reputation: 1123Reputation: 1123Reputation: 1123Reputation: 1123Reputation: 1123Reputation: 1123Reputation: 1123Reputation: 1123
I agree with you Ilgar, why not.

My statement was more intended for newbies happening to read this thread.
 
Old 03-31-2009, 11:28 AM   #7
Ilgar
Member
 
Registered: Jan 2005
Location: Istanbul, Turkey
Distribution: Slackware 14.1, Slackware64 14.1
Posts: 929

Rep: Reputation: 96
Let us add that Slackware has a non-smp kernel headers package (the default one is smp). It should be better to use that one if you go single core.
 
  


Reply


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 2.6.22 + generic config = PANIC dugan Slackware 4 08-12-2007 12:00 PM
kernel config question javito Slackware 4 03-18-2005 01:51 PM
A question about generic-kernel in /testing mardanian Slackware 7 07-10-2004 04:13 AM
generic parser to read/write linux config files amitchandel Linux - Software 1 06-14-2004 04:00 PM
Kernel config question JoeLinux Linux - General 1 04-09-2002 10:31 PM


All times are GMT -5. The time now is 04:09 AM.

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