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

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



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


 


Rackspace

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