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, Mar 17, 12:26 AM
Unknown Object (File)
Jan 12 2024, 8:48 PM
Unknown Object (File)
Dec 20 2023, 3:06 AM
Unknown Object (File)
Oct 13 2023, 8:35 AM
Unknown Object (File)
Sep 3 2023, 8:22 PM
Unknown Object (File)
Aug 4 2023, 9:03 PM
Unknown Object (File)
Jul 22 2023, 11:13 PM
Unknown Object (File)
Jul 13 2023, 6:14 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
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.