Re: [RFC] sched: check RT runqueue overloaded in tick timer

From: Hillf Danton
Date: Thu Jun 30 2011 - 09:13:24 EST


On Thu, Jun 30, 2011 at 8:55 PM, Steven Rostedt <rostedt@xxxxxxxxxxx> wrote:
> On Thu, 2011-06-30 at 20:47 +0800, Hillf Danton wrote:
>> Hi Steven
>>
>> When tick timer runs, runqueue overload is checked. If overloaded and other
>> CPUs available at the moment, reschedule is fired to allow push logic to move
>> the pushable tasks somewhere else.
>
> Why?
>
> This would be a waste of overhead. We check when a task is queued and
> dequeue, and when a cpu lowers its priority (for a pull). There's no
> need to randomly check if we need to push or pull based on timers.
> That's just going to slow things down.
>
Got it.

If puller is inactive, there is no CPU available for the pushable.

Thanks
Hillf
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/