-
-
Save ynwd/406a117f557ccb8e13372177be4228a1 to your computer and use it in GitHub Desktop.
m3medium config
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
#!/bin/bash | |
sysctl net.core.rmem_default=268435456 | |
sysctl net.core.wmem_default=268435456 | |
sysctl net.core.rmem_max=268435456 | |
sysctl net.core.wmem_max=268435456 | |
sysctl net.core.netdev_max_backlog=100000 | |
sysctl "net.ipv4.tcp_rmem=4096 16384 134217728" | |
sysctl "net.ipv4.tcp_wmem=4096 16384 134217728" | |
sysctl "net.ipv4.tcp_mem=786432 1048576 268435456" | |
sysctl net.ipv4.tcp_max_tw_buckets=360000 | |
sysctl net.ipv4.tcp_max_syn_backlog=10000 | |
sysctl vm.min_free_kbytes=65536 | |
sysctl vm.swappiness=0 | |
sysctl net.core.somaxconn=10000 | |
sysctl net.netfilter.nf_conntrack_max=1000000 | |
sysctl fs.file-max=65536 |
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
net.core.rmem_default = 268435456 | |
net.core.wmem_default = 268435456 | |
net.core.rmem_max = 268435456 | |
net.core.wmem_max = 268435456 | |
net.core.netdev_max_backlog = 100000 | |
net.ipv4.tcp_rmem = 4096 16384 134217728 | |
net.ipv4.tcp_wmem = 4096 16384 134217728 | |
net.ipv4.tcp_mem = 786432 1048576 268435456 | |
net.ipv4.tcp_max_tw_buckets = 360000 | |
net.ipv4.tcp_max_syn_backlog = 10000 | |
vm.min_free_kbytes = 65536 | |
vm.swappiness = 0 | |
net.core.somaxconn = 10000 | |
net.netfilter.nf_conntrack_max = 1000000 | |
fs.file-max = 65536 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment