LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 11-02-2011, 09:53 PM   #1
trist007
Member
 
Registered: May 2008
Distribution: Slackware
Posts: 977

Rep: Reputation: 56
Kernel rebuild question...


I'm running the standard 13.37 i686 2.6.37.6-smp kernel. If I simply replace CONFIG_PREEMPT_VOLUNTARY=y with CONFIG_PREEMPT_NONE=y, do I need to do a "make modules" and them a "make modules_install" ? Or just a "make" and "make install" ?

I just did the following:
Code:
cd /usr/src/linux-2.6.37.6/
cp /boot/config .config
vi .config
replace CONFIG_PREEMTP_VOLUNTARY=y with CONFIG_PREEMPT_NONE=y
make
make install
Then moved over the config and bzimage to the /boot and setup lilo accordingly.

P.S. You guys have any other good kernel tweaks when rebuilding a kernel for a server. Basically just trying to make it energy efficient. Hardware is fairly new, bought last year, but running 1.8 single core Celeron.

Last edited by trist007; 11-02-2011 at 10:03 PM.
 
Old 11-02-2011, 11:37 PM   #2
ReaperX7
Senior Member
 
Registered: Jul 2011
Distribution: LFS-SVN, FreeBSD 10.0
Posts: 3,276
Blog Entries: 15

Rep: Reputation: 876Reputation: 876Reputation: 876Reputation: 876Reputation: 876Reputation: 876Reputation: 876
If you rebuild the kernel you may want to rebuild the modules.

As far as tweaks...

Look for the CPU and compile for the CPU closest a match to yours. (best one I know of off the top of my head).
 
Old 11-03-2011, 05:06 AM   #3
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 242Reputation: 242Reputation: 242
It is not good method to edit config with a text editor imho as make config/nconfig/menuconfig will solve features dependencies for you...

cd /usr/src/linux-2.6.37.6/
make mrproper
zcat /proc/config.gz > .config
make old config
make nconfig
...

Last edited by Cedrik; 11-03-2011 at 05:10 AM.
 
Old 11-03-2011, 08:11 AM   #4
hf2046
Member
 
Registered: Mar 2011
Distribution: Slack64
Posts: 109

Rep: Reputation: 20
Quote:
Originally Posted by trist007 View Post
I'm running the standard 13.37 i686 2.6.37.6-smp kernel. If I simply replace CONFIG_PREEMPT_VOLUNTARY=y with CONFIG_PREEMPT_NONE=y, do I need to do a "make modules" and them a "make modules_install"
...
P.S. You guys have any other good kernel tweaks when rebuilding a kernel for a server. Basically just trying to make it energy efficient. Hardware is fairly new, bought last year, but running 1.8 single core Celeron.
Is this Celeron powering a server? Otherwise it doesn't make too much sense to disable voluntary preemption...

For other tips on saving power within Linux, look here:

http://www.lesswatts.org
 
Old 11-03-2011, 09:12 PM   #5
trist007
Member
 
Registered: May 2008
Distribution: Slackware
Posts: 977

Original Poster
Rep: Reputation: 56
Yes it's a Celeron powering a server for personal use. Why wouldn't it make sense to disable voluntary preemption? Thanks for the useful link!!
 
Old 11-04-2011, 09:35 AM   #6
hf2046
Member
 
Registered: Mar 2011
Distribution: Slack64
Posts: 109

Rep: Reputation: 20
Quote:
Originally Posted by trist007 View Post
Yes it's a Celeron powering a server for personal use. Why wouldn't it make sense to disable voluntary preemption? Thanks for the useful link!!
It does make sense in your case. If you haven't thought of it already, switching to the 'deadline' io scheduler may give you some performance gains as well.
 
Old 11-04-2011, 07:24 PM   #7
trist007
Member
 
Registered: May 2008
Distribution: Slackware
Posts: 977

Original Poster
Rep: Reputation: 56
Would I make the change under /proc or is this a kernel compile option?
 
Old 11-04-2011, 07:41 PM   #8
hf2046
Member
 
Registered: Mar 2011
Distribution: Slack64
Posts: 109

Rep: Reputation: 20
You can switch it in the kernel (under 'Enable the Block Layer' -> 'IO Schedulers'). You can also check the scheduler that you're using by typing cat /sys/block/{hd_dev_name}/queue/scheduler or switch it on the fly by echoing the name of the scheduler and redirecting to the same path, e.g. echo 'noop' > /sys/block/{hd_dev_name}/queue/scheduler.
 
Old 11-04-2011, 08:23 PM   #9
trist007
Member
 
Registered: May 2008
Distribution: Slackware
Posts: 977

Original Poster
Rep: Reputation: 56
Fantastic thank you.
 
  


Reply

Tags
kernel 2.6.37.6, make nconfig, rebuild


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
[SOLVED] rebuild kernel trinityforce Solaris / OpenSolaris 3 10-12-2011 06:13 PM
Kernel rebuild guillermo Linux - Server 1 01-10-2008 10:02 AM
Kernel Rebuild Nikosis Linux - Newbie 4 05-01-2006 12:40 AM
Help (!?) with rebuild kernel 2.4.26 WoofDeF Debian 1 06-22-2005 09:11 AM
kernel rebuild Present Yoper 9 11-26-2004 06:08 PM


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