Idle time statistics for a container [message #21530] |
Wed, 10 October 2007 14:16 ![Go to next message Go to next message](/theme/ovz3/images/down.png) |
Srivatsa Vaddagiri
Messages: 241 Registered: August 2006
|
Senior Member |
|
|
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.
--
Regards,
vatsa
_______________________________________________
Containers mailing list
Containers@lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers
|
|
|
|
Re: Idle time statistics for a container [message #21541 is a reply to message #21530] |
Wed, 10 October 2007 18:00 ![Go to previous message Go to previous message](/theme/ovz3/images/up.png) ![Go to next message Go to next message](/theme/ovz3/images/down.png) |
Herbert Poetzl
Messages: 239 Registered: February 2006
|
Senior Member |
|
|
On Wed, Oct 10, 2007 at 07:55:29PM +0530, Srivatsa Vaddagiri wrote:
> Hi Kirill/Hertbert,
> Does Openvz or Linux-VServer provide idle time
> statistics per container?
Linux-VServer accounts the time/ticks a contain was
running and on hold for being over limits, the time
running is broken down into sys/user/etc ...
> i.e how much time a container has been idle?
so, while it is not accounted per se, it can be easily
calculated from the other vaules ...
> Just exploring whether that be a usefull stats to provide
> on a per-control group basis.
I think it makes perfectly sense to account that, and
a smart version is required to get the statistics
inside a container right :)
best,
Herbert
> --
> Regards,
> vatsa
_______________________________________________
Containers mailing list
Containers@lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers
|
|
|
Re: Idle time statistics for a container [message #21543 is a reply to message #21541] |
Wed, 10 October 2007 18:10 ![Go to previous message Go to previous message](/theme/ovz3/images/up.png) |
Srivatsa Vaddagiri
Messages: 241 Registered: August 2006
|
Senior Member |
|
|
On Wed, Oct 10, 2007 at 08:00:39PM +0200, Herbert Poetzl wrote:
> I think it makes perfectly sense to account that, and
> a smart version is required to get the statistics
> inside a container right :)
With the group cfs scheduler, it may be bit easy to provide this.
If I am not mistaken, se->sum_sleep_runtime would provide this idle
time, where 'se' is the group level schedulable entity representing
a container/control-group on a cpu.
--
Regards,
vatsa
_______________________________________________
Containers mailing list
Containers@lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers
|
|
|