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

BSD buffer sizes listed on https://github.com/quic-go/quic-go/wiki/UDP-Buffer-Sizes#bsd missing trailing '0' #4351

Closed
jimscard opened this issue Mar 4, 2024 · 3 comments

Comments

@jimscard
Copy link

jimscard commented Mar 4, 2024

The buffer sizes in the example command lines at the bottom of https://github.com/quic-go/quic-go/wiki/UDP-Buffer-Sizes#bsd are missing the final zero, so they are 10 times too small.

@marten-seemann
Copy link
Member

I don't see it. The number seems to be around 3 million, corresponding to a buffer size of ~2.5 MB, doesn't it?

@jimscard
Copy link
Author

jimscard commented Mar 6, 2024

Oh yeah, now that you mention it, there's more wrong on the page than I thought. You're right, it does correspond to about 2.5MB plus a 15% roundup. However, that's 10 times too small. It should be 25MB plus the round up.

If you follow the link on the page to the Cameron Sparr post, you'll see it says "It is highly recommended that you increase these OS limits to at least 25MB before trying to run UDP traffic to your server. 25MB is just a recommendation."

The non-BSD values on your page are a factor of too small as well. Sparr's recommendation for them is 26214400.

I noticed this when I copy & pasted the values from the quic-go page to my macbook and got a response that showed that the buffer size had gotten smaller. Turns out the default is kern.ipc.maxsockbuf: 8388608

@marten-seemann
Copy link
Member

We recently bumped buffer sizes in #4455.

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

No branches or pull requests

2 participants