On Sun, 25 Apr 1999, Peter Steiner wrote:> Here is an improved version of the multiplicative hash. It includes> some statistics (alt-SysRq-m). The size of the hash buffer can be> adjusted by changeing HASHBITS in the range of 10-15. On my system with> 64MB RAM a hash table size of 4096 entries is big enough> (#define HASHBITS 12). It's tested on 32 bit x86 processors, but I> tried to make it working on 64 bit systems too.

in real world tests, 31 - HASHBITS works better. but for the buffer cachein specific, i have found that 11 is the best shift value. however, thebest shift value can vary depending on the size of the hash table.