Linux Container Development
 help / color / mirror / Atom feed
From: Kirill Korotaev <dev-3ImXcnM4P+0@public.gmane.org>
To: vatsa-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org
Cc: containers-qjLDD68F18O7TbgM5vRIOg@public.gmane.org
Subject: Re: Idle time statistics for a container
Date: Wed, 10 Oct 2007 19:35:14 +0400	[thread overview]
Message-ID: <470CF132.5050003@sw.ru> (raw)
In-Reply-To: <20071010142529.GA4690-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>

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

  parent reply	other threads:[~2007-10-10 15:35 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
2007-10-10 18:00   ` Herbert Poetzl
     [not found]     ` <20071010180039.GG27755-ZD0Mn47LIGX0Pe/G4T7+5F6hYfS7NtTn@public.gmane.org>
2007-10-10 18:20       ` Srivatsa Vaddagiri

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=470CF132.5050003@sw.ru \
    --to=dev-3imxcnm4p+0@public.gmane.org \
    --cc=containers-qjLDD68F18O7TbgM5vRIOg@public.gmane.org \
    --cc=vatsa-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox