Re: [PATCH 5/7] RT: Add support for low-priority wake-up to push_rt feature

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Steven Rostedt
Date: Monday, October 15, 2007 - 11:57 am

--
On Sat, 13 Oct 2007, Peter Zijlstra wrote:



Well if this fails to terminate, then we have a major bug.

Perhaps we can add something like this:

{
	int count = NR_CPUS * 2;

	while (push_rt_tasks(this_rq) && count--)
		;

	BUG_ON(!count);
}

Since we should do it really at most CPU times, and I added a CPU * 2 just
to be safe that we don't have a unrealistic point of moving tasks onto
other CPUS and have them finish before we finish this loop.

But really, I don't think we need to worry too much about that while loop
going too long.  It terminates when there's no more RT tasks to migrate
off to other CPUs that have lower priority tasks.

Hmm, the thing we need to be careful with here is that we need to change
the prio of the CPU, otherwise we can a task to a CPU even though a higher
one was already queued.

/me plays to fix that!

-- Steve
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 0/7] RT: RT-Overload/Sched enhancements (v2), Gregory Haskins, (Fri Oct 12, 5:15 pm)
[PATCH 1/7] RT: Add a per-cpu rt_overload indication, Gregory Haskins, (Fri Oct 12, 5:15 pm)
[PATCH 3/7] RT: Initialize the priority value, Gregory Haskins, (Fri Oct 12, 5:15 pm)
[PATCH 6/7] RT: Select tasks based on relative affinity, Gregory Haskins, (Fri Oct 12, 5:16 pm)
Re: [PATCH 1/7] RT: Add a per-cpu rt_overload indication, Steven Rostedt, (Mon Oct 15, 10:42 am)
Re: [PATCH 3/7] RT: Initialize the priority value, Steven Rostedt, (Mon Oct 15, 10:46 am)
Re: [PATCH 5/7] RT: Add support for low-priority wake-up t ..., Steven Rostedt, (Mon Oct 15, 11:57 am)
Re: [PATCH 6/7] RT: Select tasks based on relative affinity, Gregory Haskins, (Mon Oct 15, 1:08 pm)