LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices

Reply
 
LinkBack Search this Thread
Old 01-22-2012, 02:51 PM   #1
christopherdtaylor1994
LQ Newbie
 
Registered: Jan 2012
Posts: 3

Rep: Reputation: Disabled
Question Requirement for kernel with CONFIG_PREEMPT=N - need some suggestions, tips


I'm building a server for a specific application that runs on Fedora 14. However the application needs the kernel to be built with CONFIG_PREEMPT=N.

The current default Fedora 14 kernel for the system is:
2.6.35.14-106.fc14.i686.PAE

I have tried 'Building a Custom Kernel' at the Fedora site [B]*BUT*[B] I really screwed something up. I don't mind trying again, but I had some questions first.

The instructions mention
Quote:
If you only want to make a small number of configuration changes, you should simply set the options as desired in the config-local file. This will be sourced and override the remaining config-* files and avoids a lot of unnecessary work. You can skip the steps below if you use config-local
So questions:
1.) How do you use config-local? Is there a web guide available somewhere?
2.) Is there a site to download prebuilt kernels?
3.) Any other tips/suggestions for changing the CONFIG_PREEMPT configuration setting?

Thanks!
 
Old 01-22-2012, 03:34 PM   #2
Ser Olmy
Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 294

Rep: Reputation: Disabled
Just for fun, I followed the link and read the "Building a Custom Kernel" guide, and... I'll just say I'm glad my first attempt at building a kernel didn't involve hats of any kind or colour.

If your current kernel has all you need except the preemption setting, why not base your new kernel on the config in /proc/config.gz? (Assuming Red Hat hasn't disabled that feature, that is.)

Once you've downloaded the kernel source and applied whatever patches you need to apply for Fedora, you could just run "zcat /proc/config.gz > .config" in the kernel directory. Then run "make oldconfig" followed by "make menuconfig", and disable preemption using the nice, simple, curses-based interface provided by the kernel developers.

That should get you the configuration you need.
 
Old 01-22-2012, 05:04 PM   #3
christopherdtaylor1994
LQ Newbie
 
Registered: Jan 2012
Posts: 3

Original Poster
Rep: Reputation: Disabled
I may try that. Anyone else?
 
Old 01-22-2012, 08:57 PM   #4
christopherdtaylor1994
LQ Newbie
 
Registered: Jan 2012
Posts: 3

Original Poster
Rep: Reputation: Disabled
Running "make localmodconfig" gave me what I wanted. This prompts me to answer NEW questions between my existing config and the available config parameters then writes it out to .config.

Then I did "make menuconfig" to change the CONFIG_PREEMPT setting.

We'll see if the final kernel works and if the config setting is now set to N.

Thanks

Last edited by christopherdtaylor1994; 01-22-2012 at 09:06 PM.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
I am planning to take RHCE Version5 Exam.Any suggestions or Tips. ymr_raghu Linux - Newbie 2 08-21-2008 04:57 AM
looking for tips, suggestions& ideas on RAID with RHEL musicbrio Linux - Hardware 1 09-13-2007 02:33 PM
Need some install Tips and Suggestions gajaykrishnan *BSD 1 02-27-2007 04:16 AM
Any suggestions/tips for dual booting? fzx1 Linux - Newbie 4 04-07-2004 11:34 AM
Suggestions for power saving tips aside from ACPI and clock scaling... adamis Linux - Laptop and Netbook 1 11-13-2003 11:08 PM


All times are GMT -5. The time now is 12:44 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
Open Source Consulting | Domain Registration