On Fri, Jun 05, 2015 at 03:13:38PM +0800, pang.xun...@zte.com.cn 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 majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/