Re: [patch] cputime: introduce cputime.

From: Rik van Riel
Date: Wed Oct 27 2004 - 09:58:36 EST


On Wed, 27 Oct 2004, Martin Schwidefsky wrote:

> The third thing that gets introduced by this patch is an additional field
> for the /proc/stat interface: cpu steal time. An architecture can account
> cpu steal time by calls to the account_stealtime function. The cpu
> which backs a virtual processor doesn't spent all of its time for the
> virtual cpu. To get meaningful cpu usage numbers this involuntary wait
> time needs to be accounted and exported to user space.

This will be useful for User Mode Linux, Xen and iSeries too.

I suspect we'll also want to report hypervisor wait time in
/proc/stat, so we can see how much time our guest is really
getting...

--
"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it." - Brian W. Kernighan


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