From: Ian Campbell Subject: Re: initial ballooning amount on HVM+PoD Date: Fri, 17 Jan 2014 17:13:52 +0000 Message-ID: <1389978832.6697.137.camel@kazak.uk.xensource.com> References: <52D94D3A0200007800114957@nat28.tlf.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1W4CzW-0006Qv-34 for xen-devel@lists.xenproject.org; Fri, 17 Jan 2014 17:13:58 +0000 In-Reply-To: <52D94D3A0200007800114957@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 On Fri, 2014-01-17 at 14:33 +0000, Jan Beulich wrote: > Interestingly, (a) too results in the driver not ballooning down > enough - there's a gap of exactly as many pages as are marked > reserved below the 1Mb boundary. Therefore aforementioned > upstream commit is presumably broken. Can we count those reserved pages? (I guess you mean reserved in the e820?) > Short of a reliable (and ideally architecture independent) way of > knowing the necessary adjustment value, the next best solution > (not ballooning down too little, but also not ballooning down much > more than necessary) turns out to be using the minimum of (b) > and (c): When the domain only has memory below 4Gb, (b) is > more precise, whereas in the other cases (c) gets closest. I think I'd prefer an arch specific calculation (or an arch specific adjustment to a generic calculation) to either of the above. Ian.