Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754813AbZDWIEk (ORCPT ); Thu, 23 Apr 2009 04:04:40 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1758852AbZDWHo4 (ORCPT ); Thu, 23 Apr 2009 03:44:56 -0400 Received: from courier.cs.helsinki.fi ([128.214.9.1]:53550 "EHLO mail.cs.helsinki.fi" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758816AbZDWHoz (ORCPT ); Thu, 23 Apr 2009 03:44:55 -0400 Subject: Re: [PATCH 02/22] Do not sanity check order in the fast path From: Pekka Enberg To: David Rientjes Cc: Mel Gorman , Dave Hansen , Linux Memory Management List , KOSAKI Motohiro , Christoph Lameter , Nick Piggin , Linux Kernel Mailing List , Lin Ming , Zhang Yanmin , Peter Zijlstra , Andrew Morton In-Reply-To: References: <1240408407-21848-1-git-send-email-mel@csn.ul.ie> <1240408407-21848-3-git-send-email-mel@csn.ul.ie> <1240416791.10627.78.camel@nimitz> <20090422171151.GF15367@csn.ul.ie> Date: Thu, 23 Apr 2009 10:44:53 +0300 Message-Id: <1240472693.16082.56.camel@penberg-laptop> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 7bit X-Mailer: Evolution 2.24.3 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1203 Lines: 28 On Wed, 2009-04-22 at 13:11 -0700, David Rientjes wrote: > On Wed, 22 Apr 2009, Mel Gorman wrote: > > > If there are users with good reasons, then we could convert this to WARN_ON > > to fix up the callers. I suspect that the allocator can already cope with > > recieving a stupid order silently but slowly. It should go all the way to the > > bottom and just never find anything useful and return NULL. zone_watermark_ok > > is the most dangerous looking part but even it should never get to MAX_ORDER > > because it should always find there are not enough free pages and return > > before it overruns. > slub: enforce MAX_ORDER > > slub_max_order may not be equal to or greater than MAX_ORDER. > > Additionally, if a single object cannot be placed in a slab of > slub_max_order, it still must allocate slabs below MAX_ORDER. > > Cc: Christoph Lameter > Signed-off-by: David Rientjes Applied, thanks! -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/