how to check kernel is configured with preemption or not

Greg Freemyer greg.freemyer at gmail.com
Sun Oct 23 23:20:03 EDT 2011


On Sun, Oct 23, 2011 at 1:34 PM, sri <bskmohan at gmail.com> wrote:
> No, uname did not show anything.
> Is there any way to get the kernel preemption mode, programatically?
>
> Thanks,
> --Sri
>
> On Fri, Oct 21, 2011 at 6:41 PM, Daniel Baluta <daniel.baluta at gmail.com>
> wrote:
>>
>> On Fri, Oct 21, 2011 at 2:28 PM, sri <bskmohan at gmail.com> wrote:
>> > Hi,
>> >
>> > Am using kernel 2.6.18-195(centos 5.5).
>> > My kernel configs have CONFIG_PREEMPT_NONE=7 and
>> > "CONFIG_PREEMPT_VOLUNTERY
>> > is not set".
>> > How to check that preemption is really in place?
>> > Is there any way to check my kernel is configured with what preemption
>> > levels?
>>
>> Hmm, uname -a?
I'm sure its in /sys somewhere.

Remember /sys is part of the official ABI.

Also, you see what your config look like for sure by looking at
/proc/config.gz  (that file is virtual, but shows the contents of how
your config file was at compile time for the running kernel.

Greg



More information about the Kernelnewbies mailing list