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-api

Re: [Xen-API] Strange CPU utilization values of Dom0

To: xen-api@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-API] Strange CPU utilization values of Dom0
From: kushal waikar <kushalwaikar@xxxxxxxxxxx>
Date: Sat, 21 Feb 2009 03:01:10 +0530 (IST)
Delivery-date: Fri, 20 Feb 2009 13:31:22 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.in; s=s1024; t=1235165470; bh=ZjjUpT9WBxjizRTY8eGZoKso5j8z/IyXs9/lTuARFYg=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type; b=gqyy9DpX7yOdPLuHenhQLXlAO7XdLunRaO8ETHytaxEPIVaJQk1fTrbG5DjL/MDsDurHEEvEneBsgQ7dcNvSzBFLo6StkMo1LrrtXY4z2VE675cuDtG7+eoDnAO6A6AwsGowMvsv/xt0p1f/0YH/BThkwYb1ejLb3EEheAghK7s=
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.co.in; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type; b=UFLINz2q3dBSkJZJqNMjncqjBJ4AF8hSP9T2kj0UqoY9FnDlHFPXNVnXPKmWJn40yj1+GK1bPAZXgaOIw45ahunJeyo5EbrN7w+cQ9BXOy5ZzH0ZrdiS7O6xlzRwe5katX6V6QyESThVzXA/fNqS3wghXrDNJW4XVUk2C9ORSkA=;
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-api-request@lists.xensource.com?subject=help>
List-id: Discussion of API issues surrounding Xen <xen-api.lists.xensource.com>
List-post: <mailto:xen-api@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=unsubscribe>
Reply-to: kushalwaikar@xxxxxxxxxxx
Sender: xen-api-bounces@xxxxxxxxxxxxxxxxxxx


Would u please elaborate this with help of example...? I haven't understood what did u exactly mean to say...


--- On Sat, 21/2/09, Stefan de Konink <stefan@xxxxxxxxx> wrote:
From: Stefan de Konink <stefan@xxxxxxxxx>
Subject: Re: [Xen-API] Strange CPU utilization values of Dom0
To: "kushal waikar" <kushalwaikar@xxxxxxxxxxx>
Cc: xen-api@xxxxxxxxxxxxxxxxxxx
Date: Saturday, 21 February, 2009, 1:28 AM

kushal waikar wrote:
> Hi,
> I am trying to fetch CPU utilization of Dom0 using XenAPI &
Python...I am not getting any error in my code...But Whatever CPU utilization I
am getting from my Dom0 is having value less than one... But actual CPU
utilization seen under Virtual
Machine Manager is in range of 1 to 100...It
never exceeds 100 since it is percentage... If I multiply the values getting
here by 100 then sometimes my CPU utilization is exceeding above 100, which is
impossible practically (remember it is %age thts it should be <=100)...
>
> My questions are-->
>
> 1. What kind of manipulation should be carried out on the vales obtained
through my code to get the correct CPU utilization of Dom0....?
> 2. Any other way to get correct values ?


The CPU utilalisation is time spend in the dom / total time between sample
interval.

So if you measure every 5 seconds your calculation would be:

this sample - previous sample
-----------------------------
5 * 1000


Stefan


Add more friends to your messenger and enjoy! Invite them now.


Connect with friends all over the world. Get Yahoo! India Messenger.
_______________________________________________
xen-api mailing list
xen-api@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/mailman/listinfo/xen-api
<Prev in Thread] Current Thread [Next in Thread>