星期二, 4月 24, 2012

Linux maximum sockets tuning

紀錄一下, Linux maximum sockets tuning的方法,
如果linux 當作NAS server 時有可能會用到

Linux sockets tuning (for concurrent RPC services (nfs , cifs server) )
·                  透過以下調整 可以加大到 470 connections , 如果要再更多 , 可以放大port range : net.ipv4.ip_local_port_range = 15000 61000  , 縮小net.ipv4.tcp_fin_timeout
·                  net.ipv4.ip_local_port_range = 32768 61000
·                  net.ipv4.tcp_fin_timeout = 60 This basically means your system cannot guarantee more than (61000 - 32768) / 60 = 470 sockets at any given time. If you are not happy with that, you could begin with increasing the port_range. Setting the range to 15000 61000 is pretty common these days. You could further increase the availability by decreasing the fin_timeout. Suppose you do both, you should see over 1500 outbound connections, more readily.




沒有留言:

LinkWithin-相關文件

Related Posts Plugin for WordPress, Blogger...