diff options
author | Arjan van de Ven <arjan@linux.intel.com> | 2008-01-25 21:08:35 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-01-25 21:08:35 +0100 |
commit | 6d082592b62689fb91578d0338d04a9f50991990 (patch) | |
tree | facef621798752724be64c3ded31a3c3fded1643 /include/linux/sched.h | |
parent | 286100a6cf1c1f692e5f81d14b364ff12b7662f5 (diff) | |
download | op-kernel-dev-6d082592b62689fb91578d0338d04a9f50991990.zip op-kernel-dev-6d082592b62689fb91578d0338d04a9f50991990.tar.gz |
sched: keep total / count stats in addition to the max for
Right now, the linux kernel (with scheduler statistics enabled) keeps track
of the maximum time a process is waiting to be scheduled. While the maximum
is a very useful metric, tracking average and total is equally useful
(at least for latencytop) to figure out the accumulated effect of scheduler
delays. The accumulated effect is important to judge the performance impact
of scheduler tuning/behavior.
Signed-off-by: Arjan van de Ven <arjan@linux.intel.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/linux/sched.h')
-rw-r--r-- | include/linux/sched.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index 734f6d8..df5b24e 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -895,6 +895,8 @@ struct sched_entity { #ifdef CONFIG_SCHEDSTATS u64 wait_start; u64 wait_max; + u64 wait_count; + u64 wait_sum; u64 sleep_start; u64 sleep_max; |