public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Darren Hart <dvhltc@us.ibm.com>
To: Sitsofe Wheeler <sitsofe@yahoo.com>
Cc: Peter Zijlstra <peterz@infradead.org>,
	Ingo Molnar <mingo@elte.hu>,
	"lkml, " <linux-kernel@vger.kernel.org>
Subject: Re: Dynamically determine if kernel includes CFS Scheduler
Date: Fri, 06 Mar 2009 15:01:14 -0800	[thread overview]
Message-ID: <49B1AB3A.2050303@us.ibm.com> (raw)
In-Reply-To: <20090306225312.GA25593@silver.sucs.org>

Sitsofe Wheeler wrote:
> On Fri, Mar 06, 2009 at 12:44:30PM -0800, Darren Hart wrote:
>> I've received an internal request for a means to determine at run-time 
>> if the CFS scheduler is included in the running kernel.  Looking through 
>> the git commit log and the /proc/sys/kernel filesystem, I think I see 
>> two approaches:
> 
> Sounds dangerous (you are dependent on scheduler beahviour) but if it
> exists you could check /proc/config.gz (or the config file in the /boot
> directory)...
> 

So I am of course in agreement with both you and Peter.  In this case, 
the development team of an existing product is trying to move away from 
heavy use of sched_yield(), and the CFS scheduler provides some 
motivation for that as the behavior of sched_yield() changed (again). 
As we know, this behavior should not be depended upon, but lots of 
applications do it unfortunately.  So, in this case the development team 
would like to move to becoming less dependent on it, but unfortunately 
do not feel it is feasible to make the change unconditionally as it has 
the potential to destabilize the existing installations, etc.  They 
would like to be able to say, use this new approach using fewer 
sched_yield() calls on kernels with CFS.

I understand it isn't ideal, and I have of course provided that 
feedback, but I would like to provide them with all the information I can.

Thanks,

-- 
Darren Hart
IBM Linux Technology Center
Real-Time Linux Team

  reply	other threads:[~2009-03-06 23:01 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-06 20:44 Dynamically determine if kernel includes CFS Scheduler Darren Hart
2009-03-06 21:01 ` Peter Zijlstra
2009-03-06 22:53 ` Sitsofe Wheeler
2009-03-06 23:01   ` Darren Hart [this message]
2009-03-06 23:08     ` Sitsofe Wheeler
2009-03-07  0:17       ` Darren Hart

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=49B1AB3A.2050303@us.ibm.com \
    --to=dvhltc@us.ibm.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=peterz@infradead.org \
    --cc=sitsofe@yahoo.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox