From: "Andres Lagar-Cavilla" Subject: Re: [PATCH] RFC: initial libxl support for xenpaging Date: Mon, 27 Feb 2012 06:45:38 -0800 Message-ID: <9ca33a90d00fa202b73ba94abe14a2b5.squirrel@webmail.lagarcavilla.org> References: <1329486241.3131.81.camel@zakaz.uk.xensource.com> <20120217142505.GA10523@aepfle.de> <1329490712.3131.97.camel@zakaz.uk.xensource.com> <20120217152443.GA16995@aepfle.de> <1329492796.3131.104.camel@zakaz.uk.xensource.com> <20120217154346.GA19731@aepfle.de> <1329494069.3131.109.camel@zakaz.uk.xensource.com> <20120217160341.GA22266@aepfle.de> <1329496998.3131.131.camel@zakaz.uk.xensource.com> <20120220111230.GA5856@aepfle.de> <1329818358.25232.64.camel@dagon.hellion.org.uk> <1329826841.2196.85.camel@elijah> <1329993761.8557.66.camel@zakaz.uk.xensource.com> <1329999531.19361.74.camel@elijah> <1330078304.8557.157.camel@zakaz.uk.xensource.com> <1330335877.8557.253.camel@zakaz.uk.xensource.com> Reply-To: andres@lagarcavilla.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1330335877.8557.253.camel@zakaz.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Campbell Cc: George Dunlap , Olaf Hering , "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org > On Fri, 2012-02-24 at 17:12 +0000, Andres Lagar-Cavilla wrote: >> Sharing + balloon is mostly a bad idea. It's not forbidden or broken >> from the hypervisor angle, but it's a lose-lose game. Ballooning a >> shared page gains you nothing. The ballooner can't know what is shared >> and what isn't, in order to make an educated decision. And the sharer >> can't foresee what the balloon will victimize. > > Doesn't ballooning generally evict unused pages, because it allocates > new _free_ pages, even if they were shared is there any benefit to doing > so? Certainly the balloon will pick free pages. The sharing daemon should not have shared those, but it's not unlikely that it will have. It's a classic semantic gap problem, and we were discussing this in the context of paging ("the pager should not have paged out page table pages") Beyond free pages, a prime target for sharing are read-only disk buffers in the page cache. Those are victim #2 for the balloon. > > Or is it more of a second order effect, e.g. ballooning can cause the > guest to swap out stuff which could have been shared? > Absolutely. Andres > Ian. > >