WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] CPU Usage Discrepancies

To: Pradeep Vincent <pradeep.vincent@xxxxxxxxx>
Subject: Re: [Xen-devel] CPU Usage Discrepancies
From: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>
Date: Wed, 07 Mar 2007 08:32:49 +0000
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Wed, 07 Mar 2007 00:31:21 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <9fda5f510703061711w2b8d0adfx374096393a61a57d@xxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcdgkzBKbyFHSMyGEduL2AAWy6hiGQ==
Thread-topic: [Xen-devel] CPU Usage Discrepancies
User-agent: Microsoft-Entourage/11.3.3.061214
On 7/3/07 01:11, "Pradeep Vincent" <pradeep.vincent@xxxxxxxxx> wrote:

> Linux counts all the nanosecs not accounted by the hypervisor towards
> "stolen" or "blocked" as its own usage. This should include all the
> time spent in the hypervisor in the context of a particular Vcpu - The
> hypervisor counts nsecs as "stolen" or "blocked" only after the Vcpu's
> state is changed (from running to something else)  So most part of the
> hypervisor's CPU usage should be accounted for the same way by xm and
> by /proc/stat on guests as they both use the same "stolen" and
> "blocked" nsecs as accounted for and maintained by the hypervisor.
> 
> Like you said context switch overhead isn't accounted for accurately
> but hypervisor's cpu usage accounting suffers from the same problem
> and to the same extent. Even if this isn't the case,  context switch
> cpu usage can't account for this big a difference.

It sounds like you could track this one down yourself and post a patch if
you find a bug? :-)

 -- Keir



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>