Re: [PATCH] sched: Update scheduler stat documentation.

From: Ingo Molnar
Date: Mon Jan 16 2012 - 02:56:55 EST



* Rakib Mullick <rakib.mullick@xxxxxxxxx> wrote:

> /proc/schedstat's second field reflect to # of time context switch happened not # of times switched to the expired queue.
>
> Signed-off-by: Rakib Mullick <rakib.mullick@xxxxxxxxx>
> ---
>
> diff --git a/Documentation/scheduler/sched-stats.txt b/Documentation/scheduler/sched-stats.txt
> index 1cd5d51..7d8e12c 100644
> --- a/Documentation/scheduler/sched-stats.txt
> +++ b/Documentation/scheduler/sched-stats.txt
> @@ -38,7 +38,8 @@ First field is a sched_yield() statistic:
> 1) # of times sched_yield() was called
>
> Next three are schedule() statistics:
> - 2) # of times we switched to the expired queue and reused it
> + 2) # of times context switch happened. This field is not utilized these
> + days but kept for holding userspace tools integrity.

if it's not used by anything but kept for the ABI then we should
not put context switch number in there, but always keep it zero,
right?

Thanks,

Ingo
--
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/