All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Paul E. McKenney" <paulmck@linux.vnet.ibm.com>
To: rostedt@goodmis.org, peterz@infradead.org
Cc: linux-rt-users@vger.kernel.org
Subject: Load-balancing at migrate-enable time?
Date: Wed, 26 Oct 2011 11:30:36 -0700	[thread overview]
Message-ID: <20111026183036.GA3608@linux.vnet.ibm.com> (raw)

Hello!

So I am getting the second round of the model beaten into shape, but
have a question...

Assume the following state:

1.	Task 0 preempted in a migrate-disable region on CPU 0.

2.	Task 1 preempted, but not in a migrate-disable region,
	also on CPU 0.

3.	Task 2 running in a migrate-disable region also on CPU 0

Suppose that Task 2 enables migration.  Will it actually migrate
in order to allow Task 1 to run?  (My guess is "no", but...)

						Thanx, Paul

------------------------------------------------------------------------

PS.  We get to the above state by starting as follows:

1.	Task 0 blocked in a migrate-disable region on CPU 0.

2.	Task 1 running on CPU 0 without migration disabled.

3.	Task 2 blocked in a migrate-disable region also on CPU 0

Then Task 2 awakens, preempting Task 1.  (In the more-aggressive
model, this would trigger migration of Task 1, but I am trying to
match what the load balancer actually does.)


                 reply	other threads:[~2011-10-27  7:46 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20111026183036.GA3608@linux.vnet.ibm.com \
    --to=paulmck@linux.vnet.ibm.com \
    --cc=linux-rt-users@vger.kernel.org \
    --cc=peterz@infradead.org \
    --cc=rostedt@goodmis.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.