Seem there is no way to get host CPU usage in libvirt API? I can get freeMemory by  virNodeGetFreeMemory, but no cpu usage API.<br>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.<br>
Yes, I know, I can got it from "top"...:)<br><br><div class="gmail_quote">On Thu, Dec 17, 2009 at 5:06 AM, Daniel Veillard <span dir="ltr"><<a href="mailto:veillard@redhat.com">veillard@redhat.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">On Thu, Dec 17, 2009 at 06:26:41PM +0530, anuj rampal wrote:<br>
> Hi,<br>
><br>
> Is there a way to get the Current CPU and Memory usage of the Host machine<br>
> and the Guest Domains..??<br>
<br>
</div>See<br>
  <a href="http://libvirt.org/html/libvirt-libvirt.html#virDomainGetInfo" target="_blank">http://libvirt.org/html/libvirt-libvirt.html#virDomainGetInfo</a><br>
and<br>
  <a href="http://libvirt.org/html/libvirt-libvirt.html#virDomainInfo" target="_blank">http://libvirt.org/html/libvirt-libvirt.html#virDomainInfo</a><br>
<br>
plus the mails exchanged on the subject in the last few days !<br>
<div><div></div><div class="h5"><br>
Daniel<br>
<br>
--<br>
Daniel Veillard      | libxml Gnome XML XSLT toolkit  <a href="http://xmlsoft.org/" target="_blank">http://xmlsoft.org/</a><br>
<a href="mailto:daniel@veillard.com">daniel@veillard.com</a>  | Rpmfind RPM search engine <a href="http://rpmfind.net/" target="_blank">http://rpmfind.net/</a><br>
<a href="http://veillard.com/" target="_blank">http://veillard.com/</a> | virtualization library  <a href="http://libvirt.org/" target="_blank">http://libvirt.org/</a><br>
<br>
--<br>
Libvir-list mailing list<br>
<a href="mailto:Libvir-list@redhat.com">Libvir-list@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/libvir-list" target="_blank">https://www.redhat.com/mailman/listinfo/libvir-list</a><br>
</div></div></blockquote></div><br>