From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:55787) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TlHrh-0004ng-HC for qemu-devel@nongnu.org; Wed, 19 Dec 2012 06:31:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TlHrc-0003uH-6r for qemu-devel@nongnu.org; Wed, 19 Dec 2012 06:31:09 -0500 Received: from mx1.redhat.com ([209.132.183.28]:62793) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TlHrb-0003uB-UT for qemu-devel@nongnu.org; Wed, 19 Dec 2012 06:31:04 -0500 Date: Wed, 19 Dec 2012 09:30:39 -0200 From: Luiz Capitulino Message-ID: <20121219093039.51831f6f@doriath.home> In-Reply-To: <20121218225330.GA28297@lizard.mcd00620.sjc.wayport.net> References: <1355861815-2607-1-git-send-email-lcapitulino@redhat.com> <1355861815-2607-4-git-send-email-lcapitulino@redhat.com> <20121218225330.GA28297@lizard.mcd00620.sjc.wayport.net> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [RFC 3/3] virtio-balloon: add auto-ballooning support List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anton Vorontsov Cc: Michal Hocko , aquini@redhat.com, mst@redhat.com, linux-kernel@vger.kernel.org, David Rientjes , qemu-devel@nongnu.org, Glauber Costa , Pekka Enberg , linux-mm@kvack.org, John Stultz , Mel Gorman , agl@us.ibm.com, amit.shah@redhat.com, kirill@shutemov.name, Andrew Morton On Tue, 18 Dec 2012 14:53:30 -0800 Anton Vorontsov wrote: > Hello Luiz, > > On Tue, Dec 18, 2012 at 06:16:55PM -0200, Luiz Capitulino wrote: > > The auto-ballooning feature automatically performs balloon inflate > > or deflate based on host and guest memory pressure. This can help to > > avoid swapping or worse in both, host and guest. > > > > Auto-ballooning has a host and a guest part. The host performs > > automatic inflate by requesting the guest to inflate its balloon > > when the host is facing memory pressure. The guest performs > > automatic deflate when it's facing memory pressure itself. It's > > expected that auto-inflate and auto-deflate will balance each > > other over time. > > > > This commit implements the host side of auto-ballooning. > > > > To be notified of host memory pressure, this commit makes use of this > > kernel API proposal being discussed upstream: > > > > http://marc.info/?l=linux-mm&m=135513372205134&w=2 > > Wow, you're fast! And I'm glad that it works for you, so we have two > full-featured mempressure cgroup users already. Thanks, although I think we need more testing to be sure this does what we want. I mean, the basic mechanics does work, but my testing has been very light so far. > Even though it is a qemu patch, I think we should Cc linux-mm folks on it, > just to let them know the great news. I'll do it next time.