Re: How to use "virDomainMemoryStats"? I got 0 result.

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

 



On 01/17/2012 08:36 PM, mao weijie wrote:
> I use like this;
> 
> int n = virDomainMemoryStats(dom, stats, 4, 0);
> 
> I want to get men used and not used. If can , I want to get all output in stats.
> 
> but "n" result is always 0.

That is the correct usage, and the fact that the answer is 0 is a
byproduct of qemu not being able to provide the information.  There are
patches under way so that qemu 1.1 will be able to provide statistics;
but until then, there's nothing libvirt can do if qemu doesn't provide
the information.

-- 
Eric Blake   eblake@xxxxxxxxxx    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


[Index of Archives]     [Virt Tools]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]

  Powered by Linux