Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964994AbXAGTg6 (ORCPT ); Sun, 7 Jan 2007 14:36:58 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S964977AbXAGTg5 (ORCPT ); Sun, 7 Jan 2007 14:36:57 -0500 Received: from smtp.osdl.org ([65.172.181.24]:43043 "EHLO smtp.osdl.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964984AbXAGTg4 (ORCPT ); Sun, 7 Jan 2007 14:36:56 -0500 Date: Sun, 7 Jan 2007 11:35:40 -0800 (PST) From: Linus Torvalds To: Jon Smirl cc: Christoph Hellwig , Willy Tarreau , "H. Peter Anvin" , git@vger.kernel.org, nigel@nigel.suspend2.net, "J.H." , Randy Dunlap , Andrew Morton , Pavel Machek , kernel list , webmaster@kernel.org Subject: Re: How git affects kernel.org performance In-Reply-To: <9e4733910701071126r7931042eldfb73060792f4f41@mail.gmail.com> Message-ID: References: <1166297434.26330.34.camel@localhost.localdomain> <45A08269.4050504@zytor.com> <45A083F2.5000000@zytor.com> <20070107085526.GR24090@1wt.eu> <45A0B63E.2020803@zytor.com> <20070107090336.GA7741@1wt.eu> <20070107102853.GB26849@infradead.org> <9e4733910701071126r7931042eldfb73060792f4f41@mail.gmail.com> 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 Content-Length: 1513 Lines: 35 On Sun, 7 Jan 2007, Jon Smirl wrote: > > > > - proper read-ahead. Right now, even if the directory is totally > > contiguous on disk (just remove the thing that writes data to the > > files, so that you'll have empty files instead of 8kB files), I think > > we do those reads totally synchronously if the filesystem was mounted > > with directory hashing enabled. > > What's the status on the Adaptive Read-ahead patch from Wu Fengguang > ? That patch really helped with read ahead > problems I was having with mmap. It was in mm forever and I've lost > track of it. Won't help. ext3 does NO readahead at all. It doesn't use the general VFS helper routines to read data (because it doesn't use the page cache), it just does the raw buffer-head IO directly. (In the non-indexed case, it does do some read-ahead, and it uses the generic routines for it, but because it does everything by physical address, even the generic routines will decide that it's just doing random reading if the directory isn't physically contiguous - and stop reading ahead). (I may have missed some case where it does do read-ahead in the index routines, so don't take my word as being unquestionably true. I'm _fairly_ sure, but..) Linus - 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/