From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755843AbZENVeU (ORCPT ); Thu, 14 May 2009 17:34:20 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753762AbZENVeJ (ORCPT ); Thu, 14 May 2009 17:34:09 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:60402 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753169AbZENVeJ (ORCPT ); Thu, 14 May 2009 17:34:09 -0400 Date: Thu, 14 May 2009 23:34:03 +0200 From: Pavel Machek To: Christoph Lameter Cc: Dave Hansen , David Rientjes , Andrew Morton , Greg Kroah-Hartman , Nick Piggin , Mel Gorman , Peter Ziljstra , San Mehat , Arve Hj?nnev?g , linux-kernel@vger.kernel.org Subject: Re: Misleading OOM messages Message-ID: <20090514213403.GB14741@elf.ucw.cz> References: <20090514092909.GG1365@ucw.cz> <1242333519.15391.210.camel@nimitz> <1242335120.15391.242.camel@nimitz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Warning: Reading this can be dangerous to your mental health. User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu 2009-05-14 17:30:02, Christoph Lameter wrote: > On Thu, 14 May 2009, Dave Hansen wrote: > > > - printk(KERN_ERR "%s: kill process %d (%s) score %li or a child\n", > > + printk(KERN_ERR "No available memory %s: " > > + "kill process %d (%s) score %li or a child\n", > > message, task_pid_nr(p), p->comm, points); > > "No available memory" still suggests that plugging in more memory is the > right solution. And... on correctly working kernel, it is, right? If you have no swap space and too many applications, you plug more memory. (Or invent some swap). If you misconfigured cgroups, you give more memory to them. If your applications mlocked 900MB and you have 1GB, you need to plug more memory. So... when is plugging more memory _not_ valid answer? AFAICT it is when it is some kernel problem, resulting in memory not being reclaimed fast enough.... Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html