From: Daniel Kiper Subject: Re: Kernel 3.11 / 3.12 OOM killer and Xen ballooning Date: Mon, 3 Feb 2014 15:00:42 +0100 Message-ID: <20140203140042.GD5436@olila.local.net-space.pl> References: <52D64B87.6000400@zynstra.com> <52D69E0B.5020006@oracle.com> <52D6B8B6.5070302@zynstra.com> <52D7346A.3000300@oracle.com> <52E7E594.2050104@zynstra.com> <52E911CA.9020700@oracle.com> <52E91404.30602@zynstra.com> <20140131165654.GF23648@phenom.dumpdata.com> <20140203094912.GA5273@olila.local.net-space.pl> <52EF7B81.4080601@zynstra.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <52EF7B81.4080601@zynstra.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: James Dingwall Cc: xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Mon, Feb 03, 2014 at 11:20:33AM +0000, James Dingwall wrote: > Daniel Kiper wrote: [...] > >Hmmm... James, how do you build webkit-gtk? Just simple "make" or "make -j"? > >Could you confirm that webkit-gtk in any "subjobs" do not use "make -j"? > My guest domain is Gentoo and I have MAKEOPTS="-j2" set in make.conf > and according to the build log for webkit-gtk this is used > unchanged: > >>> Source configured. > >>> Compiling source in > /var/tmp/portage/net-libs/webkit-gtk-2.0.4/work/webkitgtk-2.0.4 ... > make -j2 > > I wouldn't read anything in particular to it being webkit as I have > seen similar from other large compiles (gcc, glibc, kdelibs, ...) Thanks, it makes sens. I was afraid that somewhere "make -j" without an argument has been called. > >>>>But I think from the beginning tmem/balloon driver can't expand guest > >>>>memory from size 'memory' to 'maxmem' automatically. > >>>I am carrying this patch for libxl (4.3.1) because maxmem wasn't > >>>being honoured. > >James, what do you mean by "maxmem wasn't being honoured"? > http://lists.xen.org/archives/html/xen-devel/2013-10/msg02228.html - > the guest would never balloon above the value of memory when maxmem > was set and was > memory in the configuration file. There were some > discussions about the correctness of this patch but the only place I > could see an impact of maxmem was the parsing of the config > parameters for the setup of the guest domain. IIRC the xl mem-max > command which changes the same parameter once the guest domain is > running resulted with the balloon up behaviour to max-mem working as > expected. So the discrepancy between how xl behaves with the maxmem > in the config or the execution of xl mem-max was what I had noted > and what this patch resolved. It would be easy to repeat those > tests if necessary. Please look for "[PATCH v4 0/4] libxl: memory management patches", "[PATCH v2 0/2] xen/balloon: Extension and fix" and earlier related threads. They contain almost hammered out and agreed solution for this issue (you also find explanation for this xl behavior; note that xm behavior was different). However, I was not able to finish this patches due to other stuff on my plate. I have still this issue on my todo list. If you would like to work on these patches go ahead. I am happy to help but I am not able to work on them right now. Daniel