Merry Christmas & Happy 2027! Less downtime. More good times. Celebrating 13 years of sorlavit.com
Skip to content
Sorlavit KimIT Support, Network & Infrastructure Services Let’s talk

ปุ่มแปลไทยจะเปิดบทความผ่าน Google Translate เพื่อแปลอัตโนมัติ โดยคงโค้ดและคำสั่งไว้ตามต้นฉบับ

Network & Infrastructure / Linux Networking & Host Performance

Socket-buffer tuning and aggregate memory pressure

Increasing socket buffers improves one transfer but destabilizes a server with thousands of connections. Per-connection headroom can multiply into a significant aggregate memory requirement.

Compiled for Sorlavit Kim · Published · Updated · 2 min read

Environment and inputs: Linux network namespaces, host routing and network drivers; availability and semantics depend on kernel and driver versions. Diagnostic/design example; not tested on production equipment.

Collect the evidence

Measure actual socket memory, connection count, read/write behavior, RTT and memory pressure under concurrency. Distinguish configured maxima from currently allocated memory and application buffering.

Explain the result

Buffering can help fill a long path, but it does not remove flow-control or consumer bottlenecks. A tuning result from one connection may not scale to the production population.

Plan the fix

Set limits from workload and capacity evidence, including overload behavior and application queues. Prefer bounded growth with a realistic concurrency test over copying maximum values from a benchmark.

Check the result and rollback

Compare throughput, tail latency, reclaim activity and failure behavior at peak connections. Restore previous values if memory pressure or queueing harms the service more than larger buffers help it.

Share this article

Back to all articles