본문 바로가기

프로그래밍/리눅스

리눅스[linux] - tcp 성능 튜닝

반응형

#튜닝값

sysctl -w net.ipv4.tcp_fin_timeout=30

sysctl -w net.ipv4.tcp_keepalive_time=100

sysctl -w net.ipv4.tcp_window_scaling=0

sysctl -w net.ipv4.tcp_sack=0

sysctl -w net.ipv4.tcp_timestamps=0

sysctl -w net.ipv4.tcp_mem="97280 97792 98304"

sysctl -w net.ipv4.tcp_wmem="4096 65536 25165824"

sysctl -w net.ipv4.tcp_rmem="4096 25165824 25165824"

sysctl -w net.core.rmem_default=25165824

sysctl -w net.core.rmem_max=25165824

sysctl -w net.core.wmem_default=65536

sysctl -w net.core.wmem_max=25165824

sysctl -w net.ipv4.tcp_max_tw_buckets=1000000



hdparm -t /dev/sda1

hdparm -t /dev/sdb1

hdparm -t /dev/sdc1


hdparm -c -d /dev/sda1

hdparm -c -d /dev/sdb1

hdparm -c -d /dev/sdc1

hdparm -c -d /dev/sda5


#오리지날

sysctl -w net.ipv4.tcp_fin_timeout=60

sysctl -w net.ipv4.tcp_keepalive_time=7200

sysctl -w net.ipv4.tcp_window_scaling=1

sysctl -w net.ipv4.tcp_sack=1

sysctl -w net.ipv4.tcp_timestamps=1

sysctl -w net.ipv4.tcp_mem="49152 65536 98304"

sysctl -w net.ipv4.tcp_wmem="4096 16384 131072"

sysctl -w net.ipv4.tcp_rmem="4096 87380 174760"

sysctl -w net.core.rmem_default=110592

sysctl -w net.core.rmem_max=110592

sysctl -w net.core.wmem_default=110592

sysctl -w net.core.wmem_max=110592

sysctl -w net.ipv4.tcp_max_tw_buckets=180000


반응형