Re: [PATCH] dcache: better name hash function

From: David Miller
Date: Tue Oct 27 2009 - 01:24:16 EST


From: Stephen Hemminger <stephen.hemminger@xxxxxxxxxx>
Date: Mon, 26 Oct 2009 22:19:44 -0700 (PDT)

> How important is saving the one division, versus getting better
> distribution.

80 cpu cycles or more on some processors. Cheaper to use
jenkins with a power-of-2 sized hash.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/