Skip to content

Instantly share code, notes, and snippets.

@jinoj
Forked from jayjanssen/gist:4039319
Created June 19, 2018 07:35
Show Gist options
  • Save jinoj/ffe2b13e38df3ad21132b06cc3bb9e27 to your computer and use it in GitHub Desktop.
Save jinoj/ffe2b13e38df3ad21132b06cc3bb9e27 to your computer and use it in GitHub Desktop.

Revisions

  1. @jayjanssen jayjanssen created this gist Nov 8, 2012.
    26 changes: 26 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,26 @@
    net.core.somaxconn = 32768
    net.ipv4.conf.all.send_redirects = 1
    net.ipv4.ip_nonlocal_bind = 1
    net.ipv4.tcp_abort_on_overflow = 0
    net.ipv4.tcp_fin_timeout = 10
    net.ipv4.tcp_keepalive_time = 300
    net.ipv4.tcp_max_orphans = 262144
    net.ipv4.tcp_max_syn_backlog = 16384
    net.ipv4.tcp_max_tw_buckets = 262144
    net.ipv4.tcp_mem = 200000    280000    300000
    net.ipv4.tcp_reordering = 3
    net.ipv4.tcp_rmem = 4096    87380    4120928
    net.ipv4.tcp_synack_retries = 3
    net.ipv4.tcp_syncookies = 1
    net.ipv4.tcp_syn_retries = 5
    net.ipv4.tcp_timestamps = 0
    net.ipv4.tcp_tw_recycle = 1
    net.ipv4.tcp_tw_reuse = 1
    net.ipv4.tcp_wmem = 4096    16384    4120928

    net.ipv4.netfilter.ip_conntrack_max = 10485760
    net.ipv4.netfilter.ip_conntrack_tcp_timeout_fin_wait = 30
    net.ipv4.netfilter.ip_conntrack_tcp_timeout_time_wait = 15
    net.netfilter.nf_conntrack_max = 10485760
    net.netfilter.nf_conntrack_tcp_timeout_fin_wait = 30
    net.netfilter.nf_conntrack_tcp_timeout_time_wait = 15