Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Mon, 7 Oct 2002 15:20:28 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Mon, 7 Oct 2002 15:20:27 -0400 Received: from dsl-213-023-021-129.arcor-ip.net ([213.23.21.129]:32939 "EHLO starship") by vger.kernel.org with ESMTP id ; Mon, 7 Oct 2002 15:20:25 -0400 Content-Type: text/plain; charset=US-ASCII From: Daniel Phillips To: Chris Friesen , Andrew Morton Subject: Re: The reason to call it 3.0 is the desktop (was Re: [OT] 2.6 not 3.0 - (NUMA)) Date: Mon, 7 Oct 2002 21:21:28 +0200 X-Mailer: KMail [version 1.3.2] Cc: "Martin J. Bligh" , Oliver Neukum , Rob Landley , Linus Torvalds , linux-kernel@vger.kernel.org References: <3DA1D30E.B3255E7D@digeo.com> <3DA1D969.8050005@nortelnetworks.com> In-Reply-To: <3DA1D969.8050005@nortelnetworks.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Message-Id: Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1153 Lines: 32 On Monday 07 October 2002 20:58, Chris Friesen wrote: > Andrew Morton wrote: > > > Go into ext2_new_inode, replace the call to find_group_dir with > > find_group_other. Then untar a kernel tree, unmount the fs, > > remount it and see how long it takes to do a > > > > `find . -type f xargs cat > /dev/null' > > > > on that tree. If your disk is like my disk, you will achieve > > full disk bandwidth. > > Pardon my ignorance, but what's the difference between find_group_dir > and find_group_other, and why aren't we using find_group_other already > if its so much faster? These are the heuristics that determine where in the volume directory inodes are allocated: http://lxr.linux.no/source/fs/ext2/ialloc.c#L221 Ext2 likes to spread directory inodes around the volume so that there is room to keep the associated file blocks nearby. This interacts rather poorly with readahead. -- Daniel - 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/