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)
Tue, Apr 22, 1:23 AM
Unknown Object (File)
Mon, Apr 21, 10:07 PM
Unknown Object (File)
Sun, Apr 20, 10:21 PM
Unknown Object (File)
Sun, Apr 20, 9:33 PM
Unknown Object (File)
Fri, Apr 11, 12:53 PM
Unknown Object (File)
Mar 22 2025, 10:23 AM
Unknown Object (File)
Mar 12 2025, 9:05 PM
Unknown Object (File)
Feb 24 2025, 10:53 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.