Created
June 3, 2010 16:22
-
-
Save kovyrin/424091 to your computer and use it in GitHub Desktop.
This file contains 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
#-------------------------------------------------------------- | |
# Networking setup | |
# | |
net.ipv4.ip_forward = 1 | |
net.ipv4.conf.default.rp_filter = 0 | |
net.ipv4.conf.default.accept_source_route = 0 | |
kernel.core_uses_pid = 1 | |
net.ipv4.ip_local_port_range = 1024 65000 | |
net.core.somaxconn = 262144 | |
net.core.netdev_max_backlog = 25000 | |
net.ipv4.tcp_max_syn_backlog = 262144 | |
net.ipv4.tcp_max_orphans = 262144 | |
net.ipv4.tcp_synack_retries = 3 | |
net.ipv4.route.max_size = 262144 | |
net.ipv4.neigh.default.gc_thresh1 = 1024 | |
net.ipv4.neigh.default.gc_thresh2 = 2048 | |
net.ipv4.neigh.default.gc_thresh3 = 4096 | |
net.ipv4.tcp_timestamps = 1 | |
net.ipv4.tcp_no_metrics_save = 1 | |
net.ipv4.tcp_fin_timeout = 3 | |
net.ipv4.tcp_syncookies = 0 | |
net.ipv4.tcp_syn_retries = 2 | |
net.ipv4.tcp_tw_recycle = 1 | |
net.ipv4.tcp_tw_reuse = 1 | |
net.ipv4.tcp_max_tw_buckets = 400000 | |
net.core.rmem_max=16777216 | |
net.core.wmem_max=16777216 | |
net.ipv4.tcp_rmem=4096 87380 16777216 | |
net.ipv4.tcp_wmem=4096 65536 16777216 | |
# Controls the maximum size of a message, in bytes | |
kernel.msgmnb = 65536 | |
# Controls the default maxmimum size of a mesage queue | |
kernel.msgmax = 65536 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment