Skip to content

sched/core: Optimize load balance of core scheduling

Cruz Zhao lkml 1 version Applied

Status from this message: The following commit has been merged into the sched/core branch of tip:

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 9 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/3sched/core: Fix the bug that task won't enqueue into core tree when update cookiekernel/sched/core_sched.c+1 -14 replies
2/3sched/core: Introduce nr_running percpu for each cookiekernel/sched/core.c kernel/sched/core_sched.c kernel/sched/sched.h+24 -83 replies
3/3sched/core: Make tasks with the same cookie pairs on SMT siblingskernel/sched/fair.c kernel/sched/sched.h+61 -82 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] sched/core: Optimize load balance of core scheduling

If the tasks with the same cookie are equal on SMT siblings, they can make pairs when pick next task, and forceidle can be avoided.

In order to achieve this goal, we have to count how many tasks with this cookie are in the runqueue. When counting we found a bug that task won't enqueue into core tree when we update cookie of an uncookie'd task, so we fix this bug first.

Cruz Zhao (3):
sched/core: Fix the bug that task won't enqueue into core tree when
update cookie
sched/core: Introduce nr_running percpu for each cookie sched/core: Make tasks with the same cookie pairs on SMT siblings

 kernel/sched/core.c       |  7 +++++
 kernel/sched/core_sched.c | 18 ++++++------
 kernel/sched/fair.c       |  4 +--
 kernel/sched/sched.h      | 74 +++++++++++++++++++++++++++++++++++++++++++----
 4 files changed, 86 insertions(+), 17 deletions(-)
Signature · 1 line
1.8.3.1