From mboxrd@z Thu Jan 1 00:00:00 1970 From: Srivatsa Vaddagiri Subject: Re: Idle time statistics for a container Date: Wed, 10 Oct 2007 23:50:21 +0530 Message-ID: <20071010182021.GB30708@linux.vnet.ibm.com> References: <20071010142529.GA4690@linux.vnet.ibm.com> <20071010180039.GG27755@MAIL.13thfloor.at> Reply-To: vatsa-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <20071010180039.GG27755-ZD0Mn47LIGX0Pe/G4T7+5F6hYfS7NtTn@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: Herbert Poetzl Cc: containers-qjLDD68F18O7TbgM5vRIOg@public.gmane.org List-Id: containers.vger.kernel.org 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