Page MenuHomeFreeBSD

siftr: three changes that improve performance
ClosedPublic

Authored by cc on May 27 2023, 1:06 PM.
Tags
None
Referenced Files
F150050975: D40302.diff
Sun, Mar 29, 12:29 AM
F150033767: D40302.id122514.diff
Sat, Mar 28, 9:36 PM
Unknown Object (File)
Sat, Mar 14, 4:15 PM
Unknown Object (File)
Mon, Mar 9, 3:12 PM
Unknown Object (File)
Tue, Mar 3, 6:32 AM
Unknown Object (File)
Fri, Feb 27, 7:26 PM
Unknown Object (File)
Feb 16 2026, 3:44 AM
Unknown Object (File)
Feb 14 2026, 6:45 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.