Created
December 28, 2014 10:11
-
-
Save kometchtech/118cc05bab460c781eb9 to your computer and use it in GitHub Desktop.
kvm guest kernel tuning CentOS7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# cat /etc/sysctl.d/kernel.conf | |
net.ipv4.ip_forward = 1 | |
net.ipv4.conf.default.rp_filter = 0 | |
net.ipv4.conf.default.accept_source_route = 0 | |
kernel.sysrq = 0 | |
kernel.core_uses_pid = 1 | |
net.ipv4.tcp_syncookies = 1 | |
net.ipv4.tcp_tw_reuse = 1 | |
net.ipv4.tcp_tw_recycle = 0 | |
net.ipv4.tcp_fin_timeout = 60 | |
kernel.msgmnb = 65536 | |
kernel.msgmax = 65536 | |
kernel.shmmax = 68719476736 | |
kernel.shmall = 4294967296 | |
net.ipv6.conf.all.accept_ra = 0 | |
net.core.somaxconn = 4096 | |
net.core.rmem_max = 16777216 | |
net.core.wmem_max = 16777216 | |
net.ipv4.tcp_rmem = 4096 349520 16777216 | |
net.ipv4.tcp_wmem = 4096 65536 16777216 | |
net.core.netdev_max_backlog = 4096 | |
net.ipv4.tcp_max_syn_backlog = 4096 | |
vm.swappiness = 0 | |
net.ipv4.tcp_congestion_control = htcp | |
kernel.perf_cpu_time_max_percent = 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment