Skip to content

Commit

Permalink
Update install_server_centos.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
chinashiyu committed May 3, 2020
1 parent 8279d95 commit 875bfd7
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions install_server_centos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -105,13 +105,13 @@ function setupSystem() {
echo 'net.core.netdev_max_backlog = 1048576' >> /etc/sysctl.d/99-perf.conf

echo 'net.core.rmem_default = 262144' >> /etc/sysctl.d/99-perf.conf
echo 'net.core.rmem_max = 134217728' >> /etc/sysctl.d/99-perf.conf
echo 'net.core.rmem_max = 33554432' >> /etc/sysctl.d/99-perf.conf
echo 'net.core.wmem_default = 262144' >> /etc/sysctl.d/99-perf.conf
echo 'net.core.wmem_max = 134217728' >> /etc/sysctl.d/99-perf.conf
echo 'net.ipv4.tcp_mem = 16384 262144 134217728' >> /etc/sysctl.d/99-perf.conf
echo 'net.ipv4.tcp_rmem = 16384 262144 134217728' >> /etc/sysctl.d/99-perf.conf
echo 'net.ipv4.tcp_wmem = 16384 262144 134217728' >> /etc/sysctl.d/99-perf.conf
echo 'net.ipv4.udp_mem = 16384 262144 134217728' >> /etc/sysctl.d/99-perf.conf
echo 'net.core.wmem_max = 33554432' >> /etc/sysctl.d/99-perf.conf
echo 'net.ipv4.tcp_mem = 16384 262144 33554432' >> /etc/sysctl.d/99-perf.conf
echo 'net.ipv4.tcp_rmem = 16384 262144 33554432' >> /etc/sysctl.d/99-perf.conf
echo 'net.ipv4.tcp_wmem = 16384 262144 33554432' >> /etc/sysctl.d/99-perf.conf
echo 'net.ipv4.udp_mem = 16384 262144 33554432' >> /etc/sysctl.d/99-perf.conf
echo 'net.ipv4.udp_rmem_min = 16384' >> /etc/sysctl.d/99-perf.conf
echo 'net.ipv4.udp_wmem_min = 16384' >> /etc/sysctl.d/99-perf.conf

Expand Down Expand Up @@ -343,4 +343,3 @@ else
fi

# PUBLIC_IP=$(dig TXT +short o-o.myaddr.l.google.com @ns1.google.com | tr -d '"*[:space:]*')

0 comments on commit 875bfd7

Please sign in to comment.