[libvirt] Current cpu and memory usage for Host and Domains

su disheng disheng.su at gmail.com
Fri Jan 15 19:52:09 UTC 2010


Seem there is no way to get host CPU usage in libvirt API? I can get
freeMemory by  virNodeGetFreeMemory, but no cpu usage API.
How about add a new api for it? The host CPU usage is also important for VM
creation and migration decision, like the free memory.
Yes, I know, I can got it from "top"...:)

On Thu, Dec 17, 2009 at 5:06 AM, Daniel Veillard <veillard at redhat.com>wrote:

> On Thu, Dec 17, 2009 at 06:26:41PM +0530, anuj rampal wrote:
> > Hi,
> >
> > Is there a way to get the Current CPU and Memory usage of the Host
> machine
> > and the Guest Domains..??
>
> See
>  http://libvirt.org/html/libvirt-libvirt.html#virDomainGetInfo
> and
>  http://libvirt.org/html/libvirt-libvirt.html#virDomainInfo
>
> plus the mails exchanged on the subject in the last few days !
>
> Daniel
>
> --
> Daniel Veillard      | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
> daniel at veillard.com  | Rpmfind RPM search engine http://rpmfind.net/
> http://veillard.com/ | virtualization library  http://libvirt.org/
>
> --
> Libvir-list mailing list
> Libvir-list at redhat.com
> https://www.redhat.com/mailman/listinfo/libvir-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20100115/24ca8411/attachment-0001.htm>


More information about the libvir-list mailing list