Skip to content

Fixes for cache aware scheduling

Tim Chen stable 1 version Applied

Status from this message: Queued for 7.2, thanks. Patches 4 and 7 were already queued.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 1 replyApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/7sched/fair: Avoid creating misfits during cache-aware balancingkernel/sched/fair.c+45 -50 replies
2/7sched/cache: Keep nr_pref_llc_running in the runnable domain, to fix LLC mis-scheduling bugkernel/sched/fair.c+58 -50 replies
3/7sched/cache: Honor migrate_llc_task semantics in active load balance, to fix LLC mis-scheduling bugkernel/sched/fair.c+51 -60 replies
4/7sched/cache: Decouple sched_cache_group from mm to fix UAFinclude/linux/mm_types.h include/linux/sched.h kernel/exit.c +1 more+144 -610 replies
5/7sched/cache: Introduce task_struct->sched_cache_grp to fix UAFfs/exec.c include/linux/sched.h kernel/exit.c +2 more+154 -920 replies
6/7sched/cache: Skip kernel threads for cache aware scheduling to rubustify the codekernel/sched/fair.c+8 -20 replies
7/7sched/cache: Refresh LLC capacity across CPU hotplug, to fix capacity underestimation bugdrivers/base/cacheinfo.c include/linux/sched/topology.h kernel/sched/topology.c+21 -160 replies

Reviews trailers per patch

4 of 7 patches have a Reviewed-by or Acked-by.

PatchRicardo NeriChen YuTim ChenKayra CizmeciK Prateek Nayak
1/7R-b T-b R-b
2/7R-b
3/7R-b R-b
4/7
5/7
6/7
7/7R-b T-b R-b R-b T-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 5 reviewers.

Read the v1 thread

Cover letter [PATCH 7.2.y 0/7] Fixes for cache aware scheduling

Greg,

Here is a series of patches backported to v7.2.8 (commit 9a66fdc0d7fd) to fix cache aware scheduling.
The original commit ids in upstream are listed as below.
Upstream commit ids are also listed at the beginning of commit log of each patch:

commit f0d243a96f26 ("sched/fair: Avoid creating misfits during cache-aware balancing")
commit 0d6526f82c3c ("sched/cache: Keep nr_pref_llc_running in the runnable domain, to fix LLC mis-scheduling bug") commit d6013e2465d9 ("sched/cache: Honor migrate_llc_task semantics in active load balance, to fix LLC mis-scheduling bug") commit 28f9c0e0a0b9 ("sched/cache: Decouple sched_cache_group from mm to fix UAF")
commit b636fef85bda ("sched/cache: Introduce task_struct->sched_cache_grp to fix UAF")
commit 65efcccddc83 ("sched/cache: Skip kernel threads for cache aware scheduling to rubustify the code") commit 3cb0243767fd ("sched/cache: Refresh LLC capacity across CPU hotplug, to fix capacity underestimation bug")

Thanks.

Tim

Chen Yu (1):
sched/cache: Skip kernel threads for cache aware scheduling to
rubustify the code

Davi Chaves Azevedo (1):
sched/cache: Refresh LLC capacity across CPU hotplug, to fix capacity
underestimation bug

Lu Wang (1):
sched/cache: Honor migrate_llc_task semantics in active load balance,
to fix LLC mis-scheduling bug

Tim Chen (4):
sched/fair: Avoid creating misfits during cache-aware balancing sched/cache: Keep nr_pref_llc_running in the runnable domain, to fix
LLC mis-scheduling bug
sched/cache: Decouple sched_cache_group from mm to fix UAF sched/cache: Introduce task_struct->sched_cache_grp to fix UAF

 drivers/base/cacheinfo.c       |  11 +-
 fs/exec.c                      |   1 +
 include/linux/mm_types.h       |  15 +-
 include/linux/sched.h          |  20 +-
 include/linux/sched/topology.h |   4 +-
 kernel/exit.c                  |  28 +-
 kernel/fork.c                  |   2 +
 kernel/sched/fair.c            | 467 +++++++++++++++++++++++++++------
 kernel/sched/topology.c        |  22 +-
 9 files changed, 432 insertions(+), 138 deletions(-)
Signature · 1 line
2.32.0