FreeBsd網絡性能優化方案sysctl

如下是阿盛的配置tcp

sysctl net.inet.tcp.msl=2000
sysctl net.inet.tcp.mssdflt=1460
sysctl net.inet.tcp.minmss=216
sysctl net.inet.icmp.icmplim=200
sysctl net.inet.icmp.drop_redirect=1
sysctl kern.ipc.somaxconn=32768
sysctl net.inet.ip.portrange.first=60000

對應的默認值spa

sysctl net.inet.tcp.msl=2000 #defa=30000
sysctl net.inet.tcp.mssdflt=1460 #defa=536
sysctl net.inet.tcp.minmss=216 #defa=216
sysctl net.inet.icmp.icmplim=200 #defa=0
sysctl net.inet.icmp.drop_redirect=1 #defa=0
sysctl kern.ipc.somaxconn=32768 #defa=128
sysctl net.inet.ip.portrange.first=60000 #defa=1024
相關文章
相關標籤/搜索