From: tommy schneider Subject: Re: CpuTime and percent Date: Mon, 25 May 2009 09:11:42 +0200 Message-ID: <4A1A44AE.1070004@bull.net> References: <4A1A436E.6070301@bull.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <4A1A436E.6070301@bull.net> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Sorry i forget : I'm using libvirt, and i don't have problem to get domain available,=20 number of VCpu etc... Tom tommy schneider a =E9crit : > Hi there > > I'm writing small apps in C, to quickly get CPU load of my VM (and use=20 > 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=20 > a calm VM. > Sounds wrong to me... > > This is strange to me because, if i tweak the virt-manager to see=20 > 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@lists.xensource.com > http://lists.xensource.com/xen-devel > >