Messages in this thread | | | From | Ed Tomlinson <> | Subject | Re: [PATCH] New dcache / inode hash tuning patch | Date | Sat, 1 Mar 2003 07:34:44 -0500 |
| |
On March 1, 2003 04:08 am, Andi Kleen wrote: > > 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.
You would have to lock the chain IF the dentry was not at the head. Would be interesting to see if this locking would hurt much - since hot dentries would not require a lock...
Ed
- 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/
| |