From: "J. Bruce Fields" Subject: Re: Re: An interesting performance thing ? Date: Thu, 15 Dec 2005 09:49:01 -0500 Message-ID: <20051215144901.GD14973@fieldses.org> References: <00b901c600db$5d374960$1500000a@americas.hpqcorp.net> <17312.39940.985507.704832@cse.unsw.edu.au> <43A0A0D5.4040804@citi.umich.edu> <018401c60108$c9477f30$1500000a@americas.hpqcorp.net> <17312.45710.867019.969182@cse.unsw.edu.au> <20051215023256.GA22951@fieldses.org> <020a01c60133$3d8fc530$1500000a@americas.hpqcorp.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Neil Brown , cel@citi.umich.edu, wli@holomorphy.com, nfs@lists.sourceforge.net Return-path: Received: from sc8-sf-mx1-b.sourceforge.net ([10.3.1.91] helo=mail.sourceforge.net) by sc8-sf-list2.sourceforge.net with esmtp (Exim 4.30) id 1EmuPx-00042R-1c for nfs@lists.sourceforge.net; Thu, 15 Dec 2005 06:49:13 -0800 Received: from mail.fieldses.org ([66.93.2.214] helo=pickle.fieldses.org) by mail.sourceforge.net with esmtps (TLSv1:AES256-SHA:256) (Exim 4.44) id 1EmuPs-0005yo-CM for nfs@lists.sourceforge.net; Thu, 15 Dec 2005 06:49:09 -0800 To: Iozone In-Reply-To: <020a01c60133$3d8fc530$1500000a@americas.hpqcorp.net> Sender: nfs-admin@lists.sourceforge.net Errors-To: nfs-admin@lists.sourceforge.net List-Unsubscribe: , List-Id: Discussion of NFS under Linux development, interoperability, and testing. List-Post: List-Help: List-Subscribe: , List-Archive: On Wed, Dec 14, 2005 at 10:51:40PM -0600, Iozone wrote: > One of the interesting things I noticed is that the general > purpose hash_long() function may not be as optimal > as a more focused hash_IP_addr() function might be, > even if GOLDEN were GOLDEN :-) And, trying > to smash 128 bit IPV6 addresses into a 8 bit hash > value, that is somehow uniformly distributed, well, > that's going to be quite a neat trick, and making it > work for 32 bit, 64, and 128 bit objects, with uniform > distribution over a variable number of output bits, > is approaching magical. I'm not so pessimistic, but I'm also not expert enough about hash functions to know how much magic is reasonable to expect out of a good one. Time to pull out Knuth, maybe. There might also be an argument for experimenting with different data structures. I'd expect high temporal locality--in typical situations a server with lots of clients may have only a few that are active at a particular time--so one of those balanced trees that migrates recently looked-up items to the top might be helpful. Aside from seeing the race condition triggered, have you done any profiling to make sure this is actually a big problem, even with the current worst-case linear-search behaviour? --b. ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ NFS maillist - NFS@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nfs