Re: [RFC PATCH 2/2] sched: Remove SD_WAKE_AFFINE flag and replace it with SD_BALANCE_WAKE

2016-05-31 Thread Yuyang Du
On Tue, May 31, 2016 at 11:23:14AM +0200, Peter Zijlstra wrote: > On Tue, May 31, 2016 at 09:11:38AM +0800, Yuyang Du wrote: > > SD_BALANCE_{FORK|EXEC|WAKE} flags are for select_task_rq() to select a > > CPU to run a new task or a waking task. SD_WAKE_AFFINE is a flag to > > try selecting the waker

Re: [RFC PATCH 2/2] sched: Remove SD_WAKE_AFFINE flag and replace it with SD_BALANCE_WAKE

2016-05-31 Thread Peter Zijlstra
On Tue, May 31, 2016 at 09:11:38AM +0800, Yuyang Du wrote: > SD_BALANCE_{FORK|EXEC|WAKE} flags are for select_task_rq() to select a > CPU to run a new task or a waking task. SD_WAKE_AFFINE is a flag to > try selecting the waker CPU to run the waking task. > > SD_BALANCE_WAKE is not a sched_domain

[RFC PATCH 2/2] sched: Remove SD_WAKE_AFFINE flag and replace it with SD_BALANCE_WAKE

2016-05-31 Thread Yuyang Du
SD_BALANCE_{FORK|EXEC|WAKE} flags are for select_task_rq() to select a CPU to run a new task or a waking task. SD_WAKE_AFFINE is a flag to try selecting the waker CPU to run the waking task. SD_BALANCE_WAKE is not a sched_domain flag, but SD_WAKE_AFFINE is. Conceptually, SD_BALANCE_WAKE should be