Ubuntu Tcp/Ip Tuning

큰 TCP / IP 버퍼 크기를 설정하면 네트워크 하드웨어의 능력을있는 그대로 큰 파일을 신속하게 전송되도록 도움을 줄 수 있습니다. 여러분의 우분투 기반 컴퓨터 용량이 큰 파일을 자주 전송하는 네트워크에있는 경우, 귀하의 네트워크의 성능이 우분투의 기본 TCP / IP 버퍼 크기를 outstrips 것을 알 수 있습니다. 이러한 상황이 발생하는 경우, 우분투는은 전송 속도를 느리게하는 흐름 제어를 사용하는 강제 수 있습니다. 이것은 파일 전송의 성능을 방해하실 수 있습니다. 네트워크를 통해 대용량 파일 전송에 병목 역할로부터 컴퓨터를 방지하기 위해 우분투에서 TCP / IP 버퍼 크기를 늘리십시오.

Like most modern OSes, Linux now does a good job of auto-tuning the TCP buffers, but the default maximum Linux TCP buffer sizes are too small. The following settings are recommended:

sudo nano /etc/sysctl.cnf

아래 코드 추가

# increase TCP max buffer size setable using setsockopt()
# 16 MB with a few parallel streams is recommended for most 10G paths
# 32 MB might be needed for some very long end-to-end 10G or 40G paths
net.core.rmem_max = 16777216 
net.core.wmem_max = 16777216 
# increase Linux autotuning TCP buffer limits 
# min, default, and max number of bytes to use
# (only change the 3rd value, and make it 16 MB or more)
net.ipv4.tcp_rmem = 4096 87380 16777216
net.ipv4.tcp_wmem = 4096 65536 16777216
# recommended to increase this for 10G NICS
net.core.netdev_max_backlog = 30000
# these should be the default, but just to be sure
net.ipv4.tcp_timestamps = 1
net.ipv4.tcp_sack = 1

설정 등록

sudo sysctl -p
누구나 수정하실 수 있습니다. 문법은 Formatting Syntax참조하세요.