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

From: Andi Kleen (ak@suse.de)
Date: Sat Mar 01 2003 - 04:08:39 EST


> 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/



This archive was generated by hypermail 2b29 : Fri Mar 07 2003 - 22:00:15 EST