From: Dan Magenheimer Subject: RE: RE: Ballooning up Date: Wed, 15 Sep 2010 11:06:35 -0700 (PDT) Message-ID: <8a5b410c-3540-45bb-ba91-66f972dfab3e@default> References: <4C85F973.2030007@goop.org>> <54eebb3a-f539-43be-8134-a969a4f671c4@default> <4C8EAB0E.7040407@goop.org>> <1284455248.14311.16824.camel@zakaz.uk.xensource.com>> <4C8FA606.3030502@goop.org> <1284534649.15518.205.camel@localhost.localdomain 4C91026B.8020909@goop.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <4C91026B.8020909@goop.org> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Jeremy Fitzhardinge , Ian Campbell Cc: Konrad, Xen-devel@lists.xensource.com, Wilk , Daniel Kiper , Stefano Stabellini List-Id: xen-devel@lists.xenproject.org > From: Jeremy Fitzhardinge [mailto:jeremy@goop.org] > Sent: Wednesday, September 15, 2010 11:29 AM > To: Ian Campbell > Cc: Dan Magenheimer; Stefano Stabellini; Xen-devel@lists.xensource.com; > Daniel Kiper; Konrad Wilk > Subject: Re: [Xen-devel] RE: Ballooning up >=20 > On 09/15/2010 12:10 AM, Ian Campbell wrote: > >> Indeed. I think adding general 32x limit between base and max size > will > >> prevent a completely unusable system, and then just suggest using > mem=3D > >> to control that more precisely (esp for dom0). > > Sounds reasonable. >=20 > I found 32x doesn't work; there seems to be a lot more per-page > overhead > than I expected. I made the limit 10x, which I determined empirically > and somewhat arbitrarily, but it does seem reasonable. Any idea what amount/percent of memory is "wasted" with this limit? (e.g. assuming a system with 10GB physical memory and dom0_mem=3D1G and no up-ballooning) So if one knows a priori that dom0 will not be ballooned up above dom0_mem, one specifies dom0_mem=3D on the xen boot line and mem=3D on the dom0 "module" line? IIRC the Linux mem=3D1G option doesn't really limit physical memory to 1G, just specifies the highest legal address, ignoring holes. Dunno if dom0_mem has this problem (on xenolinux) but I think it does not.