sched, timers: simplify calc_load and avoid cpu iteration loop
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 6 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | sched, timers: move calc_load() to schedulerinclude/ kernel/ kernel/ +2 more | +80 | 3 replies | |
| 2/2 | sched, timers: cleanup avenrun usersfs/ include/ kernel/ +1 more | +29 | 0 replies |
Reviews trailers per patch
1 of 2 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Peter Zijlstra | Dimitri Sivanich |
|---|---|---|
| Series | A-b | |
| 1/2 | A-b | |
| 2/2 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [patch 0/2] sched, timers: simplify calc_load and avoid cpu iteration loop
Dimitri Sivanich pointed out that calc_load iterates over all online CPUs under xtime lock which can cause long latencies on large SMP systems.
The following patch series removes the iteration loop and lets scheduler_tick() on each CPU update the number of active tasks. The calc_load() function just uses this variable and updates avenrun from do_timer().
Dimitri, can you please test run this on one of your large machines ?
Thanks,
tglx