Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759225AbZCTQlr (ORCPT ); Fri, 20 Mar 2009 12:41:47 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756821AbZCTQlj (ORCPT ); Fri, 20 Mar 2009 12:41:39 -0400 Received: from gir.skynet.ie ([193.1.99.77]:60744 "EHLO gir.skynet.ie" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756406AbZCTQli (ORCPT ); Fri, 20 Mar 2009 12:41:38 -0400 Date: Fri, 20 Mar 2009 16:41:36 +0000 From: Mel Gorman To: Christoph Lameter Cc: Linux Memory Management List , KOSAKI Motohiro , Nick Piggin , Linux Kernel Mailing List , Lin Ming , Zhang Yanmin , Peter Zijlstra , Andrew Morton Subject: Re: [PATCH 00/25] Cleanup and optimise the page allocator V5 Message-ID: <20090320164136.GQ24586@csn.ul.ie> References: <1237543392-11797-1-git-send-email-mel@csn.ul.ie> <20090320153723.GO24586@csn.ul.ie> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17+20080114 (2008-01-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2118 Lines: 48 On Fri, Mar 20, 2009 at 12:04:42PM -0400, Christoph Lameter wrote: > On Fri, 20 Mar 2009, Mel Gorman wrote: > > > hmm, I'm missing something in your reasoning. The contention I saw for > > zone->lru_lock > > > > &zone->lru_lock 37350 [] ____pagevec_lru_add+0x9c/0x172 > > &zone->lru_lock 55423 [] release_pages+0x10a/0x21b > > &zone->lru_lock 402 [] activate_page+0x4f/0x147 > > &zone->lru_lock 6 [] put_page+0x94/0x122 > > > > So I just assumed it was LRU pages being taken off and freed that was > > causing the contention. Can SLUB affect that? > > No. But it can affect the taking of the zone lock. > True although almost anything will affect the timining of when it's taken. > > Maybe you meant zone->lock and SLUB could tune buffers more to avoid > > that if that lock was hot. That is one alternative but the later patches > > proposed an alternative whereby high-order and compound pages could be > > stored on the PCP lists. Compound only really helps SLUB but high-order > > also helped stacks, signal handlers and the like so it seemed like a > > good idea one way or the other. Course, this meant a search of the PCP > > lists or increasing the size of the PCP structure - swings and > > roundabouts :/ > > Maybe include those as well? Its good stuff. > It wasn't a clear win for this pass though. While conceptually it makes sense, the increase in size of the PCP structure and the search cost look nasty although they look better in comparison to taking the zone lock and then lots of buddy split/merging. I reckon it'll be high on the list for pass 2 though if pass 1 goes ok. -- Mel Gorman Part-time Phd Student Linux Technology Center University of Limerick IBM Dublin Software Lab -- 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/