Details
- Reviewers
kib mjg olce - Commits
- rG33355275247c: vnlru: avoid cache line contention
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Seems reasonable. Do you have any specific benchmark showing an actual improvement? Also, please add me as a reviewer for vnlru matters (or even anything related to the VFS).
It depends on the cache line arrangement you would have gotten. With this and together with D56892 and D56949, we recovered a 5% performance regression on Spec SFS 2008, after unrelated changes caused object layout to change slightly. That was on platforms with dual Xeon 8260 (2 packages * 24 cores * 2 SMT) and other similar platforms.
But there may be zero improvement if the layout would not have been "bad".
Also, please add me as a reviewer for vnlru matters (or even anything related to the VFS).
Ack.
Ok. Wasn't aware of the existence of Spec SFS. Given the description of what the benchmarks are about (CIFS & NFS) and considering the work it takes to recycle a vnode with respect to the simple calculations you are optimizing here, I'm really surprised you can see as much as 5% difference.
Ack.
Thanks.