linux 内核 优化

kevin.Zhu 发布于:2013-1-16 12:55 分类:Mysql  有 12 人浏览,获得评论 0 条  

net.core.somaxconn = 262144

net.ipv4.tcp_max_orphans = 262144

net.ipv4.tcp_tw_reuse = 1

net.ipv4.tcp_syncookies = 1

net.ipv4.tcp_tw_recycle = 1

net.ipv4.tcp_fin_timeout = 10

net.ipv4.tcp_keepalive_time = 60

net.ipv4.tcp_max_syn_backlog = 4000

net.ipv4.tcp_max_tw_buckets = 5000

net.ipv4.ip_local_port_range = 1024 65000

fs.file-max = 655350

 vm.swappiness = 20



net.ipv4.ip_forward = 1