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

[Xen-devel] CpuTime and percent

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] CpuTime and percent
From: tommy schneider <tommy.schneider@xxxxxxxx>
Date: Mon, 25 May 2009 09:06:22 +0200
Delivery-date: Mon, 25 May 2009 00:07:15 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla-Thunderbird 2.0.0.19 (X11/20090103)
Hi there

I'm writing small apps in C, to quickly get CPU load of my VM (and use it in Java Apps etc...)
I'm having a little problem to extract CPU load of my domain.

When i call info.cputime (in C), i get thing like 836 279 689 996 for a calm VM.
Sounds wrong to me...

This is strange to me because, if i tweak the virt-manager to see CPUtime instead of percent, my Domain-0 show around 300 000 000 !?!

Does someone knows where i'm wrong ???

Hope someone will show me the truth ;)
Tom

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

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