Created
June 25, 2015 22:01
-
-
Save shoaibi/1e7bb12a4c2c22a0086e to your computer and use it in GitHub Desktop.
My sysctl overrides
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
| # /etc/sysctl.d/99-shoaibi.conf | |
| fs.file-max = 2097152 | |
| fs.inotify.max_user_watches = 524288 | |
| kernel.hung_task_panic = 1 | |
| kernel.hung_task_timeout_secs = 300 | |
| kernel.msgmax = 65536 | |
| kernel.msgmnb = 65536 | |
| kernel.panic = 5 | |
| kernel.panic_on_oops = 1 | |
| kernel.pid_max = 65536 | |
| kernel.printk_ratelimit = 5 | |
| kernel.printk_ratelimit_burst = 10 | |
| kernel.shmall = 268435456 | |
| kernel.shmmax = 268435456 | |
| kernel.sysrq = 0 | |
| net.core.dev_weight = 64 | |
| net.core.netdev_max_backlog = 65536 | |
| net.core.optmem_max = 25165824 | |
| net.core.rmem_default = 31457280 | |
| net.core.rmem_max = 67108864 | |
| #net.core.somaxconn = 65536 | |
| net.core.wmem_default = 31457280 | |
| net.core.wmem_max = 67108864 | |
| net.ipv4.conf.all.bootp_relay = 0 | |
| net.ipv4.conf.all.log_martians = 1 | |
| net.ipv4.conf.all.proxy_arp = 0 | |
| net.ipv4.ip_forward = 1 | |
| #net.ipv4.ipfrag_high_thresh = 512000 | |
| net.ipv4.ipfrag_low_thresh = 446464 | |
| net.ipv4.ip_local_port_range = 10000 65000 | |
| net.ipv4.neigh.default.gc_interval = 30 | |
| net.ipv4.neigh.default.gc_thresh1 = 32 | |
| net.ipv4.neigh.default.gc_thresh2 = 1024 | |
| net.ipv4.neigh.default.gc_thresh3 = 2048 | |
| net.ipv4.neigh.default.proxy_qlen = 96 | |
| net.ipv4.neigh.default.unres_qlen = 6 | |
| net.ipv4.route.flush = 1 | |
| net.ipv4.tcp_congestion_control = cubic | |
| net.ipv4.tcp_ecn = 2 | |
| net.ipv4.tcp_fin_timeout = 10 | |
| net.ipv4.tcp_keepalive_intvl = 15 | |
| net.ipv4.tcp_keepalive_probes = 5 | |
| net.ipv4.tcp_keepalive_time = 300 | |
| net.ipv4.tcp_max_orphans = 16384 | |
| net.ipv4.tcp_max_syn_backlog = 30000 | |
| net.ipv4.tcp_max_tw_buckets = 1440000 | |
| net.ipv4.tcp_mem = 65536 131072 262144 | |
| net.ipv4.tcp_moderate_rcvbuf = 1 | |
| net.ipv4.tcp_mtu_probing=1 | |
| net.ipv4.tcp_no_metrics_save = 1 | |
| net.ipv4.tcp_orphan_retries = 0 | |
| net.ipv4.tcp_reordering = 3 | |
| net.ipv4.tcp_retries1 = 3 | |
| net.ipv4.tcp_retries2 = 15 | |
| net.ipv4.tcp_rfc1337 = 1 | |
| net.ipv4.tcp_rmem = 8192 87380 33554432 | |
| net.ipv4.tcp_sack = 0 | |
| net.ipv4.tcp_slow_start_after_idle = 0 | |
| net.ipv4.tcp_synack_retries = 2 | |
| net.ipv4.tcp_syncookies = 1 | |
| net.ipv4.tcp_timestamps = 0 | |
| net.ipv4.tcp_tw_recycle = 1 | |
| net.ipv4.tcp_tw_reuse = 1 | |
| net.ipv4.tcp_window_scaling = 1 | |
| net.ipv4.tcp_wmem = 8192 65536 33554432 | |
| net.ipv4.udp_mem = 65536 131072 262144 | |
| net.ipv4.udp_rmem_min = 16384 | |
| net.ipv4.udp_wmem_min = 16384 | |
| net.ipv6.conf.all.forwarding = 1 | |
| net.ipv6.route.flush = 1 | |
| net.unix.max_dgram_qlen = 50 | |
| sunrpc.tcp_slot_table_entries = 32 | |
| sunrpc.udp_slot_table_entries = 32 | |
| sys.net.ipv4.route.flush=1 | |
| vm.dirty_background_ratio=1 | |
| vm.dirty_expire_centisecs=1200 | |
| vm.dirty_ratio=10 | |
| vm.dirty_writeback_centisecs=1200 | |
| vm.min_free_kbytes = 65536 | |
| vm.mmap_min_addr = 4096 | |
| vm.overcommit_memory = 0 | |
| vm.overcommit_ratio = 0 | |
| vm.swappiness=10 | |
| vm.vfs_cache_pressure=50 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment