# Server optimization — Xeon/NVMe/64GB workload
vm.swappiness = 10
vm.vfs_cache_pressure = 200
vm.dirty_ratio = 30
vm.dirty_background_ratio = 5
vm.min_free_kbytes = 524288
vm.overcommit_memory = 1
vm.max_map_count = 1048576
kernel.numa_balancing = 0

net.core.somaxconn = 65535
net.core.rmem_max = 16777216
net.core.wmem_max = 16777216
net.core.netdev_max_backlog = 50000
net.ipv4.tcp_rmem = 4096 87380 16777216
net.ipv4.tcp_wmem = 4096 65536 16777216
net.ipv4.tcp_congestion_control = bbr
net.ipv4.tcp_fastopen = 3
net.ipv4.tcp_slow_start_after_idle = 0
net.core.default_qdisc = fq
net.ipv4.tcp_tw_reuse = 1
net.ipv4.ip_local_port_range = 1024 65535

fs.file-max = 10485760
fs.inotify.max_user_watches = 524288
fs.aio-max-nr = 1048576
