[Devel] Re: Idle time statistics for a container

Kirill Korotaev dev at sw.ru
Wed Oct 10 08:35:14 PDT 2007


yes, OpenVZ calculates idle statistics for VE.
it is calculated as follows:
cpu user/system time are incremented as usual on timer tick,
idle time is incremented on per-VE per-VCPU runqueue when there is no tasks
in VE runqueue.

i.e. VE idle time is the time when there were no VE tasks on the runqueue.

Srivatsa Vaddagiri wrote:
> Hi Kirill/Hertbert,
> 	Does Openvz or Linux-VServer provide idle time statistics per
> container? i.e how much time a container has been idle?
> 
> Just exploring whether that be a usefull stats to provide on a
> per-control group basis.
> 

_______________________________________________
Containers mailing list
Containers at lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers




More information about the Devel mailing list