Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Sat, 8 Dec 2001 21:22:29 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Sat, 8 Dec 2001 21:22:19 -0500 Received: from dsl-213-023-038-245.arcor-ip.net ([213.23.38.245]:44295 "EHLO starship.berlin") by vger.kernel.org with ESMTP id ; Sat, 8 Dec 2001 21:22:11 -0500 Content-Type: text/plain; charset=US-ASCII From: Daniel Phillips To: Jeremy Fitzhardinge Subject: Re: [reiserfs-dev] Re: Ext2 directory index: ALS paper and benchmarks Date: Sun, 9 Dec 2001 03:24:40 +0100 X-Mailer: KMail [version 1.3.2] Cc: Ragnar =?iso-8859-1?q?Kj=F8rstad?= , Hans Reiser , Linux Kernel List , reiserfs-dev@namesys.com In-Reply-To: <1007834523.2566.2.camel@ixodes.goop.org> In-Reply-To: <1007834523.2566.2.camel@ixodes.goop.org> 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 On December 8, 2001 07:02 pm, Jeremy Fitzhardinge wrote: > On Fri, 2001-12-07 at 07:51, Daniel Phillips wrote: > > I did try R5 in htree, and at least a dozen other hashes. R5 was the > > worst of the bunch, in terms of uniformity of distribution, and caused a > > measurable slowdown in Htree performance. (Not an order of magnitude, > > mind you, something closer to 15%.) > > Did you try the ReiserFS teahash? I wrote it specifically to address > the issue you mentioned in the paper of an attacker deliberately > generating collisions; the intention was that each directory (or maybe > filesystem) have its own distinct hashing key. Yes, I tried every hash in ReiserFS. Please have a look at Larry McVoy's 'linear congruential' hash in the bitkeeper code. It's decent. In fact, the only good hashes I've found after trolling all over the internet are that one, and the one I wrote, both based on combining a sequence of characters with a well-known pseudo-random number generation technique. -- 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/