Last active
August 29, 2015 14:12
-
-
Save kometchtech/edca1e19d42af22e9d35 to your computer and use it in GitHub Desktop.
kvm host kernel tuning on Ubuntu 15.04
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
net.ipv6.conf.all.autoconf = 0 | |
net.ipv6.conf.all.forwarding = 1 | |
net.ipv6.conf.ovsbr0.forwarding = 1 | |
net.ipv6.conf.default.forwarding = 1 | |
net.ipv6.conf.all.accept_ra = 0 | |
net.ipv4.ip_forward = 1 | |
net.ipv4.conf.all.rp_filter = 0 | |
net.ipv4.conf.default.rp_filter = 0 | |
net.ipv6.conf.all.use_tempaddr = 2 | |
net.ipv6.conf.default.use_tempaddr = 2 | |
net.core.optmem_max = 65535 | |
net.core.rmem_max = 16777216 | |
net.core.wmem_max = 16777216 | |
net.core.rmem_default = 1048576 | |
net.core.wmem_default = 1048576 | |
net.ipv4.tcp_wmem = 10240 87380 16777216 | |
net.ipv4.tcp_rmem = 10240 87380 16777216 | |
net.ipv4.tcp_sack = 1 | |
net.ipv4.tcp_no_metrics_save = 1 | |
net.ipv4.tcp_moderate_rcvbuf = 1 | |
net.core.somaxconn = 4096 | |
net.core.netdev_max_backlog = 4096 | |
net.ipv4.tcp_congestion_control = htcp | |
vm.nr_hugepages = 512 | |
vm.zone_reclaim_mode = 0 | |
vm.vfs_cache_pressure = 50 | |
net.ipv4.tcp_mtu_probing = 1 | |
net.ipv4.tcp_fin_timeout = 60 | |
net.ipv4.tcp_tw_reuse = 1 | |
net.ipv4.tcp_tw_recycle = 0 | |
net.ipv4.tcp_timestamps = 1 | |
net.ipv4.tcp_window_scaling = 1 | |
net.ipv4.ip_local_port_range = 18000 65535 | |
net.ipv4.tcp_mtu_probing = 1 | |
kernel.sched_min_granularity_ns = 10000000 | |
kernel.sched_wakeup_granularity_ns = 15000000 | |
vm.dirty_ratio = 10 | |
vm.dirty_background_ratio = 5 | |
vm.swappiness = 10 | |
net.ipv4.conf.all.arp_filter = 1 | |
vm.nr_hugepages = 25000 | |
net.core.busy_poll = 50 | |
net.core.busy_read = 50 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
RHEL7 Tuning guideを一部取り入れ