FastHandle - IT Operations Examples

FastHandle is fast operation tools for infrastructure configurations and tests.

User Tools

Site Tools


os:linux:set:kernel:etc_sysctl.conf.html



Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
os:linux:set:kernel:etc_sysctl.conf.html [2017/11/18 01:26]
kurihara [/etc/sysctl.conf]
os:linux:set:kernel:etc_sysctl.conf.html [2018/02/04 23:24]
kurihara ↷ Links adapted because of a move operation
Line 1: Line 1:
-====== Configuration of /etc/sysctl.conf ======+~~NOTOC~~ 
 +[[os:linux:set:index.html]] 
 +====== /etc/sysctl.conf======
  
  
Line 6: Line 8:
  
 <sxh bash toolbar:false gutter:false> <sxh bash toolbar:false gutter:false>
-#=======================================================+#==============================================================================
 # /etc/sysctl # /etc/sysctl
 # -rw-r--r-- root root # -rw-r--r-- root root
Line 16: Line 18:
 #     reflect : syctl -p #     reflect : syctl -p
 # #
-#========================================================+#==============================================================================
  
  
-## Memory (vm)  ###############################################+#------------------------------------------------------------------------------ 
 +# Memory (vm)  
 +#------------------------------------------------------------------------------
 vm.swappiness = 0  # default 30 vm.swappiness = 0  # default 30
 vm.max_map_count = 300000  # default 65530 vm.max_map_count = 300000  # default 65530
Line 25: Line 29:
  
  
- +#------------------------------------------------------------------------------ 
- +# Network 
- +#------------------------------------------------------------------------------ 
-## TCP (net) ################################################## +# TCP keepalive
-keepalive+
 net.ipv4.tcp_keepalive_time = 60  # defautl 7200 net.ipv4.tcp_keepalive_time = 60  # defautl 7200
 net.ipv4.tcp_keepalive_intvl = 3  # default 75 net.ipv4.tcp_keepalive_intvl = 3  # default 75
Line 36: Line 39:
 # 60sec + 3sec * 9 = 567sec = 9.56min # 60sec + 3sec * 9 = 567sec = 9.56min
  
- +tcp connection 
-disable IPv6 +net.nf_conntrack_max 1048576
-net.ipv6.conf.all.disable_ipv6 = 1 +
-net.ipv6.conf.lo.disable_ipv6 = 1 +
-net.ipv6.conf.default.disable_ipv6 1+
  
 # port exhaustion # port exhaustion
Line 51: Line 51:
 net.ipv4.tcp_tw_reuse = 1 net.ipv4.tcp_tw_reuse = 1
  
 +# disable IPv6 (CentOS7)
 +net.ipv6.conf.all.disable_ipv6 = 1
 +net.ipv6.conf.lo.disable_ipv6 = 1
 +net.ipv6.conf.default.disable_ipv6 = 1
  
  
-## Kernel  ####################################################+#------------------------------------------------------------------------------ 
 +# Kernel 
 +#------------------------------------------------------------------------------
 kernel.threads-max = 100000  # default 5782 kernel.threads-max = 100000  # default 5782
 kernel.pid_max = 131072   # default 32768 kernel.pid_max = 131072   # default 32768
Line 60: Line 66:
  
  
 +\\
 +<WRAP box 90%>
 +<catlist ..: -noAddPageButton -smallHead>
 +</WRAP>
  
 +\\
 +\\
 +[[os:linux:set:index.html]]


os/linux/set/kernel/etc_sysctl.conf.html.txt · Last modified: 2018/02/17 01:43 by kurihara