Messages in this thread | | | From | Cruz Zhao <> | Subject | [PATCH 0/3] sched/core: Optimize load balance of core scheduling | Date | Tue, 28 Jun 2022 15:57:22 +0800 |
| |
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(-)
-- 1.8.3.1
| |