Page MenuHomeFreeBSD

netgraph/ng_bridge: Avoid cache thrashing
ClosedPublic

Authored by donner on Feb 11 2021, 11:12 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Dec 1, 8:58 PM
Unknown Object (File)
Nov 25 2024, 6:46 PM
Unknown Object (File)
Nov 25 2024, 2:23 PM
Unknown Object (File)
Nov 23 2024, 7:11 AM
Unknown Object (File)
Nov 21 2024, 11:08 AM
Unknown Object (File)
Nov 20 2024, 6:01 PM
Unknown Object (File)
Nov 19 2024, 3:50 PM
Unknown Object (File)
Nov 14 2024, 2:19 PM
Subscribers

Details

Summary

Hint the compiler, that the branch is taken at most once per second.
Only in this case the memory line needs to be written. This will
reduce the amount of cache trashing during forward of most frames.

Suggested by: @zec

Diff Detail

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

Event Timeline

donner retitled this revision from netgraph&/ng_bridge: Avoid cache thrashing to netgraph/ng_bridge: Avoid cache thrashing.Feb 11 2021, 11:13 PM
donner added a reviewer: network.

Rebase after other changes.

This revision is now accepted and ready to land.May 13 2021, 5:00 PM
This revision was automatically updated to reflect the committed changes.