From: Pasi =?iso-8859-1?Q?K=E4rkk=E4inen?= Subject: Re: can not use all available memory Date: Fri, 23 Nov 2012 15:29:20 +0200 Message-ID: <20121123132920.GY8912@reaktio.net> References: <50AF5F7E.8030907@amd.co.at> <1353673292.13542.238.camel@zakaz.uk.xensource.com> <20121123122800.GV8912@reaktio.net> <1353674039.16973.3.camel@zakaz.uk.xensource.com> <20121123124115.GW8912@reaktio.net> <1353674827.16973.4.camel@zakaz.uk.xensource.com> <20121123125503.GX8912@reaktio.net> <1353676553.16973.12.camel@zakaz.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Content-Disposition: inline In-Reply-To: <1353676553.16973.12.camel@zakaz.uk.xensource.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: Ian Campbell Cc: "xen-devel@lists.xensource.com" , Alexander Bienzeisler List-Id: xen-devel@lists.xenproject.org On Fri, Nov 23, 2012 at 01:15:53PM +0000, Ian Campbell wrote: > On Fri, 2012-11-23 at 12:55 +0000, Pasi K=E4rkk=E4inen wrote: > = > > > This has been discussed at length on the list before, please check the > > > archives. > > > = > > = > > I tried googling quickly but I didn't find anything relevant.. > = > I found > http://web.archiveorange.com/archive/v/zCKz5T3PLvtyZDSPQc9i > in a matter of seconds, then: > http://lists.xen.org/archives/html/xen-devel/2011-11/msg01415.html > http://lists.xen.org/archives/html/xen-users/2012-05/msg00139.html > http://lists.xen.org/archives/html/xen-users/2012-05/msg00146.html > = > > To me this behaviour still seems wrong. What's the point of autoballoon= =3D1 trying to = > > balloon down dom0 if the hypervisor already has enough free memory for = the VM ? = > > = > > In this case: > > - dom0_mem=3D2G > > - new VM to launch with size 16 GB. > > - Xen has 28 GB of free memory. > > = > > So clearly there's no need to try to balloon down dom0.. = > = > Right, so don't set autoballoon then. > = It's enabled as a default.. so many people hit this problem. > > not-yet-implemented check/feature in xl, or a bug? = > = > Neither, it is the intended behaviour of xl autoballoon, this option > means exactly "take the required memory from dom0". > = http://xenbits.xen.org/docs/4.2-testing/man/xl.conf.5.html "autoballoon=3DBOOLEAN If disabled then xl will not attempt to reduce the amount of memory ass= igned to domain 0 in order to create free memory when starting a new domain= . You should set this if you use the dom0_mem hypervisor command line to re= duce the amount of memory given to domain 0 by default. Default: 1" I think we should modify that to say "You should set autoballoon=3D0 if you= use the dom0_mem hypervisor command line .." = At least I understood that text in the opposite way.. Also: What happens if you have autoballoon=3D1 and you start some VMs, then= stop the VMs, = so most of the memory is now free in Xen.. and then you try to start a big = VM ? = Aren't you going to hit the same problem as in this thread? = -- Pasi