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

[Xen-users] CPU monitoring & CPU cycles


  • To: xen-users@xxxxxxxxxxxxxxxxxxx
  • From: Marco Creola <marco_creola@xxxxxxxx>
  • Date: Fri, 13 Aug 2010 13:34:52 +0200
  • Delivery-date: Mon, 16 Aug 2010 06:28:48 -0700
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.de; h=DKIM-Signature:Received:X-Yahoo-SMTP:X-YMail-OSG:X-Yahoo-Newman-Property:Subject:From:To:Content-Type:Date:Message-ID:Mime-Version:X-Mailer; b=ruj4KrkXwowDdPJPC0fRxpD5q1sfBy8mYG/Fdx32875HIXzt4US63JfFxwAx7T9wbhA7TaFmk0vbBVnFsYlSVCRa55xmq2KmfmY6+8FNWdJIko1XpAqdH2o/EoNvv0BvEKe9k2AQXIBiJyuuyrm5+j259AGi5itbWo0/gsh3EHU= ;
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

Hi.

I am a student at University of Zurich and I'm doing a homework about
Cloud Computing regarding accounting and billing.

Because the "big" players use Xen Hypervisor I installed a Xen (3.3.0)
on an Ubuntu 8.04 to test some things and get more familiar with Xen
regarding accounting.

I have two questions:

1. CPU monitoring
+++++++++++++++++
I have discovered something strange regarding CPU usage monitoring.

I found a CPU monitoring tool called "xenmon.py".

I have to explain my problem with the help of a screenshot.

On top left side on "screenshot.png" you can see that Dom0 is pinned to
CPU 0 and my two VMs are pinned to CPU 1. (Both VMs use also Ubuntu
8.04).

Also you can see that vm2 and vm3 have each a cap of 40%.

On the left side on the picture you can see that I made some stress test
on both VMs.

On the bottom right side of the screenshot I monitor CPUs with XenMon.
As I've excepted XenMon shows that vm2 and vm3 only use 40% each of
their pinned core and therefore this core is used 80%.

But if you look on the top right side, where Ubuntu's built-in system
monitor and a terminal with "htop" inside lie, the CPU usage is
completly different - at least for the CPU which is used by the VMs.

Ubuntu says that CPU 2 uses 22.5% but XenMon says that this CPU has a
load of 80%.

Why is this difference? Is this a lack of Ubuntu or of XenMon? Which
monitor can I trust?


2. CPU cycles
+++++++++++++
Is there a way to monitor or to log CPU cycles? For example I would like
to know how many CPU cycles "vm2" uses. Maybe there is no tool, but
could this be possible through the Xen API? I have searched the Xen
documentation but I have not found anything.


English is not my native language, so if I sound rude or impolite, I
apology.

I appreciate every help. Thanks a lot.

Kind regards,
Marco

Attachment: screenshot.png
Description: PNG image

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

 


Rackspace

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