sched: Reduce runqueue lock contention -v6
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest21 patches 57 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/21 | sched: Provide scheduler_ipi() callback in response to smp_send_reschedule()arch/ arch/ arch/ +23 more | +62 | 3 replies | |
| 2/21 | sched: Always provide p->on_cpuinclude/ kernel/ | +30 | 1 reply | |
| 3/21 | mutex: Use p->on_cpu for the adaptive spininclude/ include/ kernel/ +4 more | +39 | 1 reply | |
| 4/21 | sched: Change the ttwu success detailskernel/ | +8 | 6 replies | |
| 5/21 | sched: Clean up ttwu statskernel/ | +34 | 1 reply | |
| 6/21 | sched: Provide p->on_rqinclude/ kernel/ kernel/ +2 more | +30 | 1 reply | |
| 7/21 | sched: Serialize p->cpus_allowed and ttwu() using p->pi_lockkernel/ | +16 | 1 reply | |
| 8/21 | sched: Drop the rq argument to sched_class::select_task_rq()include/ kernel/ kernel/ +3 more | +41 | 1 reply | |
| 9/21 | sched: Remove rq argument to sched_class::task_waking()include/ kernel/ kernel/ | +11 | 1 reply | |
| 10/21 | sched: Deal with non-atomic min_vruntime reads on 32bitskernel/ kernel/ | +20 | 1 reply | |
| 11/21 | sched: Delay task_contributes_to_load()include/ kernel/ | +5 | 1 reply | |
| 12/21 | sched: Also serialize ttwu_local() with p->pi_lockkernel/ | +17 | 1 reply | |
| 13/21 | sched: Add p->pi_lock to task_rq_lock()kernel/ | +47 | 100 replies | |
| 14/21 | sched: Drop rq->lock from first part of wake_up_new_task()kernel/ | +3 | 1 reply | |
| 15/21 | sched: Drop rq->lock from sched_exec()kernel/ | +5 | 1 reply | |
| 16/21 | sched: Remove rq->lock from the first half of ttwu()kernel/ | +37 | 1 reply | |
| 17/21 | sched: Remove rq argument from ttwu_stat()kernel/ | +5 | 1 reply | |
| 18/21 | sched: Rename ttwu_post_activationkernel/ | +6 | 1 reply | |
| 19/21 | sched: Restructure ttwu some morekernel/ | +59 | 1 reply | |
| 20/21 | sched: Move the second half of ttwu() to the remote cpuinclude/ init/ kernel/ +1 more | +69 | 1 reply | |
| 21/21 | sched: Remove need_migrate_task()kernel/ | +1 | 1 reply |
Reviews trailers per patch
All 21 patches have a Reviewed-by or Acked-by.
| Patch | Frank Rowand | Thomas Gleixner | Russell King | Martin Schwidefsky | Chris Metcalf | Jesper Nilsson | Benjamin Herrenschmidt |
|---|---|---|---|---|---|---|---|
| 1/21 | R-b R-b | A-b A-b | A-b A-b | A-b A-b | A-b A-b | A-b A-b | |
| 2/21 | R-b R-b | ||||||
| 3/21 | R-b R-b | Requested-by Requested-by | |||||
| 4/21 | R-b R-b | ||||||
| 5/21 | R-b R-b | ||||||
| 6/21 | R-b R-b | ||||||
| 7/21 | R-b R-b | ||||||
| 8/21 | R-b R-b | ||||||
| 9/21 | R-b R-b | ||||||
| 10/21 | R-b R-b | ||||||
| 11/21 | R-b R-b | ||||||
| 12/21 | R-b R-b | ||||||
| 13/21 | R-b R-b | ||||||
| 14/21 | R-b R-b | ||||||
| 15/21 | R-b R-b | ||||||
| 16/21 | R-b R-b | ||||||
| 17/21 | R-b R-b | ||||||
| 18/21 | R-b R-b | ||||||
| 19/21 | R-b R-b | ||||||
| 20/21 | R-b R-b | ||||||
| 21/21 | R-b R-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 7 reviewers.
Cover letter [PATCH 00/21] sched: Reduce runqueue lock contention -v6
This patch series aims to optimize remote wakeups by moving most of the work of the wakeup to the remote cpu and avoid bouncing runqueue data structures where possible.
As measured by sembench (which basically creates a wakeup storm) on my dual-socket westmere:
$ for i in /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor ; do echo performance > $i; done $ echo 4096 32000 64 128 > /proc/sys/kernel/sem $ ./sembench -t 2048 -w 1900 -o 0
unpatched: run time 30 seconds 647278 worker burns per second patched: run time 30 seconds 816715 worker burns per second
I've queued this series for .40.