[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • To: xen-api@xxxxxxxxxxxxxxxxxxx
  • 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
  • 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=;
  • List-id: Discussion of API issues surrounding Xen <xen-api.lists.xensource.com>



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

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.