From mboxrd@z Thu Jan 1 00:00:00 1970 From: Balbir Singh Subject: Re: KVM and the OOM-Killer Date: Fri, 14 May 2010 13:49:54 +0530 Message-ID: <20100514081954.GF3296@balbir.in.ibm.com> References: <4BEBEE8F.9050508@jrcs.co.uk> <20100514073334.GE16563@miggy.org> Reply-To: balbir@linux.vnet.ibm.com Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 To: James Stevens , kvm@vger.kernel.org Return-path: Received: from e23smtp07.au.ibm.com ([202.81.31.140]:38287 "EHLO e23smtp07.au.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754271Ab0ENIUB (ORCPT ); Fri, 14 May 2010 04:20:01 -0400 Received: from d23relay05.au.ibm.com (d23relay05.au.ibm.com [202.81.31.247]) by e23smtp07.au.ibm.com (8.14.3/8.13.1) with ESMTP id o4EIK7nj025709 for ; Sat, 15 May 2010 04:20:07 +1000 Received: from d23av03.au.ibm.com (d23av03.au.ibm.com [9.190.234.97]) by d23relay05.au.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id o4E8CosF1609966 for ; Fri, 14 May 2010 18:12:50 +1000 Received: from d23av03.au.ibm.com (loopback [127.0.0.1]) by d23av03.au.ibm.com (8.14.3/8.13.1/NCO v10.0 AVout) with ESMTP id o4E8Jx7K026691 for ; Fri, 14 May 2010 18:19:59 +1000 Content-Disposition: inline In-Reply-To: <20100514073334.GE16563@miggy.org> Sender: kvm-owner@vger.kernel.org List-ID: * Athanasius [2010-05-14 08:33:34]: > On Thu, May 13, 2010 at 01:20:31PM +0100, James Stevens wrote: > > We have a KVM host with 48Gb of RAM and run about 20 KVM clients on it. > > After some time - different time depending on the kernel version - the > > VM host kernel will start OOM-Killing the VM clients, even when there is > > lots of free RAM (>10Gb) and free SWAP (>34Gb). > > It seems going to a 64 bit kernel is what you want, but I thought it > worth mentioning the available method to say "try not to OOM-kill *this* > process": > > echo "-16" > /proc//oom_adj > A lot of this is being changed, but not yet committed. There are patches out there to deal with the lowmem issue. Meanwhile, do follow the suggestions on oom_adj and moving to 64 bit. -- Three Cheers, Balbir