From mboxrd@z Thu Jan 1 00:00:00 1970 From: Konrad Rzeszutek Wilk Subject: Re: initial ballooning amount on HVM+PoD Date: Mon, 20 Jan 2014 10:31:22 -0500 Message-ID: <20140120153122.GA24863@phenom.dumpdata.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> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1W5Gq0-0000z8-F8 for xen-devel@lists.xenproject.org; Mon, 20 Jan 2014 15:32:32 +0000 Content-Disposition: inline In-Reply-To: <52D9672F0200007800114A9F@nat28.tlf.novell.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: Jan Beulich Cc: George Dunlap , xen-devel , Boris Ostrovsky , Keir Fraser List-Id: xen-devel@lists.xenproject.org > >>>> 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? > > Jan