Skip to content
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

Increase UDP socket buffer sizes for Anemo networks #12230

Merged
merged 2 commits into from May 31, 2023
Merged

Conversation

aschran
Copy link
Contributor

@aschran aschran commented May 27, 2023

Description

Increases size of UDP socket buffers for sui, primary, and worker Anemo networks. This improves performance under high load.

Test Plan

Manual benchmarks & testing on private-testnet.


If your changes are not user-facing and not a breaking change, you can skip the following section. Otherwise, please indicate what changed, and then add to the Release Notes section as highlighted during the release process.

Type of Change (Check all that apply)

  • protocol change
  • user-visible impact
  • breaking change for a client SDKs
  • breaking change for FNs (FN binary must upgrade)
  • breaking change for validators or node operators (must upgrade binaries)
  • breaking change for on-chain data layout
  • necessitate either a data wipe or data migration

Release notes

Increases size of UDP socket buffers for sui, primary, and worker Anemo networks. This improves performance under high load.

NOTE: the buffer sizes requested after this change are larger than the default maximum buffer allowed by many operating systems. If the sui node binary logs errors about failure to set UDP socket buffer size, you may need to increase the maximum allowed by your OS.

Some examples:

  • Linux: sudo sysctl -w net.core.rmem_max=104857600; sudo sysctl -w net.core.wmem_max=104857600
  • MacOS: sudo sysctl -w kern.ipc.maxsockbuf=104857600

@vercel
Copy link

vercel bot commented May 27, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
offline-signer-helper ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 31, 2023 8:13pm
4 Ignored Deployments
Name Status Preview Comments Updated (UTC)
explorer ⬜️ Ignored (Inspect) May 31, 2023 8:13pm
explorer-storybook ⬜️ Ignored (Inspect) May 31, 2023 8:13pm
sui-wallet-kit ⬜️ Ignored (Inspect) May 31, 2023 8:13pm
wallet-adapter ⬜️ Ignored (Inspect) May 31, 2023 8:13pm

@aschran
Copy link
Contributor Author

aschran commented May 27, 2023

cc @tharbert Could you review the release notes? This is what we will need to communicate to all node/validator operators.

@aschran aschran merged commit 27c31b7 into main May 31, 2023
34 checks passed
@aschran aschran deleted the aschran/socketbuf branch May 31, 2023 20:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants