Increase maximum socket receive and send buffer size (#1964)#1968
Merged
agners merged 1 commit intohome-assistant:devfrom Jun 8, 2022
Merged
Conversation
…1964) Some applications try to increase the buffers for performance reason. The QUIC Go implementation for instance tries to request a 2048 kiB buffer size. The kernel default depends on skubuf size (which is architecture dependent), but it is memory size independet and typically around 200 kiB (see [1]). Other network tuning guides suggest 16MiB for 1GB ethernet, as well as changing the default as well as maximum bufffer size (see [2]). This conservatively increases the maximum buffer size to 4MiB. [1]: https://elixir.bootlin.com/linux/v5.15.45/source/include/net/sock.h#L2742 [2]: https://nateware.com/2013/04/06/linux-network-tuning-for-2013/
jens-maus
added a commit
to OpenCCU/OpenCCU
that referenced
this pull request
Jun 8, 2022
/etc/sysctl.conf which increases net.core.Xmem_max to 4 MiB to potentially increase the network performance. Also added an increase of the allowed IGMP memberships to 1024 to provide more room for addons to potentially come up with own IGMP membership uses (cf. home-assistant/operating-system#1968).
agners
added a commit
that referenced
this pull request
Jun 8, 2022
Some applications try to increase the buffers for performance reason. The QUIC Go implementation for instance tries to request a 2048 kiB buffer size. The kernel default depends on skubuf size (which is architecture dependent), but it is memory size independet and typically around 200 kiB (see [1]). Other network tuning guides suggest 16MiB for 1GB ethernet, as well as changing the default as well as maximum bufffer size (see [2]). This conservatively increases the maximum buffer size to 4MiB. [1]: https://elixir.bootlin.com/linux/v5.15.45/source/include/net/sock.h#L2742 [2]: https://nateware.com/2013/04/06/linux-network-tuning-for-2013/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Some applications try to increase the buffers for performance reason. The
QUIC Go implementation for instance tries to request a 2048 kiB buffer
size.
The kernel default depends on skubuf size (which is architecture
dependent), but it is memory size independet and typically around 200 kiB
(see 1).
Other network tuning guides suggest 16MiB for 1GB ethernet, as well as
changing the default as well as maximum bufffer size (see 2). This
conservatively increases the maximum buffer size to 4MiB.