Skip to contentSkip to conversation

Load-balancing at migrate-enable time?

DISCUSSION Paul E. McKenney 1 participant 1 message Oct 27, 2011

lore
Share & tools
lore
#0 lore 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.)