From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kirill Korotaev Subject: Re: Idle time statistics for a container Date: Wed, 10 Oct 2007 19:35:14 +0400 Message-ID: <470CF132.5050003@sw.ru> References: <20071010142529.GA4690@linux.vnet.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20071010142529.GA4690-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Errors-To: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org To: vatsa-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org Cc: containers-qjLDD68F18O7TbgM5vRIOg@public.gmane.org List-Id: containers.vger.kernel.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. >