Ubuntu 20.04.4
修改系统的文件描述符限制
设置网络接收缓冲区
Configuring open file limits UDP buffe
echo "* soft nofile 32000000" >> /etc/security/limits.conf
echo "* hard nofile 128000000" >> /etc/security/limits.conf
echo "fs.nr_open=128000000" >> /etc/sysctl.conf
echo "fs.file-max=128000000" >> /etc/sysctl.conf
echo "net.core.rmem_max=2097152" >> /etc/sysctl.conf
echo "net.core.rmem_default=209715" >> /etc/sysctl.conf
sysctl -p
参考
- Linux performance optimization
- System Configuration