You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The default value for send/receive buffer size is 212 KiB1MiB, and the receive buffer auto-tuning is disabled by default now (note that this option is enabled by default before v2.4.0).
To optimize the memory usage in different systems, we can properly adjust the buffer size.
If you have enough memory resource available, you can set large buffer size, e.g., 2-4m, and even turn on the tcp-auto-tuning option. This operation will consume a lot RAM, but throughput would be increased.
In memory insufficient/sensitive system, it's recommended to set small buffer size, e.g., 16-64k. Small buffer size can reduce memory usage and sometimes it can even less 80% RAM compared to large buffer size.