FastHandle is fast operation tools for infrastructure configurations and tests.
This shows you the differences between two versions of the page.
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/13 02:10] kurihara ↷ Page moved from conf:sysctl.conf.html to os:sysctl.conf.html |
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: | ||
- | ====== | + | ~~NOTOC~~ |
+ | [[os: | ||
+ | ====== / | ||
Line 6: | Line 8: | ||
<sxh bash toolbar: | <sxh bash toolbar: | ||
- | # | + | #============================================================================== |
# /etc/sysctl | # /etc/sysctl | ||
# -rw-r--r-- root root | # -rw-r--r-- root root | ||
+ | # | ||
+ | # Kernel Parameter Configuration | ||
# | # | ||
# Operation | # Operation | ||
Line 14: | Line 18: | ||
# | # | ||
# | # | ||
- | # | + | #============================================================================== |
- | ## Memory (vm) ############################################## | + | #------------------------------------------------------------------------------ |
+ | # Memory (vm) | ||
+ | #------------------------------------------------------------------------------ | ||
vm.swappiness = 0 # default 30 | vm.swappiness = 0 # default 30 | ||
vm.max_map_count = 300000 | vm.max_map_count = 300000 | ||
Line 23: | 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 34: | Line 39: | ||
# 60sec + 3sec * 9 = 567sec = 9.56min | # 60sec + 3sec * 9 = 567sec = 9.56min | ||
- | + | # tcp connection | |
- | # disable IPv6 | + | net.nf_conntrack_max |
- | net.ipv6.conf.all.disable_ipv6 = 1 | + | |
- | net.ipv6.conf.lo.disable_ipv6 = 1 | + | |
- | net.ipv6.conf.default.disable_ipv6 | + | |
# port exhaustion | # port exhaustion | ||
Line 49: | 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 | kernel.threads-max = 100000 | ||
kernel.pid_max = 131072 | kernel.pid_max = 131072 | ||
Line 58: | Line 66: | ||
+ | \\ | ||
+ | <WRAP box 90%> | ||
+ | <catlist ..: -noAddPageButton -smallHead> | ||
+ | </ | ||
+ | \\ | ||
+ | \\ | ||
+ | [[os: |
My Sites
SNS
Copyright (c) 2024 FastHandle - IT Operations Examples All Rights Reserved.