Skip to content

Instantly share code, notes, and snippets.

@drconopoima
Last active March 24, 2023 22:52
Show Gist options
  • Save drconopoima/8d60e3e4e08e85d1ae6f3007e46ea27f to your computer and use it in GitHub Desktop.
Save drconopoima/8d60e3e4e08e85d1ae6f3007e46ea27f to your computer and use it in GitHub Desktop.
fs.file-max = 2097152
fs.inotify.max_user_watches = 524288
fs.xfs.xfssyncd_centisecs = 10000
kernel.core_pattern = /dev/null
kernel.dmesg_restrict = 1
kernel.kexec_load_disabled = 1
kernel.kptr_restrict = 2
kernel.nmi_watchdog = 0
kernel.printk = 3 3 3 3
kernel.sched_pelt_multiplier = 2
kernel.sched_rt_runtime_us = 980000
kernel.unprivileged_userns_clone = 1
net.core.default_qdisc = cake
net.core.netdev_max_backlog = 16384
net.core.optmem_max = 65536
net.core.rmem_default = 1048576
net.core.rmem_max = 16777216
net.core.somaxconn = 8192
net.core.wmem_default = 1048576
net.core.wmem_max = 16777216
net.ipv4.conf.all.accept_redirects = 0
net.ipv4.conf.all.rp_filter = 1
net.ipv4.conf.all.secure_redirects = 0
net.ipv4.conf.all.send_redirects = 0
net.ipv4.conf.default.accept_redirects = 0
net.ipv4.conf.default.rp_filter = 1
net.ipv4.conf.default.secure_redirects = 0
net.ipv4.conf.default.send_redirects = 0
net.ipv4.tcp_adv_win_scale = -2
net.ipv4.tcp_collapse_max_bytes = 6291456
net.ipv4.tcp_congestion_control = bbr2
net.ipv4.tcp_fastopen = 3
net.ipv4.tcp_notsent_lowat = 131072
net.ipv4.tcp_rfc1337 = 1
net.ipv4.tcp_rmem = 8192 262144 536870912
net.ipv4.tcp_syncookies = 1
net.ipv4.tcp_wmem = 4096 16384 536870912
net.ipv4.udp_rmem_min = 8192
net.ipv4.udp_wmem_min = 8192
net.ipv6.conf.all.accept_redirects = 0
net.ipv6.conf.default.accept_redirects = 0
vm.dirty_background_ratio = 5
vm.dirty_ratio = 3
vm.dirty_writeback_centisecs = 1500
vm.max_map_count = 16777216
vm.page-cluster = 0
vm.swappiness = 30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment