Changes between Initial Version and Version 1 of sysctl


Ignore:
Timestamp:
03/17/15 17:48:58 (10 years ago)
Author:
sky
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • sysctl

    v1 v1  
     1= System configuration & Kernel tweaks =
     2
     3参数优化:/etc/sysctl.conf
     4{{{
     5net.ipv4.ip_default_ttl = 255
     6net.ipv4.icmp_echo_ignore_broadcasts = 1
     7net.ipv4.icmp_ignore_bogus_error_responses = 1
     8
     9net.ipv4.tcp_max_tw_buckets = 262144
     10net.ipv4.ip_local_port_range = 1024  65535
     11
     12# Do not use swap ASAP
     13vm.swappiness = 0
     14
     15# TCP socket keepalive check every minute, if fail check every 10 seconds and 3 times
     16net.ipv4.tcp_keepalive_time = 60
     17net.ipv4.tcp_keepalive_intvl = 10
     18net.ipv4.tcp_keepalive_probes = 3
     19
     20net.ipv4.tcp_fin_timeout = 30
     21}}}
     22
     23参数优化:/etc/security/limits.conf
     24{{{
     25*   -   nofile      65535
     26*   -   nproc       65535
     27}}}
     28
     29更多的参数优化,可参考如下:
     30http://tengine.taobao.org/document/benchmark.html
     31