arpita k
2011-Feb-11 07:29 UTC
[libvirt-users] Not able to capture detailed CPU information of the guest machine using Libvirt API.
Hi , I have two KVM guests in ubuntu host machine.I am using Python binding of Libvirt API to query on the hypervisor and capture the CPU , memory related information of the guest machines. I need to capture the detail information regarding CPU like : cpu_aidle, cpu_idle, cpu_speed, cpu_wio and memory like :mem_cached,mem_buffers,mem_free etc. of the guest machines. How could I get these information? Please help me. Thanks in Advance!! Arpita -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20110211/36b12dc7/attachment.htm>
Osier Yang
2011-Feb-11 10:26 UTC
[libvirt-users] Not able to capture detailed CPU information of the guest machine using Libvirt API.
? 2011?02?11? 15:29, arpita k ??:> Hi , > > I have two KVM guests in ubuntu host machine.I am using Python binding > of Libvirt API to query on the hypervisor and capture the CPU , memory > related information of the guest machines. > > I need to capture the detail information regarding CPU like : cpu_aidle, > cpu_idle, cpu_speed, cpu_wio and memory like > :mem_cached,mem_buffers,mem_free etc. of the guest machines. > > How could I get these information?You ask more than what libvirt could provide. :-) Guess libguest will help you get what you want. (directly execute commands on it, and then parse the returned information? ) http://libguestfs.org Regards Osier
Peter Phaal
2011-Feb-11 15:21 UTC
[libvirt-users] Not able to capture detailed CPU information of the guest machine using Libvirt API.
I don't believe that libvirt provides access to that level of detail for guest VMs. You might want to look at Host sFlow: http://host-sflow.sourceforge.net/ Installed on the hypervisor, it exports detailed statistics for the server as well as the standard libvirt metrics for each guest. Installed on each guest, it adds the detailed counters you are looking for. Peter On Thu, Feb 10, 2011 at 11:29 PM, arpita k <arpitak29 at gmail.com> wrote:> Hi , > > I have two KVM guests in ubuntu host machine.I am using Python binding of > Libvirt API to query on the hypervisor and capture the CPU , memory related > information of the guest machines. > > I need to capture the detail information regarding CPU like : cpu_aidle, > cpu_idle, cpu_speed, cpu_wio and memory like > :mem_cached,mem_buffers,mem_free etc. of the guest machines. > > How could I get these information? > > Please help me. > > Thanks in Advance!! > > Arpita > > _______________________________________________ > libvirt-users mailing list > libvirt-users at redhat.com > https://www.redhat.com/mailman/listinfo/libvirt-users >