[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

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



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 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 veillard com  | Rpmfind RPM search engine http://rpmfind.net/
http://veillard.com/ | virtualization library  http://libvirt.org/

--
Libvir-list mailing list
Libvir-list redhat com
https://www.redhat.com/mailman/listinfo/libvir-list


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]