LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   Kernel rebuild question... (http://www.linuxquestions.org/questions/slackware-14/kernel-rebuild-question-911579/)

trist007 11-02-2011 09:53 PM

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.

ReaperX7 11-02-2011 11:37 PM

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).

Cedrik 11-03-2011 05:06 AM

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
...

hf2046 11-03-2011 08:11 AM

Quote:

Originally Posted by trist007 (Post 4514567)
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

trist007 11-03-2011 09:12 PM

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!!

hf2046 11-04-2011 09:35 AM

Quote:

Originally Posted by trist007 (Post 4515373)
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.

trist007 11-04-2011 07:24 PM

Would I make the change under /proc or is this a kernel compile option?

hf2046 11-04-2011 07:41 PM

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.

trist007 11-04-2011 08:23 PM

Fantastic thank you.


All times are GMT -5. The time now is 11:51 AM.