From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754801AbZEOSXq (ORCPT ); Fri, 15 May 2009 14:23:46 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752416AbZEOSXf (ORCPT ); Fri, 15 May 2009 14:23:35 -0400 Received: from e35.co.us.ibm.com ([32.97.110.153]:35780 "EHLO e35.co.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752034AbZEOSXe (ORCPT ); Fri, 15 May 2009 14:23:34 -0400 Subject: Re: Misleading OOM messages From: Dave Hansen To: Christoph Lameter Cc: David Rientjes , Pavel Machek , Andrew Morton , Greg Kroah-Hartman , Nick Piggin , Mel Gorman , San Mehat , Arve Hj?nnev?g , linux-kernel@vger.kernel.org, Peter Zijlstra , Balbir Singh In-Reply-To: References: <20090514092909.GG1365@ucw.cz> <1242333519.15391.210.camel@nimitz> <1242335120.15391.242.camel@nimitz> <1242337042.28440.34.camel@nimitz> Content-Type: text/plain Date: Fri, 15 May 2009 11:23:27 -0700 Message-Id: <1242411807.28257.44.camel@nimitz> Mime-Version: 1.0 X-Mailer: Evolution 2.26.1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 2009-05-15 at 13:58 -0400, Christoph Lameter wrote: > On Thu, 14 May 2009, David Rientjes wrote: > > > To me it at least adds the fact that more should be made *available* and > > > not just that you're out of it. So, definitely not perfect, but better > > > than "out". > > > > > > > I think "no allowable memory" followed by information on what is and is > > not allowed in that specific context would remove any ambiguity. > > Useful information to have. If a NUMA or cgroup restriction caused the > failure then we should print that out. We get a wee bit of info out for the cgroups case at least: void mem_cgroup_out_of_memory(struct mem_cgroup *mem, gfp_t gfp_mask) { ... if (oom_kill_process(p, gfp_mask, 0, points, mem, "Memory cgroup out of memory")) goto retry; That can surely be improved, but it's a decent start. -- Dave