From: "Jan Beulich" Subject: Re: initial ballooning amount on HVM+PoD Date: Fri, 17 Jan 2014 16:26:05 +0000 Message-ID: <52D967AD0200007800114AA2@nat28.tlf.novell.com> References: <52D94D3A0200007800114957@nat28.tlf.novell.com> <52D95233.1090003@oracle.com> <52D962460200007800114A60@nat28.tlf.novell.com> <1389974929.6697.122.camel@kazak.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1W4CFD-00032L-PE for xen-devel@lists.xenproject.org; Fri, 17 Jan 2014 16:26:07 +0000 In-Reply-To: <1389974929.6697.122.camel@kazak.uk.xensource.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: Ian Campbell Cc: George Dunlap , xen-devel , Boris Ostrovsky , Keir Fraser List-Id: xen-devel@lists.xenproject.org >>> On 17.01.14 at 17:08, Ian Campbell wrote: > On Fri, 2014-01-17 at 16:03 +0000, Jan Beulich wrote: >> max_pfn/num_physpages isn't that far off for guest with less than >> 4Gb, the number calculated from the PoD data is a little worse. > > On ARM RAM may not start at 0 and so using max_pfn can be very > misleading and in practice causes arm to balloon down to 0 as fast as it > can. Ugly. Is that only due to the temporary workaround for there not being an IOMMU? And short of the initial value needing to be architecture specific - can you see a calculation that would yield a decent result on ARM that would also be suitable on x86? Jan