Re: [PATCH] New dcache / inode hash tuning patch

Andi Kleen (ak@suse.de)
Sat, 1 Mar 2003 10:08:39 +0100


> I wonder what would happen if you reordered the chains moving a 'found'
> dentry to the front of the chain? If this could be done without
> excessive locking it might help keep hot entries quickly accessable.
> This operation should be cheaper given you are using hlists.

You would need to fetch a spinlock for LRU, while the current lookup
runs completely lockless.

-Andi
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/