From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756585AbZEOSWW (ORCPT ); Fri, 15 May 2009 14:22:22 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753233AbZEOSWN (ORCPT ); Fri, 15 May 2009 14:22:13 -0400 Received: from e2.ny.us.ibm.com ([32.97.182.142]:47047 "EHLO e2.ny.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750944AbZEOSWM (ORCPT ); Fri, 15 May 2009 14:22:12 -0400 Subject: Re: Misleading OOM messages From: Dave Hansen To: Christoph Lameter Cc: Pavel Machek , David Rientjes , Andrew Morton , Greg Kroah-Hartman , Nick Piggin , Mel Gorman , Peter Ziljstra , San Mehat , Arve Hj?nnev?g , linux-kernel@vger.kernel.org In-Reply-To: References: <20090514092909.GG1365@ucw.cz> <1242333519.15391.210.camel@nimitz> <1242335120.15391.242.camel@nimitz> <20090514213403.GB14741@elf.ucw.cz> <1242337299.28440.47.camel@nimitz> <20090515130547.GA1976@elf.ucw.cz> Content-Type: text/plain Date: Fri, 15 May 2009 11:22:07 -0700 Message-Id: <1242411727.28257.39.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:59 -0400, Christoph Lameter wrote: > On Fri, 15 May 2009, Pavel Machek wrote: > > Ok, so kernel should be fixed to make limits 30% of non-mlocked > > memory. > > There is already ulimit. There is, but it gets overridden anyway since there are users that "need" tons of mlock() space. We also shouldn't be allowing things to get into crazy configurations. Having a max dirty ratio doesn't even have an effect when you can dirty all unlocked memory several times over and still not be hitting the max dirty mark. Perhaps we should ensure that total RAM mlock()ed + vm_dirty_bytes is always under total ram. That'll force people to either stop mlocking or do the safe thing which is drop vm_dirty_bytes. -- Dave