From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Theurer Subject: Re: Calculating real cpu usage of Xen domains correctly! Date: Wed, 23 Feb 2005 20:10:38 -0600 Message-ID: <421D379E.9060602@us.ibm.com> References: <421D27B4.3080503@us.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit In-Reply-To: <421D27B4.3080503@us.ibm.com> Sender: xen-devel-admin@lists.sourceforge.net Errors-To: xen-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: Anthony Liguori Cc: Ian Pratt , Jerone Young , xen-devel , ian.pratt@cl.cam.ac.uk List-Id: xen-devel@lists.xenproject.org Anthony Liguori wrote: > Ian Pratt wrote: > >> Rather than trying to come up with metrics like this, I'd rather have >> vm-top show the percentage of a physical CPU that each domain used, >> independent of it's allocation. >> i.e. total including the idle domain will be #CPUS x 100%. >> >> >> > Right, that's exactly what we want to do. How does one get that > information? We thought that xc_domain_get_cpu_usage() would provide > that information but it doesn't appear too. (Caution: I have not even looked at this code and am ready to insert foot in mouth) Can you derive this based on a delta of time stamps, those timestamps correlating to times when the xen scheduler granted a domain's virtual cpu a physical cpu and when it was removed from a physical cpu? -Andrew Theurer ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click