[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] Getting VM stats
On 12/13/06, jdsw <jdsw2002@xxxxxxxxx> wrote: Hi Q. What is recommended way of getting the following virtual machine stats for running domain, programmatically (python preferably)? Memory used %, CPU %, Disk I/O , Network I/O IF you are trying to gather all of this information from domain 0: In the past, I've found it easiest to get CPU statistics by modifying XenMon (it is written in python). Xenmon gives more detailed information than xentop, so I *assume* it is more accurate. Xenmon claims 1-2% performance overhead, I haven't heard what xentop incurs, but I wouldn't be surprised if it is a bit more efficient. Network stats I ended gathering with traditional dom0 tools like parsing /proc/net/dev. Getting disk stats can be more difficult - if you are using file backed VBDs there were some patches a while ago that would let you output statistics for them (I'm not certain if this has been brought into mainstream xen since then). Memory information (beyond just knowing how much has been allocated to each VM) is quite difficult to get from dom0. IF you are willing to run things inside your VMs, then it may be easier to use existing tools for monitoring memory and disk usage. You shouldn't monitor CPU usage from inside a VM though since that is unlikely to be very accurate. -Tim _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |