From: "Dan Magenheimer" Subject: RE: [PATCH] linux/balloon:don't allow ballooningdowna domain below a reasonable limit Date: Fri, 2 May 2008 16:22:45 -0600 Message-ID: <20080502162245578.00000041924@djm-pc> References: <481B7A01020000780004B919@vpn.id2.novell.com> Reply-To: "dan.magenheimer@oracle.com" Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <481B7A01020000780004B919@vpn.id2.novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Jan Beulich Cc: Ky Srinivasan , "xen-devel@lists.xensource.com" , "keir.fraser@eu.citrix.com" , "garloff@suse.de" List-Id: xen-devel@lists.xenproject.org > >OK, I think I am understanding it a bit better: > >the max_pfn part is just adding in some "slop" > >which is a fraction of total main memory which > >is growing smaller (roughly logarithmically) > >as memory grows larger. I'm still not sure about > >the magic values in MB2PAGES though... I'm guessing > >these were gathered somehow experimentally? > = > I have to defer to the original author here - Kurt? Eagerly awaiting... In addition to cutting it in half, I subtracted another 10MB (in a memory=3D512 domain) and still didn't see any OOMs, though my testing was admittedly limited. = > >With the "divide result of your algorithm by two", > >I was able to get thirteen 512MB domains (idle > >for now) running on a 2GB system. > = > You mean ballooned-down domains, right? Perhaps using your > self-ballooning change? I have to admit I'm a little nervous > about attempting to overcommit memory in this way in a > production environment, but as long as this depends on a > decision of the operator it's certainly a good option to have. Yes, ballooned-down domains. In fact with minimum_target() modified as above (half of algorithm minus 10MB) and a variable load (repeating { compile xen; sleep(30