From: Konrad Rzeszutek Wilk Subject: Re: Memory allocation going seriously wonky on 4.1.1 Date: Thu, 6 Oct 2011 11:48:52 -0400 Message-ID: <20111006154852.GB23041@phenom.oracle.com> References: <4E85DB1A.5060606@overnetdata.com> <20111001120706.GZ12984@reaktio.net> <4E89BC80.4030105@overnetdata.com> <20111003190917.GF15608@phenom.oracle.com> <4E8DA5BC.8000406@overnetdata.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: <4E8DA5BC.8000406@overnetdata.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: Anthony Wright Cc: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org On Thu, Oct 06, 2011 at 01:57:32PM +0100, Anthony Wright wrote: > On 03/10/2011 20:09, Konrad Rzeszutek Wilk wrote: > > On Mon, Oct 03, 2011 at 02:45:36PM +0100, Anthony Wright wrote: > >> On 01/10/2011 13:07, Pasi K=E4rkk=E4inen wrote: > >>> On Fri, Sep 30, 2011 at 04:07:06PM +0100, Anthony Wright wrote: > >>>> I have a machine with 16GB of RAM running 32 bit xen 4.1.1 with Do= m0 > >>>> running a 3.0.4 linux kernel and 23 paravirtualized DomUs. > >>>> > >>> Hey, > >>> > >>> Why 32bit Xen? I think all (most?) hypervisor testing happens with = 64bit Xen. > >>> Note that you can still have 32bit dom0 kernel with 64b hypervisor. > >> I'm going to investigate 64 bit xen on a 32 bit Dom0 soon, but as to= the > >> 32 xen, I work quite a lot with older hardware and Xen since it does > >> paravirtualisation, and it's a really good way to re-use old hardwar= e. > >>>> As the free ram gets to 2391 MB free the system behaves as if it's= got > >>>> no more ram, and starts grabbing ram from Dom0, before getting eve= n more > >>>> confused and failing to start DomUs and eventually crashing the wh= ole > >>>> machine. I have attached a tarball with the output of xl dmesg, xl= info > >>>> & xl list at various points. > >>>> > >>> - Do you use dom0_mem=3D parameter for Xen?=20 > >>> - Did you disable dom0 ballooning?=20 > >>> > >>> http://wiki.xen.org/xenwiki/XenBestPractices > >> I was already using the dom0_mem=3D parameter on the xen hypervisor,= but I > >> disabled dom0 ballooning (enable-dom0-ballooning no), and just for g= ood > >> measure I also set (dom0-min-mem 2000). This had no effect, when I > >> increase the 10-4 memory requirements, on restart the Dom0 memory is > >> reduced to 1713MB and xl info reports 2391MB free. > >>>> Stage 1 > >>>> Everything is fine, Dom0 has 2000MB according to xl list, and 'xl = info' > >>>> says there is 2405MB free. > >>> - How much memory did dom0 initially have?=20 > >>> - Did you use mem=3D parameter for dom0 kernel (vmlinuz) ? > >>> > >>> See: http://wiki.xen.org/xenwiki/Linux_30_bugs > >> dom0 starts with 2000MB. > >> I didn't use mem=3D on the linux kernel - I thought it wasn't necces= sary. > > It is if your kernel does not have these two patches: > > > > xen: use maximum reservation to limit amount of usable RAM > > xen/e820: if there is no dom0_mem=3D, don't tweak extra_pages. > > > > .. oh and you also need to update the hypervisor to include: > > " > > For dom0, this requires at patch to Xen ('x86: use 'dom0_mem' to = limit > > the number of pages for dom0') (c/s 23790) > > " > > > > Grrr.. Let me update the 3.0 bug-list > I applied the two kernel patches, but get similar results, dom0 still > gets ballooned down (even more agressively) despite having > dom0_mem=3D2000, dom0-min-mem=3D2000 and enable-dom0-ballooning set to = 0. >=20 > I couldn't find the xen patch, could you point me in the right directio= n. Google seems to find it.