Re: [RFC][PATCH 1/7] sched: Replace post_schedule with a balance callback list
From: Peter Zijlstra
Date: Fri Jun 05 2015 - 03:19:48 EST
On Fri, Jun 05, 2015 at 03:13:38PM +0800, pang.xunlei@xxxxxxxxxx wrote:
> > It will make sched_setscheduler() etc.. a little more expensive, but
> > that doesn't matter, those are not critical things at all.
>
> Another side effect it may have is that it will introduce some latency,
> because we have to wait for next schedule() point to do the balancing.
> prio_changed_rt()->pull_rt_task() is not rare cases when using PI futex.
See patch 3, that adds the balance_callback() to sched_setscheduler()
and rt_mutex_setprio() to avoid just that.
--
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/