summaryrefslogtreecommitdiff
path: root/block/Makefile
diff options
context:
space:
mode:
authorSrivatsa Vaddagiri <vatsa@codeaurora.org>2014-01-06 16:24:48 -0800
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-23 19:58:39 -0700
commit74463329e4f23636cfbd126709b27395dbbfcaa7 (patch)
treee3edd3f68ee329e31000eee855e7566a7fe3c220 /block/Makefile
parent97ae7bae2cb823be587d85f3421ade6033f6f366 (diff)
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> [rameezmustafa@codeaurora.org]: Port to msm-3.18] Signed-off-by: Syed Rameez Mustafa <rameezmustafa@codeaurora.org> [joonwoop@codeaurora.org: fixed conflict in ttwu_do_wakeup() to incorporate with changed trace_sched_wakeup() location.] Signed-off-by: Joonwoo Park <joonwoop@codeaurora.org>
Diffstat (limited to 'block/Makefile')
0 files changed, 0 insertions, 0 deletions