Re: [libvirt] [RFD] API for reporting virtual machine memory statistics

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

 



On Tue, Nov 10, 2009 at 09:27:45AM -0600, Adam Litke wrote:
> I am working on a feature that enables virtual machines to report memory
> statistics to the host.  Examples include: free memory, number of pages
> swapped out/in, number of page faults, etc.  This information is useful
> to a virtual machine manager which can use it to make memory ballooning
> or VM migration decisions.  My implementation uses the virtio-balloon
> driver as a conduit for the memory info.
> 
> What is the best way to expose these memory stats in libvirt?  I see two
> possibilities.  The dominfo command already queries the balloon driver
> so I could easily extend this command to report the additional fields.
> The second, and better IMO, option is to introduce a new command
> (dommemstat) with output similar to domblkstat.
> 
> What do you think?

The libvirt API  guarentee requires that we don't make any changes to
the virDomainInfo struct. So adding a new API & virsh dommemstat command
would be the logical way forward

Regards,
Daniel
-- 
|: Red Hat, Engineering, London   -o-   http://people.redhat.com/berrange/ :|
|: http://libvirt.org  -o-  http://virt-manager.org  -o-  http://ovirt.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: GnuPG: 7D3B9505  -o-  F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|

--
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]