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

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

 



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

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

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

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]