From: "Christopher Friesen" <cfriesen@nortel.com>
To: Darren Hart <darren@dvhart.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: help? converting to single global prio_array in scheduler, ran into snag
Date: Thu, 06 Apr 2006 10:08:32 -0600 [thread overview]
Message-ID: <44353D00.3070802@nortel.com> (raw)
In-Reply-To: <200604052034.02962.darren@dvhart.com>
Darren Hart wrote:
> First thing that comes to mind, did you look for every place that accesses the
> arrays via the rq->lock and make it use the new global array_lock?
Yep. All places where any of "arrays[i]", "expired", or "active" were
accessed are now protected (as far as I can tell) by the new lock.
I'm just wondering if there are any "gotchas" that jump out at people
based on what I'm trying to do, or if it should just be a matter of
changing the data structures and getting the locking right. It's only
when I try to run with multiple cpus that it breaks, so either there's
something wrong in the initialization of the second cpu or else it's a
locking issue.
When I let it use both cpus I get partway through kernel initialization,
then it hangs. Adding instrumentation lets me get further in, which
makes me suspect some kind of race condition.
> It would
> help if you would post your initial patch for review (designating it as RFC,
> not intended for inclusion).
Unfortunately my patch is against a heavily modified version of the
kernel, so I'm not sure how useful it would be. I suppose I could redo
it against a vanilla version of 2.6.10, but that would take some time.
If you think it would be useful I could certainly do it.
Chris
prev parent reply other threads:[~2006-04-06 16:08 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-04-05 16:54 help? converting to single global prio_array in scheduler, ran into snag Christopher Friesen
2006-04-05 17:23 ` Christopher Friesen
2006-04-06 3:34 ` Darren Hart
2006-04-06 16:08 ` Christopher Friesen [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=44353D00.3070802@nortel.com \
--to=cfriesen@nortel.com \
--cc=darren@dvhart.com \
--cc=linux-kernel@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox