Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Fri, 1 Feb 2002 16:52:06 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Fri, 1 Feb 2002 16:51:46 -0500 Received: from mx2.elte.hu ([157.181.151.9]:48608 "HELO mx2.elte.hu") by vger.kernel.org with SMTP id ; Fri, 1 Feb 2002 16:51:35 -0500 Date: Sat, 2 Feb 2002 00:49:04 +0100 (CET) From: Ingo Molnar Reply-To: To: Linus Torvalds Cc: Momchil Velikov , Anton Blanchard , Andrea Arcangeli , Rik van Riel , John Stoffel , linux-kernel Subject: Re: [PATCH] Radix-tree pagecache for 2.5 In-Reply-To: Message-ID: 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 On Fri, 1 Feb 2002, Linus Torvalds wrote: > In web-servers, 99% of the content is small files, and if the file is > cached the expensive parts are all elsewhere. Don't make up "worst > case schenarios" that simply do no exist. in fact the locking structure of radix trees have a locking advantage in the 'multiple small files' case: if one CPU does a sendfile() on one file, then the lock will be likely CPU-local for the duration of the sendfile(), while page buckets will access a new spinlock for every page accessed. Ingo - 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/