-
Notifications
You must be signed in to change notification settings - Fork 973
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
De-dupe inbound SCP traffic #4544
Conversation
a70db72
to
96dfd0a
Compare
96dfd0a
to
fa043c9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for making this change; the performance improvements are awesome! I just found a few small things while reviewing.
6757bde
to
f1b8c80
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a couple renaming suggestions, looks good!
791f3e5
to
cc567b6
Compare
cc567b6
to
dc4ad77
Compare
The primary goal of this change is to reduce burden on the main thread scheduler by hashing and de-duping inbound SCP traffic. In simulations, we've observed duplicate SCP message consume quite a bit of main thread/scheduler capacity. With this change, the amount of duplicate SCP traffic core processes is reduced by ~50%. Another small change in this PR is to broadcast SCP messages immediately instead of scheduling them asynchronously - SCP traffic is high priority, so there's no reason to delay it like we do in master.
Attaching scheduler load comparison plus duplicate traffic inbound rate for comparison