On 02/14/2013 04:42 AM, Parakkal, Navin S wrote: > Hi, [Please don't top-post on technical lists]
> Is this not supported for Xen ? I get something like the below for
> Xen+ssh .
>
> libvir: error : this function is not supported by the connection driver:
> virNodeGetCPUStats
> libvir: error : this function is not supported by the connection driver:
> virNodeGetMemoryStats
Indeed, that appears to be the case. Patches are welcome, and it may be
as simple as wiring up xen/xen_driver.c to reuse the same node-generic
functions already in use by qemu; that is, adding something like the
following four lines:
.nodeGetCPUStats = nodeGetCPUStats, /* 1.0.3 */
.nodeGetMemoryStats = nodeGetMemoryStats, /* 1.0.3 */
.nodeGetCellsFreeMemory = nodeGetCellsFreeMemory, /* 1.0.3 */
.nodeGetFreeMemory = nodeGetFreeMemory, /* 1.0.3 */
However, as I tend to develop for qemu rather than xen, I probably won't
be able to test this any time soon, so having someone else try and test
the patch will help it get implemented faster.
>> I'm able to get the CPU utilization metrics from libvirt for the guests
>> (VM's) remotely . Is it possible to get the Host Cpu stat's through libvirt ?
>> I didn't find any information regarding the host cpu cycles and memory
>> utilization to collect them remotely. Libvirt is installed on all the hosts.
>
> You want to use the virNodeGetCPUStats() and virNodeGetMemoryStats() APIs.
> In virsh, these are wrapped under 'nodecpustats' and 'nodememstats'.
>
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature
_______________________________________________ libvirt-users mailing list [email protected] https://www.redhat.com/mailman/listinfo/libvirt-users
