login
Header Space

 
 

Re: [RFC PATCH RT] push waiting rt tasks to cpus with lower prios.

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Steven Rostedt <rostedt@...>
Cc: Gregory Haskins <ghaskins@...>, Peter Zijlstra <peterz@...>, Ingo Molnar <mingo@...>, linux-rt-users <linux-rt-users@...>, <kravetz@...>, LKML <linux-kernel@...>, <pmorreale@...>, <sdietrich@...>
Date: Tuesday, October 9, 2007 - 10:12 pm

On 10/9/07, Steven Rostedt <rostedt@goodmis.org> wrote:

It can be extended: Search CPU that is running the lowest priority or
the same priority as the highest RT task (which is tried to be
pushed).
 If any CPU is found to be running lower priority task (lowest among
the CPU) as above push the task to the CPU.

Else if  no CPU was found with lower priority, find CPU that runs a
task of same priority  .... In this there are two cases

case 1. if the currently running task on this CPU is higher priority
than the task running (ie active task priority) , then RT task can be
pushed to the CPU (where it competes with the similar priority task in
round robin fashion ).

case 2: if the  priority of the task that is running and the task that
is trying to be pushed are same (from the same queue ..
queue->next->next....) then the balancing has to be done on the number
of task that are running on these CPUs. making them run equal (or
almost , considering the ping-pong effect ) number of tasks.



-- 
Thanks
   Giri
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 0/5] RT: scheduler fixes and rt_overload enhancements, Gregory Haskins, (Tue Oct 9, 10:25 am)
Re: [RFC PATCH RT] push waiting rt tasks to cpus with lower ..., Girish kathalagiri, (Tue Oct 9, 10:12 pm)
[PATCH 4/5] RT: Add a per-cpu rt_overload indication, Gregory Haskins, (Tue Oct 9, 10:26 am)
[PATCH 3/5] RT - fix mistargeted RESCHED_IPI, Gregory Haskins, (Tue Oct 9, 10:25 am)
[PATCH 2/5] RT - fix reschedule IPI, Gregory Haskins, (Tue Oct 9, 10:25 am)
[PATCH 1/5] RT - fix for scheduling issue, Gregory Haskins, (Tue Oct 9, 10:25 am)
speck-geostationary