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)
Fri, Apr 12, 12:07 PM
Unknown Object (File)
Fri, Apr 12, 11:53 AM
Unknown Object (File)
Fri, Apr 12, 11:53 AM
Unknown Object (File)
Fri, Apr 12, 11:38 AM
Unknown Object (File)
Mon, Apr 8, 9:10 AM
Unknown Object (File)
Mar 17 2024, 12:26 AM
Unknown Object (File)
Jan 12 2024, 8:48 PM
Unknown Object (File)
Dec 20 2023, 3:06 AM
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
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 39167
Build 36056: arc lint + arc unit

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.