-
- Downloads
sched: window-based load stats for tasks
Provide a metric per task that specifies how cpu bound a task is. Task
execution is monitored over several time windows and the fraction of
the window for which task was found to be executing or wanting to run
is recorded as task's demand. Windows over which task was sleeping are
ignored. We track last 5 recent windows for every task and the maximum
demand seen in any of the previous 5 windows (where task had some
activity) drives freq demand for every task.
A per-cpu metric (rq->cumulative_runnable_avg) is also provided which
is an aggregation of cpu demand of all tasks currently enqueued on it.
rq->cumulative_runnable_avg will be useful to know if cpu frequency
will need to be changed to match task demand.
Change-Id: Ib83207b9ba8683cd3304ee8a2290695c34f08fe2
Signed-off-by:
Srivatsa Vaddagiri <vatsa@codeaurora.org>
Showing
- include/linux/sched.h 31 additions, 0 deletionsinclude/linux/sched.h
- include/linux/sched/sysctl.h 1 addition, 0 deletionsinclude/linux/sched/sysctl.h
- kernel/sched/core.c 128 additions, 2 deletionskernel/sched/core.c
- kernel/sched/sched.h 1 addition, 0 deletionskernel/sched/sched.h
- kernel/sysctl.c 7 additions, 0 deletionskernel/sysctl.c
Loading
Please register or sign in to comment