lkml.org 
[lkml]   [2009]   [Mar]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [patch 12/14] fs: dcache per-bucket dcache hash locking
From
Date
npiggin@suse.de writes:

> We can turn the dcache hash locking from a global dcache_hash_lock into
> per-bucket locking.

Per bucket locking is typically a bad idea because you get far too
many locks and you increase cache footprint with all of them. It's
typically better to use a second much smaller hash table that only has
locks (by just shifting the hash value down some more)
Just need to be careful to avoid too much false sharing.

-Andi

--
ak@linux.intel.com -- Speaking for myself only.


\
 
 \ /
  Last update: 2009-03-30 14:17    [from the cache]
©2003-2011 Jasper Spaans