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

Re: [Xen-users] Retrieving the load of each domU

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] Retrieving the load of each domU
From: Mark Williamson <mark.williamson@xxxxxxxxxxxx>
Date: Mon, 27 Mar 2006 16:49:22 +0000
Cc: 'Ugo PARSI' <ugo.parsi@xxxxxxxxx>, Steffen Heil <lists@xxxxxxxxxxxxxxx>
Delivery-date: Mon, 27 Mar 2006 16:51:11 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <002c01c651bd$c5a324f0$0b4613ac@shs1>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <002c01c651bd$c5a324f0$0b4613ac@shs1>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: KMail/1.9.1
Also, using libxenstat (there used to be Python bindings, but I don't know if 
there are, now) will give you stats without parsing xentop output.

Or you can calculate CPU usage directly in Python from values retrieved from 
Xen.

Cheers,
Mark

On Monday 27 March 2006 17:44, Steffen Heil wrote:
> Hi
>
> Use "xm list --long"
> It wont give you cpu average, but cpu time.
> Messure again (sometime later) and do the maths yourself.
> (Current load will anyway not be too good for load balancing - everytime a
> special job runs, that needs more computing power for only a few seconds,
> you would move that VM...)
>
> Regards,
>   Steffen
>
> > -----Original Message-----
> > From: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
> > [mailto:xen-users-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of Ugo PARSI
> > Sent: Monday, March 27, 2006 4:43 PM
> > To: xen-users@xxxxxxxxxxxxxxxxxxx
> > Subject: [Xen-users] Retrieving the load of each domU
> >
> > Hello,
> >
> > I'm trying to get the load (average load or CPU usage) of
> > each domU in order to script a load balancing solution....
> > how can I retrieve this information from a text command or
> > from an interface structure ?
> >
> > The only thing that seems to work is the 'xm-top' command,
> > with the cpu percentile, which is curses based and so this is
> > quite hard to parse...
> >
> > Thanks a lot,
> >
> > Ugo PARSI
> >
> > _______________________________________________
> > Xen-users mailing list
> > Xen-users@xxxxxxxxxxxxxxxxxxx
> > http://lists.xensource.com/xen-users

-- 
Dave: Just a question. What use is a unicyle with no seat?  And no pedals!
Mark: To answer a question with a question: What use is a skateboard?
Dave: Skateboards have wheels.
Mark: My wheel has a wheel!

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