From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:44989) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tgwxj-0002iF-Dh for qemu-devel@nongnu.org; Fri, 07 Dec 2012 07:23:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tgwxi-0005HX-7z for qemu-devel@nongnu.org; Fri, 07 Dec 2012 07:23:27 -0500 Received: from mx1.redhat.com ([209.132.183.28]:58287) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tgwxi-0005HT-0Z for qemu-devel@nongnu.org; Fri, 07 Dec 2012 07:23:26 -0500 Date: Fri, 7 Dec 2012 10:23:21 -0200 From: Luiz Capitulino Message-ID: <20121207102321.69bb96c7@doriath.home> In-Reply-To: <24E144B8C0207547AD09C467A8259F755785FF6D@lisa.maurer-it.com> References: <1354633488-24112-1-git-send-email-lcapitulino@redhat.com> <1354633488-24112-4-git-send-email-lcapitulino@redhat.com> <24E144B8C0207547AD09C467A8259F755785FF6D@lisa.maurer-it.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [RFC 3/3] docs: document virtio-balloon stats List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Dietmar Maurer Cc: "aliguori@us.ibm.com" , "agl@us.ibm.com" , "qemu-devel@nongnu.org" , "mdroth@linux.vnet.ibm.com" On Fri, 7 Dec 2012 05:30:17 +0000 Dietmar Maurer 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).