Performance tuning
Global · server
integer · bytes (KiB units in samples)
recv_buffer_size
Override the kernel receive buffer size for sockets.
- Config key
recv_buffer_size- Scope
- Global · server
- Type
- integer · bytes (KiB units in samples)
- Default
- none
Sets the socket receive buffer. Larger buffers can improve throughput on high-bandwidth, high-latency links (a bigger TCP window) but consume more memory per connection. Leave unset to use the OS default.
⚡When to raise it
Bump it for bulk-transfer workloads over long-distance links. For lots of small connections the OS default is usually best.
recv_buffer_size = 512