On Fri, 7 Dec 2012 05:30:17 +0000 Dietmar Maurer <diet...@proxmox.com> wrote:
> > +The memory statistics are: > > + > > + o stat-swap-in > > + o stat-swap-out > > + o stat-major-faults > > + o stat-minor-faults > > + o stat-free-memory > > + o stat-total-memory > > I want to implement an automatic ballooning policy, so I need to > know the amount of free RAM inside the guest. > > But it seem that the balloon driver reports free ram without accounting > buffers and cache. > > Is it possible to extent those statistic to include buffer/cache values? Yes, should be possible but the kernel virtio-balloon driver has to be extended too (and I suspect this kind of change goes into the kernel first).