From: "Jan Beulich" Subject: Re: initial ballooning amount on HVM+PoD Date: Mon, 20 Jan 2014 15:54:39 +0000 Message-ID: <52DD54CF02000078001151D4@nat28.tlf.novell.com> References: <52D94D3A0200007800114957@nat28.tlf.novell.com> <52D95233.1090003@oracle.com> <52D962460200007800114A60@nat28.tlf.novell.com> <52D956A0.5040208@oracle.com> <52D9672F0200007800114A9F@nat28.tlf.novell.com> <20140120153122.GA24863@phenom.dumpdata.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta4.messagelabs.com ([85.158.143.247]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1W5HBT-0002e0-A3 for xen-devel@lists.xenproject.org; Mon, 20 Jan 2014 15:54:43 +0000 In-Reply-To: <20140120153122.GA24863@phenom.dumpdata.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Konrad Rzeszutek Wilk Cc: George Dunlap , xen-devel , Boris Ostrovsky , Keir Fraser List-Id: xen-devel@lists.xenproject.org >>> On 20.01.14 at 16:31, Konrad Rzeszutek Wilk wrote: >> >>>> Question now is: Considering that (a) is broken (and hard to fix) >> >>>> and (b) is in presumably a large part of practical cases leading to >> >>>> too much ballooning down, shouldn't we open up >> >>>> XENMEM_get_pod_target for domains to query on themselves? >> >>>> Alternatively, can anyone see another way to calculate a >> >>>> reasonably precise value? >> >>> I think hypervisor query is a good thing although I don't know whether >> >>> exposing PoD-specific data (count and entry_count) to the guest is >> >>> necessary. It's probably OK (or we can set these fields to zero for >> >>> non-privileged domains). >> >> That's pointless then - if no useful data is provided through the >> >> call to non-privileged domains, we can as well keep it erroring for >> >> them. >> >> >> > >> > I thought that are after d->tot_pages, no? >> >> That can be obtained through another XENMEM_ operation. No, >> what is needed is the difference between PoD entries and PoD >> cache (which then needs to be added to tot_pages). > > Won't that be racy? Meaning the moment you get that information and > kick of the balloon worker, said value might be different already? There's a small risk for that, yes (albeit said difference ought to be stable, and I don't immediately see how tot_pages would change underneath the balloon driver initializing), but I am still awaiting alternative suggestions... Jan