From: greg@kroah.com (Greg KH)
To: kernelnewbies@lists.kernelnewbies.org
Subject: how to check kernel is configured with preemption or not
Date: Mon, 24 Oct 2011 06:38:09 +0200 [thread overview]
Message-ID: <20111024043809.GD3951@kroah.com> (raw)
In-Reply-To: <CAGpXXZK_tJVZdxu=B65uAy225Y9cCS1x8yqhJOeK7OEQEfenxA@mail.gmail.com>
On Sun, Oct 23, 2011 at 11:20:03PM -0400, Greg Freemyer wrote:
> On Sun, Oct 23, 2011 at 1:34 PM, sri <bskmohan@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@gmail.com>
> > wrote:
> >>
> >> On Fri, Oct 21, 2011 at 2:28 PM, sri <bskmohan@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.
I do not think so.
> Remember /sys is part of the official ABI.
As documented in Documentation/ABI/, so perhaps you can read there.
> 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.
Not all distros enable this :(
I think the question needs to really be stated, why, from userspace,
does it matter if preempt is enabled or not? This should never be
something that userspace cares about at all.
greg k-h
next prev parent reply other threads:[~2011-10-24 4:38 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-21 11:28 how to check kernel is configured with preemption or not sri
2011-10-21 13:11 ` Daniel Baluta
2011-10-23 17:34 ` sri
2011-10-24 3:20 ` Greg Freemyer
2011-10-24 4:38 ` Greg KH [this message]
2011-10-24 19:04 ` Sri Ram Vemulpali
2011-10-26 18:22 ` sri
2011-10-27 1:44 ` Mulyadi Santosa
2011-10-27 4:52 ` Greg KH
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20111024043809.GD3951@kroah.com \
--to=greg@kroah.com \
--cc=kernelnewbies@lists.kernelnewbies.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.