From owner-freebsd-hackers Wed Mar 5 05:56:19 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id FAA18652 for hackers-outgoing; Wed, 5 Mar 1997 05:56:19 -0800 (PST) Received: from caipfs.rutgers.edu (root@caipfs.rutgers.edu [128.6.155.100]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id FAA18647 for ; Wed, 5 Mar 1997 05:56:15 -0800 (PST) Received: from jenolan.caipgeneral (jenolan.rutgers.edu [128.6.111.5]) by caipfs.rutgers.edu (8.8.5/8.8.5) with SMTP id IAA28087; Wed, 5 Mar 1997 08:54:57 -0500 (EST) Received: by jenolan.caipgeneral (SMI-8.6/SMI-SVR4) id IAA14114; Wed, 5 Mar 1997 08:54:45 -0500 Date: Wed, 5 Mar 1997 08:54:45 -0500 Message-Id: <199703051354.IAA14114@jenolan.caipgeneral> From: "David S. Miller" To: avalon@coombs.anu.edu.au CC: avalon@coombs.anu.edu.au, mingo@pc5829.hil.siemens.at, wong@rogerswave.ca, alan@cymru.net, imb@scgt.oz.au, dg@root.com, netdev@roxanne.nuclecu.unam.mx, hackers@freebsd.org In-reply-to: <199703051347.IAA27923@caipfs.rutgers.edu> (message from Darren Reed on Thu, 6 Mar 1997 00:45:26 +1100 (EDT)) Subject: Re: ok, final sockhash changes, new diff Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk From: Darren Reed Date: Thu, 6 Mar 1997 00:45:26 +1100 (EDT) > Extra silly cycles in the critical code path. Yes, if you were doing it all the time to make sure the table was a good size, but I was referring to doing it once - at boot. (I should ahve made myself more clear). You thus have to load the power of two size of the hash table from a kernel variable (thus a dead cycle as far as I'm concerned) every lookup and furthermore every other operation on the tables. But it is still a nice idea. People who truly want their machine to scream are probably best off the configure it via a macro at compile time and be done with it (as per Ingo's original suggestion). ---------------------------------------------//// Yow! 11.26 MB/s remote host TCP bandwidth & //// 199 usec remote TCP latency over 100Mb/s //// ethernet. Beat that! //// -----------------------------------------////__________ o David S. Miller, davem@caip.rutgers.edu /_____________/ / // /_/ ><