From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail172.messagelabs.com (mail172.messagelabs.com [216.82.254.3]) by kanga.kvack.org (Postfix) with ESMTP id 48D7A6B003D for ; Thu, 23 Apr 2009 03:44:15 -0400 (EDT) Subject: Re: [PATCH 02/22] Do not sanity check order in the fast path From: Pekka Enberg 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 Sender: owner-linux-mm@kvack.org 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 List-ID: 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, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org