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

From: Peter Zijlstra
Date: Tue May 31 2016 - 05:23:24 EST


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 flag, but SD_WAKE_AFFINE is.

No, SD_BALANCE_{FORK,EXEC,WAKE} are very much sched_domain flags.

They indicate how wide we should look to place tasks on these events.