Created
June 12, 2023 16:00
-
-
Save liwsakilive/3a516e2c1cfae65905337b41912c89c0 to your computer and use it in GitHub Desktop.
linux kernel tuning
This file contains hidden or 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
fs.inotify.max_user_watches = 36864 | |
net.ipv4.conf.all.rp_filter = 0 | |
net.ipv4.conf.default.rp_filter = 0 | |
net.netfilter.nf_conntrack_max = 10000000 | |
vm.dirty_background_ratio = 5 | |
vm.dirty_ratio = 10 | |
vm.swappiness = 5 | |
net.bridge.bridge-nf-call-ip6tables = 1 | |
net.bridge.bridge-nf-call-iptables = 1 | |
net.bridge.bridge-nf-call-arptables = 1 | |
net.ipv4.neigh.default.gc_thresh1 = 4096 | |
net.ipv4.neigh.default.gc_thresh2 = 8192 | |
net.ipv4.neigh.default.gc_thresh3 = 16384 | |
net.ipv4.route.gc_thresh = 16384 | |
net.ipv4.neigh.default.gc_interval = 60 | |
net.ipv4.neigh.default.gc_stale_time = 120 | |
net.ipv6.neigh.default.gc_thresh1 = 4096 | |
net.ipv6.neigh.default.gc_thresh2 = 8192 | |
net.ipv6.neigh.default.gc_thresh3 = 16384 | |
net.ipv6.route.gc_thresh = 16384 | |
net.ipv6.neigh.default.gc_interval = 60 | |
net.ipv6.neigh.default.gc_stale_time = 120 | |
fs.aio-max-nr = 131072 | |
net.ipv4.conf.all.accept_source_route = 0 | |
net.ipv4.conf.default.accept_source_route = 0 | |
net.ipv4.icmp_echo_ignore_broadcasts = 1 | |
net.ipv4.conf.all.send_redirects = 0 | |
net.ipv4.conf.default.send_redirects = 0 | |
net.ipv6.conf.all.accept_source_route = 0 | |
net.ipv4.ip_forward = 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment