public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Ingo Molnar <mingo@elte.hu>
To: Steven Rostedt <rostedt@goodmis.org>
Cc: William Weston <weston@sysex.net>,
	linux-kernel@vger.kernel.org, dwalker@mvista.com
Subject: Re: BUGs in 2.6.12-rc2-RT-V0.7.45-01
Date: Mon, 23 May 2005 09:39:32 +0200	[thread overview]
Message-ID: <20050523073932.GA4717@elte.hu> (raw)
In-Reply-To: <1115839742.7763.14.camel@localhost.localdomain>


* Steven Rostedt <rostedt@goodmis.org> wrote:

> Hi Ingo,
> 
> I've seen lots of complaining about the yield BUG produced by 
> kstopmachine, and since I'm now starting to test this on an SMP 
> machine, I'm seeing it too.  So I've looked further into this, and 
> here's what I've found.
> 
> The kstopmachine creates one thread per CPU to run on each CPU.  It 
> sets this thread to the lowest RT priority and then spins on yield, 
> each thread expects to be on its designated CPU and spin until all 
> threads check in (all threads are on their expected CPU).  The yield 
> is only to allow one of the other threads (of same priority) to 
> migrate to their expected CPU if it started on the wrong CPU.  So the 
> use of yield here is actually correct!
> 
> So for this special case, I've included a patch here (attached) to 
> allow for a call of yield when it is actually OK for a RT task to call 
> yield. It's called rt_yield.  Take a look and see what you think.  I 
> patched this against 45-01 since that's what I'm currently working 
> with.

agreed - i've applied your patch and i've reworked it to be 
yield()/__yield(). (making it more of an internal interface - this is a 
valid but still quite unrobust use of scheduling features.)

	Ingo

      reply	other threads:[~2005-05-23  7:39 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-12 22:14 BUGs in 2.6.12-rc2-RT-V0.7.45-01 William Weston
2005-04-12 23:09 ` Ingo Molnar
2005-04-12 23:21   ` William Weston
2005-04-12 23:26     ` Ingo Molnar
2005-04-14 21:06   ` William Weston
2005-04-15  8:01     ` Ingo Molnar
2005-04-16  1:24       ` William Weston
2005-05-11 19:29         ` Steven Rostedt
2005-05-23  7:39           ` Ingo Molnar [this message]

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=20050523073932.GA4717@elte.hu \
    --to=mingo@elte.hu \
    --cc=dwalker@mvista.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rostedt@goodmis.org \
    --cc=weston@sysex.net \
    /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