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

Reduce udp read/write buffer sizes #3680

Merged
merged 1 commit into from
Apr 8, 2019

Conversation

sakridge
Copy link
Member

@sakridge sakridge commented Apr 8, 2019

Problem

With Ubuntu 18.04, these large values cause packet errors and mess up the system.

Summary of Changes

Lower rmem/wmem sizes.

Fixes #

With 18.04, these large values cause packet errors and mess up the system.
@sakridge sakridge merged commit 20a2c59 into solana-labs:master Apr 8, 2019
@sakridge sakridge deleted the reduce-rmem-wmem branch April 8, 2019 22:21
@@ -88,16 +88,16 @@ tune_system() {
# test the existence of the sysctls before trying to set them
# go ahead and return true and don't exit if these calls fail
sysctl net.core.rmem_max 2>/dev/null 1>/dev/null &&
sudo sysctl -w net.core.rmem_max=1610612736 1>/dev/null 2>/dev/null
sudo sysctl -w net.core.rmem_max=161061273 1>/dev/null 2>/dev/null
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sakridge, what's the significance of this magic number? Just dropping the least significant digit seems weird.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

only significance is that it works a lot better than the other number.

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.

3 participants