Skip to content

RFC Reduce runqueue lock contention -v2

Peter Zijlstra lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest5 patches 38 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5sched: Always provide p->oncpuinclude/linux/sched.h kernel/sched.c+24 -141 reply
2/5mutex: Use p->oncpu for the adaptive spininclude/linux/mutex.h include/linux/sched.h kernel/mutex-debug.c +4 more+20 -443 replies
3/5sched: Change the ttwu success detailsinclude/trace/events/sched.h kernel/sched.c kernel/trace/trace_sched_switch.c +1 more+18 -236 replies
4/5sched: Clean up ttwu statskernel/sched.c+31 -351 reply
5/5sched: Reduce ttwu rq->lock contentionarch/x86/kernel/smp.c include/linux/sched.h kernel/sched.c +5 more+190 -7621 replies

Reviews trailers per patch

3 of 5 patches have a Reviewed-by or Acked-by.

PatchFrank Rowand
1/5A-b
2/5
3/5A-b
4/5A-b
5/5

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

Read the v1 thread

Cover letter [RFC][PATCH 0/5] Reduce runqueue lock contention -v2

Hi, here a new posting of my scary patch(es) ;-)

These actually survive a sembench run (and everything else I threw at it). The discussion between Mike and Frank over the task_running() check made me realize what was wrong with the previous one.

As it turns out, what was needed (p->oncpu) was something Thomas wanted me to do for an entirely different reason (see patch #2).

Frank's patch, while encouraging me to poke at it again, has a number of very fundamental problems with it, the most serious one being that it completely wrecks the wake-up load-balancing.

I'll try and come up with a way to unwreck the 32bit select_task_rq_fair() problem, but for now inspiration in that departments seems lacking, yet I still wanted to share these patches so that others can have a go at them.

If all you care about is the numbers, skip to patch #5.