[lkml]   [2001]   [Feb]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: dentry cache order 7 is broken
In article <>,
dean gaudet <> wrote:
>if you've got 512Mb of RAM you end up with a dentry cache of order 7 --
>65536 entries.
>this results in a D_HASHBITS of 16. if you look at d_hash it contains
>this code:
> hash = hash ^ (hash >> D_HASHBITS) ^ (hash >> D_HASHBITS*2);


Just remove the third part altogether. The "hash" is only 32 bits
anyway (even on 64-bit platforms, as we don't want to blow up the dentry
size unnecessarily). And with most machines with reasonable memory, you
already get fine distribution with just two terms (ie you don't lose any
bits), and it speeds it up and avoids the problem you see.


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:12    [W:0.097 / U:0.188 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site