Skip to content

sched, timers: simplify calc_load and avoid cpu iteration loop

Thomas Gleixner lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2sched, timers: move calc_load() to schedulerinclude/linux/sched.h kernel/sched.c kernel/sched_idletask.c +2 more+80 -653 replies
2/2sched, timers: cleanup avenrun usersfs/proc/loadavg.c include/linux/sched.h kernel/sched.c +1 more+29 -390 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.

PatchPeter ZijlstraDimitri Sivanich
SeriesA-b
1/2A-b
2/2

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

Read the v1 thread

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