Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Fri, 1 Feb 2002 02:58:49 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Fri, 1 Feb 2002 02:58:39 -0500 Received: from sun.fadata.bg ([80.72.64.67]:57361 "HELO fadata.bg") by vger.kernel.org with SMTP id ; Fri, 1 Feb 2002 02:58:26 -0500 To: Cc: Anton Blanchard , Linus Torvalds , Andrea Arcangeli , Rik van Riel , John Stoffel , linux-kernel Subject: Re: [PATCH] Radix-tree pagecache for 2.5 In-Reply-To: X-No-CC: Reply to lists, not to me. From: Momchil Velikov In-Reply-To: Date: 01 Feb 2002 09:59:51 +0200 Message-ID: <87u1t1ws20.fsf@fadata.bg> Lines: 30 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org >>>>> "Ingo" == Ingo Molnar writes: Ingo> On Fri, 1 Feb 2002, Anton Blanchard wrote: >> There were a few solutions (from davem and ingo) to allocate a larger >> hash but with the radix patch we no longer have to worry about this. Ingo> there is one big issue we forgot to consider. Ingo> in the case of radix trees it's not only search depth that gets worse with Hmm, worse, yes, the same way as page tables get "worse" with larger address spaces. Ingo> big files. The thing i'm worried about is the 'big pagecache lock' being Ingo> reintroduced again. If eg. a database application puts lots of data into a Yes, though I'd strongly suspect big database engines can/should/do benefit from doing their application specific caching and indexing, outperforming whatever cache implementation the OS has. Ingo> single file (multiple gigabytes - why not), then the mapping-> i_shared_lock becomes a 'big pagecache lock' again, causing Ingo> serious SMP contention for even the read() case. Benchmarks show that it's Ingo> the distribution of locks that matters on big boxes. So, we can use a read-write spinlock instead ->i_shared_lock, ok ? Regards, -velco - 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/