Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Fri, 28 Feb 2003 13:48:54 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Fri, 28 Feb 2003 13:48:54 -0500 Received: from ns.suse.de ([213.95.15.193]:43013 "EHLO Cantor.suse.de") by vger.kernel.org with ESMTP id ; Fri, 28 Feb 2003 13:48:51 -0500 Date: Fri, 28 Feb 2003 19:59:10 +0100 From: Andi Kleen To: Linus Torvalds Cc: Andi Kleen , linux-kernel@vger.kernel.org, lse-tech@projects.sourceforge.net Subject: Re: [PATCH] New dcache / inode hash tuning patch Message-ID: <20030228185910.GA5694@wotan.suse.de> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1420 Lines: 31 On Fri, Feb 28, 2003 at 10:47:38AM -0800, Linus Torvalds wrote: > Right now the dcache hash is often something like 17 bits - and we could > easily make it so that roughly "half" the bits would be based purely on > the directory. That would still give each directory ~8 bits worth of > "local hashing", which is fairly reasonable. Ok I will see if that helps. > > > I believe my patch with a bit more tweaking (my current 64K hash table > > seems to be too small) is suitable even for an soon to be stable > > kernel. > > Quite frankly, right now the only report I've seen about your patch is > that it made things slightly _slower_. Actually that's not quite true. The report had a completely different profile (lots of other functions had different percentages), so it likely wasn't a comparable workload. I also don't think the NUMAQs are a good test platform for this because they have 2MB of fast cache per CPU, while the typical linux multiprocessor machine has much less. Yes you can fit an 1MB hash table into a 2 MB cache.... I'll generate some new numbers here locally over the weekend on P4, but I only have a dual to test on and see how it performs. -Andi - 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/