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)
Sep 24 2024, 4:08 AM
Unknown Object (File)
Sep 20 2024, 1:17 PM
Unknown Object (File)
Sep 19 2024, 10:09 AM
Unknown Object (File)
Sep 16 2024, 10:16 PM
Unknown Object (File)
Sep 16 2024, 12:33 PM
Unknown Object (File)
Sep 16 2024, 10:51 AM
Unknown Object (File)
Sep 15 2024, 4:23 PM
Unknown Object (File)
Sep 15 2024, 2:11 AM

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 51735
Build 48626: 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.