Page MenuHomeFreeBSD

siftr: three changes that improve performance
ClosedPublic

Authored by cc on May 27 2023, 1:06 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Apr 14, 4:58 AM
Unknown Object (File)
Mar 30 2024, 9:33 AM
Unknown Object (File)
Mar 15 2024, 1:12 AM
Unknown Object (File)
Mar 9 2024, 9:36 PM
Unknown Object (File)
Dec 23 2023, 4:23 AM
Unknown Object (File)
Dec 22 2023, 7:29 PM
Unknown Object (File)
Dec 12 2023, 8:19 AM
Unknown Object (File)
Dec 9 2023, 10:43 PM

Details

Summary

(1) use inp_flowid or a new packet hash for a flow identification
(2) cache constant connection info into struct flow_hash_node
(3) use compressed notation for IPv6 address representation

Test Plan

test result: test result of D40302
This patch brings about +6% ~ +8% better performance for the IPv4 traffic and about +12% ~ +17% better performance for the IPv6 traffic.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 51755
Build 48646: arc lint + arc unit

Event Timeline

cc requested review of this revision.May 27 2023, 1:06 PM
share/man/man4/siftr.4
86
  1. Please add a space between ) and f.
  2. The format change of the IPv6 addresses is not mentioned in the commit message.
share/man/man4/siftr.4
86

I forgot: I think you can also remove the last entry in the BUGS section

update based on comments

cc retitled this revision from siftr: two changes that improve performance to siftr: three changes that improve performance.May 29 2023, 10:33 AM
cc edited the summary of this revision. (Show Details)
This revision is now accepted and ready to land.May 29 2023, 12:43 PM
cc marked 2 inline comments as done.May 29 2023, 1:09 PM

Thank you Michael for this review!

This revision was automatically updated to reflect the committed changes.