Re: [patch 13/15] sched: add exports tracking cfs bandwidth controlstatistics

From: Hidetoshi Seto
Date: Tue May 10 2011 - 03:28:11 EST


(2011/05/03 18:28), Paul Turner wrote:
> From: Nikhil Rao <ncrao@xxxxxxxxxx>
>
> This change introduces statistics exports for the cpu sub-system, these are
> added through the use of a stat file similar to that exported by other
> subsystems.
>
> The following exports are included:
>
> nr_periods: number of periods in which execution occurred
> nr_throttled: the number of periods above in which execution was throttle
> throttled_time: cumulative wall-time that any cpus have been throttled for
> this group
>
> Signed-off-by: Nikhil Rao <ncrao@xxxxxxxxxx>
> Signed-off-by: Paul Turner <pjt@xxxxxxxxxx>
> Signed-off-by: Bharata B Rao <bharata@xxxxxxxxxxxxxxxxxx>
> ---
> kernel/sched.c | 22 ++++++++++++++++++++++
> kernel/sched_fair.c | 9 +++++++++
> 2 files changed, 31 insertions(+)
>
> Index: tip/kernel/sched.c
> ===================================================================
> --- tip.orig/kernel/sched.c
> +++ tip/kernel/sched.c
> @@ -260,6 +260,10 @@ struct cfs_bandwidth {
> struct hrtimer period_timer;
> struct list_head throttled_cfs_rq;
>
> + /* statistics */
> + int nr_periods, nr_throttled;
> + u64 throttled_time;
> +
> #endif
> };
>

Nit: blank line?

Reviewed-by: Hidetoshi Seto <seto.hidetoshi@xxxxxxxxxxxxxx>

Thanks,
H.Seto

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/