Page MenuHomeFreeBSD

vnlru: avoid cache line contention
ClosedPublic

Authored by rlibby on Mon, May 11, 7:43 PM.
Tags
None
Referenced Files
F157169920: D56951.diff
Tue, May 19, 12:12 AM
F157142021: D56951.diff
Mon, May 18, 5:48 PM
Unknown Object (File)
Sun, May 17, 11:37 PM
Unknown Object (File)
Sun, May 17, 10:03 PM
Unknown Object (File)
Sun, May 17, 4:56 PM
Unknown Object (File)
Sun, May 17, 4:55 PM
Unknown Object (File)
Sun, May 17, 2:06 AM
Unknown Object (File)
Sat, May 16, 7:57 PM
Subscribers

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision is now accepted and ready to land.Mon, May 11, 9:33 PM

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).

Seems reasonable. Do you have any specific benchmark showing an actual improvement?

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.

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.

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.

This revision was automatically updated to reflect the committed changes.