Sysctl Fine Network Tuning


net.ipv4.tcp_rmem  =   16384    122880   204800
net.ipv4.tcp_wmem =  16384     122880   204800
net.ipv4.tcp_mem   =  1048576  1572864 2097152

net.ipv4.tcp_max_tw_buckets = 80000
net.core.wmem_max = 256000
net.core.rmem_max = 256000
net.core.rmem_default = 204800
net.core.wmem_default = 204800
net.core.optmem_max = 20000

net.ipv4.netfilter.ip_conntrack_max = 131072

net.ipv4.tcp_keepalive_time = 600
net.ipv4.tcp_fin_timeout = 30
net.ipv4.tcp_sack = 0
net.ipv4.tcp_window_scaling = 0
net.ipv4.icmp_echo_ignore_broadcasts = 1
net.ipv4.tcp_timestamps = 0
net.ipv4.tcp_max_syn_backlog = 4096
net.ipv4.tcp_rfc1337 = 0
net.core.netdev_max_backlog = 18000
net.ipv4.tcp_syncookies = 1

웹서비스용도로 많은 환경변수 및 네트워크 여건등을 고려하여 오랜기간 튜닝에 걸쳐 최적화된값이다.

300tps 이하/ 만1천 동시접속 소켓 연결수 이하에 최적화 되어있고, 100Mbps Ethernet 전용이다.

(커넥션이 늘어날 경우 ip_conntrack_max 를 증가해줘야한다. iptables등으로 방화벽을 사용하는 경우에말이다)
크리에이티브 커먼즈 라이센스
Creative Commons License
이올린에 북마크하기(0) 이올린에 추천하기(0)

Posted by LeCieL

2006/12/12 14:34 2006/12/12 14:34
, , ,
Response
No Trackback , No Comment
RSS :
http://cl.dgtalx.net/rss/response/79

Trackback URL : http://cl.dgtalx.net/trackback/79

« Previous : 1 : ... 111 : 112 : 113 : 114 : 115 : 116 : 117 : 118 : 119 : ... 189 : Next »

Archives

Calendar

«   2012/02   »
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29