Skip to content

sched: Queue task on wakelist in the same llc if the wakee cpu is idle

Tianchen Ding lkml 5 versions – 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 · linked by author and title

  1. v4 Latest posting 2/22 patches 0 repliesApplied
  2. v4 posting 1/22 patches 1 replySuperseded
  3. v32 patches 3 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v21 patch9 repliesSuperseded
v1 RFC1 patch4 repliesSuperseded

Changes in v4 from the cover letter

Add benchmark results about the 1st patch.
Modify some comments.

Patches in v4 posting 2/2 Applied

#Subject and filesSizeRepliesApplied
1/2sched: Fix the check of nr_running at queue wakelistkernel/sched/core.c+5 -10 replies
2/2sched: Remove the limitation of WF_ON_CPU on wakelist if wakee cpu is idlekernel/sched/core.c kernel/sched/sched.h+14 -130 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchValentin Schneider
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [PATCH RESEND v4 0/2] sched: Queue task on wakelist in the same llc if the wakee cpu is idle

Wakelist can help avoid cache bouncing and offload the overhead of waker cpu. So far, using wakelist within the same llc only happens on WF_ON_CPU, and this limitation could be removed to further improve wakeup performance. The result of Unixbench Pipe-based Context Switching can be improved up to ~10%.

The 1st patch introduces a more "correct" way to check whether the wakee cpu is soon-to-be-idle.

The 2nd patch allows using wakelist in any case when the wakee cpu is idle or soon-to-be-idle.

v4:
Add benchmark results about the 1st patch.
Modify some comments.

v3: https://lore.kernel.org/all/[email protected]/
Add a patch to fix the check of nr_running.
After that, we can remove WF_ON_CPU to achieve the same purpose. Thank Valentin and Mel.

v2: https://lore.kernel.org/all/[email protected]/
Modify commit log to describe key point in detail.
Add more benchmark results on more archs.

v1: https://lore.kernel.org/all/[email protected]/

Tianchen Ding (2):
sched: Fix the check of nr_running at queue wakelist
sched: Remove the limitation of WF_ON_CPU on wakelist if wakee cpu is
idle

 kernel/sched/core.c  | 30 ++++++++++++++++++------------
 kernel/sched/sched.h |  1 -
 2 files changed, 18 insertions(+), 13 deletions(-)
Signature · 1 line
2.27.0