as much as i like the multiplicative hash function, i think Linux should
go with Peter's shift-add function for these reasons:
1. it's simple
2. it works independent of the multiplication speed or word size of the
CPU, so we don't need an "architecture dependent" function
3. it works well enough
> At the moment the buffer cache doesn't like to grow much. In fact, it's hard
> to get it bigger than 7 MB and it's about 1.5 MB most of the time. Even the
> old hashfn should be able to put 1500 buffers into 65536 buckets...
it totally depends on the workload. i can get it to grow pretty large.
- Chuck Lever
-- corporate: <chuckl@netscape.com> personal: <chucklever@netscape.net> or <cel@monkey.org>The Linux Scalability project: http://www.citi.umich.edu/projects/linux-scalability/
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/