Tune TCP: increase the backlog

Increase the listen and SYN backlogs for services with many connections.

sysctl -w net.core.somaxconn=65535 net.ipv4.tcp_max_syn_backlog=65535

tool
linux133 commands
tags
linuxnetworkkernel

More linux commands

  • sysctl -w net.core.default_qdisc=fq net.ipv4.tcp_congestion_control=bbr

    Switch to Google's BBR congestion control for better throughput.

  • ss -ulnp

    List all listening UDP sockets with process info.

  • taskset -cp 0,1 <pid>

    Pin a running process to CPU cores 0 and 1.

  • watch -n1 'cat /proc/interrupts | head -30'

    Show interrupt counts per CPU, updated every second.

  • cat /proc/<pid>/limits

    Show hard and soft resource limits of a running process.

all 133 linux commands