linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: [Fwd: Re: RFC for a new Scheduling policy/class in the Linux-kernel]
@ 2009-07-16 19:41 Raj Rajkumar
  0 siblings, 0 replies; 10+ messages in thread
From: Raj Rajkumar @ 2009-07-16 19:41 UTC (permalink / raw)
  To: LKML

James H. Anderson wrote:
 >
 > Hi Raj,
 >
 > On Thu, 16 Jul 2009, Raj Rajkumar wrote:
 >
 >> non-preemptive critical section.    In addition, we could allow 
mutexes to either pick basic priority inheritance (desirable for local 
mutexes?) or the priority ceiling version (desirable for global mutexes 
shared across processors/cores).
 >
 > This discussion when I entered it was about using global scheduling
 > in Linux (not partitioning), so that's what I thought the focus of the
 > discussion was.  What's the definition of a local mutex in that case?
 > And how do you use ceilings under global scheduling?
 >
 > Thanks.
 >
 > -Jim

Hi Jim:   I was not aware of the global scheduling constraint from the 
earlier discussions - thanks for the clarification.   Two thoughts on 
global partitioning:

   1. I presume you and others have pointed out the anomalies and low 
processor utilization that can result from global scheduling (the Dhall 
& Liu analysis being the most famous).   In addition, there are run-time 
performance implications as the caches keep getting cold as processes 
migrate.   The Linux notion of processor affinity needs to be put to 
good use!
   2. The definition of a priority ceiling (the priority of the highest 
priority task that can access a shared resource/mutex) holds independent 
of partitioning (static binding) or global scheduling (dynamic 
binding).   The following issue still remains.  If there are m 
processors, consider m low-priority tasks sharing m mutexes to execute 
VERY long critical sections.  These mutexes are only shared with m (or 
fewer) other lower priority tasks.   If these tasks each grab a mutex on 
each processor and execute these long critical sections, higher priority 
tasks waiting to execute will be starved/delayed.  With the ceiling 
notion in place, these critical sections will be executing at a lower 
ceiling priority and can therefore be preempted.

Combining the two comments above, I would suspect that in practice, 
tasks with tight timing constraints would be bound to specific 
processors/cores (they can be spread out that they do not compete with 
each other, and hence each/many/most can get very good response times on 
their processors) and my prior comments would apply with processor 
affinities in place.   Tasks with less tight timing constraints and 
perhaps targeting other functions with their own shared mutexes will use 
ceiling execution for critical sections, without affecting the response 
times of the tighter real-time tasks.

Best,

---
Raj




^ permalink raw reply	[flat|nested] 10+ messages in thread
* Re: [Fwd: Re: RFC for a new Scheduling policy/class in the Linux-kernel]
@ 2010-04-26 11:56 Ted Baker
  2010-04-26 18:29 ` Joerg Roedel
  2010-05-03 14:41 ` Peter Zijlstra
  0 siblings, 2 replies; 10+ messages in thread
From: Ted Baker @ 2010-04-26 11:56 UTC (permalink / raw)
  To: raj, jayhawk, a.p.zijlstra, raistlin, niehaus, henrik,
	linux-kernel, mingo, billh, linux-rt-users, fabio, anderson, tglx,
	dhaval.giani, cucinotta, lipari
  Cc: baker.tlh

I have not seen any more e-mail on this.  How is it going?  Is there any
chance of rolling in some corrections for the SCHED_SPORADIC treatment?  In
particular, could we have a DO_NOT_RUN priority, that is guaranteed to
prevent a task from running at all?

For more detail, see http://ww2.cs.fsu.edu/~stanovic/papers/rtas10.pdf .

Ted

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2010-05-03 16:47 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <4A5F7254.3020809@ece.cmu.edu>
2009-07-16 19:18 ` [Fwd: Re: RFC for a new Scheduling policy/class in the Linux-kernel] James H. Anderson
     [not found]   ` <4A5F806D.6040701@ece.cmu.edu>
2009-07-16 19:46     ` James H. Anderson
2009-07-16 20:47       ` Raj Rajkumar
2009-07-16 19:41 Raj Rajkumar
  -- strict thread matches above, loose matches on Subject: below --
2010-04-26 11:56 Ted Baker
2010-04-26 18:29 ` Joerg Roedel
2010-04-26 18:37   ` Doug Niehaus
2010-05-03 14:41 ` Peter Zijlstra
2010-05-03 15:54   ` Ted Baker
2010-05-03 16:13   ` Ted Baker

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).