* Idle time statistics for a container
@ 2007-10-10 14:25 Srivatsa Vaddagiri
[not found] ` <20071010142529.GA4690-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>
0 siblings, 1 reply; 4+ messages in thread
From: Srivatsa Vaddagiri @ 2007-10-10 14:25 UTC (permalink / raw)
To: dev-3ImXcnM4P+0, herbert-dBHVzrDq9nF4Lj/PQRBjDg
Cc: containers-qjLDD68F18O7TbgM5vRIOg
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
^ permalink raw reply [flat|nested] 4+ messages in thread[parent not found: <20071010142529.GA4690-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>]
* Re: Idle time statistics for a container [not found] ` <20071010142529.GA4690-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org> @ 2007-10-10 15:35 ` Kirill Korotaev 2007-10-10 18:00 ` Herbert Poetzl 1 sibling, 0 replies; 4+ messages in thread From: Kirill Korotaev @ 2007-10-10 15:35 UTC (permalink / raw) To: vatsa-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8; +Cc: containers-qjLDD68F18O7TbgM5vRIOg 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. > ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Idle time statistics for a container [not found] ` <20071010142529.GA4690-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org> 2007-10-10 15:35 ` Kirill Korotaev @ 2007-10-10 18:00 ` Herbert Poetzl [not found] ` <20071010180039.GG27755-ZD0Mn47LIGX0Pe/G4T7+5F6hYfS7NtTn@public.gmane.org> 1 sibling, 1 reply; 4+ messages in thread From: Herbert Poetzl @ 2007-10-10 18:00 UTC (permalink / raw) To: Srivatsa Vaddagiri; +Cc: containers-qjLDD68F18O7TbgM5vRIOg 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 ^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <20071010180039.GG27755-ZD0Mn47LIGX0Pe/G4T7+5F6hYfS7NtTn@public.gmane.org>]
* Re: Idle time statistics for a container [not found] ` <20071010180039.GG27755-ZD0Mn47LIGX0Pe/G4T7+5F6hYfS7NtTn@public.gmane.org> @ 2007-10-10 18:20 ` Srivatsa Vaddagiri 0 siblings, 0 replies; 4+ messages in thread From: Srivatsa Vaddagiri @ 2007-10-10 18:20 UTC (permalink / raw) To: Herbert Poetzl; +Cc: containers-qjLDD68F18O7TbgM5vRIOg 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 ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-10-10 18:20 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-10 14:25 Idle time statistics for a container Srivatsa Vaddagiri
[not found] ` <20071010142529.GA4690-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>
2007-10-10 15:35 ` Kirill Korotaev
2007-10-10 18:00 ` Herbert Poetzl
[not found] ` <20071010180039.GG27755-ZD0Mn47LIGX0Pe/G4T7+5F6hYfS7NtTn@public.gmane.org>
2007-10-10 18:20 ` Srivatsa Vaddagiri
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox