Skip to content

Commit

Permalink
update inc/cpcheck.inc, inc/tcp.inc & installers
Browse files Browse the repository at this point in the history
- raise centos 7 default net.unix.max_dgram_qlen from 512 to 4096
  • Loading branch information
centminmod committed Apr 1, 2018
1 parent a0ed1c8 commit 3d52713
Show file tree
Hide file tree
Showing 22 changed files with 22 additions and 0 deletions.
1 change: 1 addition & 0 deletions inc/cpcheck.inc
Expand Up @@ -1888,6 +1888,7 @@ net.netfilter.nf_conntrack_generic_timeout = 60
net.ipv4.tcp_challenge_ack_limit = 999999999
net.ipv4.tcp_mtu_probing = 1
net.ipv4.tcp_base_mss = 1024
net.unix.max_dgram_qlen = 4096
EOF
/sbin/sysctl --system >/dev/null 2>&1
fi
Expand Down
1 change: 1 addition & 0 deletions inc/tcp.inc
Expand Up @@ -201,6 +201,7 @@ net.netfilter.nf_conntrack_generic_timeout = 60
net.ipv4.tcp_challenge_ack_limit = 999999999
net.ipv4.tcp_mtu_probing = 1
net.ipv4.tcp_base_mss = 1024
net.unix.max_dgram_qlen = 4096
EOF
/sbin/sysctl --system
fi
Expand Down
1 change: 1 addition & 0 deletions installer-dnf-gitlab.sh
Expand Up @@ -837,6 +837,7 @@ net.netfilter.nf_conntrack_generic_timeout = 60
net.ipv4.tcp_challenge_ack_limit = 999999999
net.ipv4.tcp_mtu_probing = 1
net.ipv4.tcp_base_mss = 1024
net.unix.max_dgram_qlen = 4096
EOF
if [[ "$(grep -o 'AMD EPYC' /proc/cpuinfo | sort -u)" = 'AMD EPYC' ]]; then
echo "kernel.watchdog_thresh = 20" >> /etc/sysctl.d/101-sysctl.conf
Expand Down
1 change: 1 addition & 0 deletions installer-dnf.sh
Expand Up @@ -837,6 +837,7 @@ net.netfilter.nf_conntrack_generic_timeout = 60
net.ipv4.tcp_challenge_ack_limit = 999999999
net.ipv4.tcp_mtu_probing = 1
net.ipv4.tcp_base_mss = 1024
net.unix.max_dgram_qlen = 4096
EOF
if [[ "$(grep -o 'AMD EPYC' /proc/cpuinfo | sort -u)" = 'AMD EPYC' ]]; then
echo "kernel.watchdog_thresh = 20" >> /etc/sysctl.d/101-sysctl.conf
Expand Down
1 change: 1 addition & 0 deletions installer-gitlab.sh
Expand Up @@ -837,6 +837,7 @@ net.netfilter.nf_conntrack_generic_timeout = 60
net.ipv4.tcp_challenge_ack_limit = 999999999
net.ipv4.tcp_mtu_probing = 1
net.ipv4.tcp_base_mss = 1024
net.unix.max_dgram_qlen = 4096
EOF
if [[ "$(grep -o 'AMD EPYC' /proc/cpuinfo | sort -u)" = 'AMD EPYC' ]]; then
echo "kernel.watchdog_thresh = 20" >> /etc/sysctl.d/101-sysctl.conf
Expand Down
1 change: 1 addition & 0 deletions installer-latest-gitlab.sh
Expand Up @@ -843,6 +843,7 @@ net.netfilter.nf_conntrack_generic_timeout = 60
net.ipv4.tcp_challenge_ack_limit = 999999999
net.ipv4.tcp_mtu_probing = 1
net.ipv4.tcp_base_mss = 1024
net.unix.max_dgram_qlen = 4096
EOF
if [[ "$(grep -o 'AMD EPYC' /proc/cpuinfo | sort -u)" = 'AMD EPYC' ]]; then
echo "kernel.watchdog_thresh = 20" >> /etc/sysctl.d/101-sysctl.conf
Expand Down
1 change: 1 addition & 0 deletions installer-latest.sh
Expand Up @@ -813,6 +813,7 @@ net.netfilter.nf_conntrack_generic_timeout = 60
net.ipv4.tcp_challenge_ack_limit = 999999999
net.ipv4.tcp_mtu_probing = 1
net.ipv4.tcp_base_mss = 1024
net.unix.max_dgram_qlen = 4096
EOF
if [[ "$(grep -o 'AMD EPYC' /proc/cpuinfo | sort -u)" = 'AMD EPYC' ]]; then
echo "kernel.watchdog_thresh = 20" >> /etc/sysctl.d/101-sysctl.conf
Expand Down
1 change: 1 addition & 0 deletions installer-minimal-gitlab.sh
Expand Up @@ -837,6 +837,7 @@ net.netfilter.nf_conntrack_generic_timeout = 60
net.ipv4.tcp_challenge_ack_limit = 999999999
net.ipv4.tcp_mtu_probing = 1
net.ipv4.tcp_base_mss = 1024
net.unix.max_dgram_qlen = 4096
EOF
if [[ "$(grep -o 'AMD EPYC' /proc/cpuinfo | sort -u)" = 'AMD EPYC' ]]; then
echo "kernel.watchdog_thresh = 20" >> /etc/sysctl.d/101-sysctl.conf
Expand Down
1 change: 1 addition & 0 deletions installer-minimal.sh
Expand Up @@ -837,6 +837,7 @@ net.netfilter.nf_conntrack_generic_timeout = 60
net.ipv4.tcp_challenge_ack_limit = 999999999
net.ipv4.tcp_mtu_probing = 1
net.ipv4.tcp_base_mss = 1024
net.unix.max_dgram_qlen = 4096
EOF
if [[ "$(grep -o 'AMD EPYC' /proc/cpuinfo | sort -u)" = 'AMD EPYC' ]]; then
echo "kernel.watchdog_thresh = 20" >> /etc/sysctl.d/101-sysctl.conf
Expand Down
1 change: 1 addition & 0 deletions installer-ngxpagespeed-gitlab.sh
Expand Up @@ -837,6 +837,7 @@ net.netfilter.nf_conntrack_generic_timeout = 60
net.ipv4.tcp_challenge_ack_limit = 999999999
net.ipv4.tcp_mtu_probing = 1
net.ipv4.tcp_base_mss = 1024
net.unix.max_dgram_qlen = 4096
EOF
if [[ "$(grep -o 'AMD EPYC' /proc/cpuinfo | sort -u)" = 'AMD EPYC' ]]; then
echo "kernel.watchdog_thresh = 20" >> /etc/sysctl.d/101-sysctl.conf
Expand Down
1 change: 1 addition & 0 deletions installer-ngxpagespeed.sh
Expand Up @@ -837,6 +837,7 @@ net.netfilter.nf_conntrack_generic_timeout = 60
net.ipv4.tcp_challenge_ack_limit = 999999999
net.ipv4.tcp_mtu_probing = 1
net.ipv4.tcp_base_mss = 1024
net.unix.max_dgram_qlen = 4096
EOF
if [[ "$(grep -o 'AMD EPYC' /proc/cpuinfo | sort -u)" = 'AMD EPYC' ]]; then
echo "kernel.watchdog_thresh = 20" >> /etc/sysctl.d/101-sysctl.conf
Expand Down
1 change: 1 addition & 0 deletions installer.sh
Expand Up @@ -837,6 +837,7 @@ net.netfilter.nf_conntrack_generic_timeout = 60
net.ipv4.tcp_challenge_ack_limit = 999999999
net.ipv4.tcp_mtu_probing = 1
net.ipv4.tcp_base_mss = 1024
net.unix.max_dgram_qlen = 4096
EOF
if [[ "$(grep -o 'AMD EPYC' /proc/cpuinfo | sort -u)" = 'AMD EPYC' ]]; then
echo "kernel.watchdog_thresh = 20" >> /etc/sysctl.d/101-sysctl.conf
Expand Down
1 change: 1 addition & 0 deletions installer55-gitlab.sh
Expand Up @@ -837,6 +837,7 @@ net.netfilter.nf_conntrack_generic_timeout = 60
net.ipv4.tcp_challenge_ack_limit = 999999999
net.ipv4.tcp_mtu_probing = 1
net.ipv4.tcp_base_mss = 1024
net.unix.max_dgram_qlen = 4096
EOF
if [[ "$(grep -o 'AMD EPYC' /proc/cpuinfo | sort -u)" = 'AMD EPYC' ]]; then
echo "kernel.watchdog_thresh = 20" >> /etc/sysctl.d/101-sysctl.conf
Expand Down
1 change: 1 addition & 0 deletions installer55.sh
Expand Up @@ -837,6 +837,7 @@ net.netfilter.nf_conntrack_generic_timeout = 60
net.ipv4.tcp_challenge_ack_limit = 999999999
net.ipv4.tcp_mtu_probing = 1
net.ipv4.tcp_base_mss = 1024
net.unix.max_dgram_qlen = 4096
EOF
if [[ "$(grep -o 'AMD EPYC' /proc/cpuinfo | sort -u)" = 'AMD EPYC' ]]; then
echo "kernel.watchdog_thresh = 20" >> /etc/sysctl.d/101-sysctl.conf
Expand Down
1 change: 1 addition & 0 deletions installer56-gitlab.sh
Expand Up @@ -837,6 +837,7 @@ net.netfilter.nf_conntrack_generic_timeout = 60
net.ipv4.tcp_challenge_ack_limit = 999999999
net.ipv4.tcp_mtu_probing = 1
net.ipv4.tcp_base_mss = 1024
net.unix.max_dgram_qlen = 4096
EOF
if [[ "$(grep -o 'AMD EPYC' /proc/cpuinfo | sort -u)" = 'AMD EPYC' ]]; then
echo "kernel.watchdog_thresh = 20" >> /etc/sysctl.d/101-sysctl.conf
Expand Down
1 change: 1 addition & 0 deletions installer56.sh
Expand Up @@ -837,6 +837,7 @@ net.netfilter.nf_conntrack_generic_timeout = 60
net.ipv4.tcp_challenge_ack_limit = 999999999
net.ipv4.tcp_mtu_probing = 1
net.ipv4.tcp_base_mss = 1024
net.unix.max_dgram_qlen = 4096
EOF
if [[ "$(grep -o 'AMD EPYC' /proc/cpuinfo | sort -u)" = 'AMD EPYC' ]]; then
echo "kernel.watchdog_thresh = 20" >> /etc/sysctl.d/101-sysctl.conf
Expand Down
1 change: 1 addition & 0 deletions installer7-gitlab.sh
Expand Up @@ -837,6 +837,7 @@ net.netfilter.nf_conntrack_generic_timeout = 60
net.ipv4.tcp_challenge_ack_limit = 999999999
net.ipv4.tcp_mtu_probing = 1
net.ipv4.tcp_base_mss = 1024
net.unix.max_dgram_qlen = 4096
EOF
if [[ "$(grep -o 'AMD EPYC' /proc/cpuinfo | sort -u)" = 'AMD EPYC' ]]; then
echo "kernel.watchdog_thresh = 20" >> /etc/sysctl.d/101-sysctl.conf
Expand Down
1 change: 1 addition & 0 deletions installer7.sh
Expand Up @@ -837,6 +837,7 @@ net.netfilter.nf_conntrack_generic_timeout = 60
net.ipv4.tcp_challenge_ack_limit = 999999999
net.ipv4.tcp_mtu_probing = 1
net.ipv4.tcp_base_mss = 1024
net.unix.max_dgram_qlen = 4096
EOF
if [[ "$(grep -o 'AMD EPYC' /proc/cpuinfo | sort -u)" = 'AMD EPYC' ]]; then
echo "kernel.watchdog_thresh = 20" >> /etc/sysctl.d/101-sysctl.conf
Expand Down
1 change: 1 addition & 0 deletions installer71-gitlab.sh
Expand Up @@ -837,6 +837,7 @@ net.netfilter.nf_conntrack_generic_timeout = 60
net.ipv4.tcp_challenge_ack_limit = 999999999
net.ipv4.tcp_mtu_probing = 1
net.ipv4.tcp_base_mss = 1024
net.unix.max_dgram_qlen = 4096
EOF
if [[ "$(grep -o 'AMD EPYC' /proc/cpuinfo | sort -u)" = 'AMD EPYC' ]]; then
echo "kernel.watchdog_thresh = 20" >> /etc/sysctl.d/101-sysctl.conf
Expand Down
1 change: 1 addition & 0 deletions installer71.sh
Expand Up @@ -837,6 +837,7 @@ net.netfilter.nf_conntrack_generic_timeout = 60
net.ipv4.tcp_challenge_ack_limit = 999999999
net.ipv4.tcp_mtu_probing = 1
net.ipv4.tcp_base_mss = 1024
net.unix.max_dgram_qlen = 4096
EOF
if [[ "$(grep -o 'AMD EPYC' /proc/cpuinfo | sort -u)" = 'AMD EPYC' ]]; then
echo "kernel.watchdog_thresh = 20" >> /etc/sysctl.d/101-sysctl.conf
Expand Down
1 change: 1 addition & 0 deletions installer72-gitlab.sh
Expand Up @@ -837,6 +837,7 @@ net.netfilter.nf_conntrack_generic_timeout = 60
net.ipv4.tcp_challenge_ack_limit = 999999999
net.ipv4.tcp_mtu_probing = 1
net.ipv4.tcp_base_mss = 1024
net.unix.max_dgram_qlen = 4096
EOF
if [[ "$(grep -o 'AMD EPYC' /proc/cpuinfo | sort -u)" = 'AMD EPYC' ]]; then
echo "kernel.watchdog_thresh = 20" >> /etc/sysctl.d/101-sysctl.conf
Expand Down
1 change: 1 addition & 0 deletions installer72.sh
Expand Up @@ -837,6 +837,7 @@ net.netfilter.nf_conntrack_generic_timeout = 60
net.ipv4.tcp_challenge_ack_limit = 999999999
net.ipv4.tcp_mtu_probing = 1
net.ipv4.tcp_base_mss = 1024
net.unix.max_dgram_qlen = 4096
EOF
if [[ "$(grep -o 'AMD EPYC' /proc/cpuinfo | sort -u)" = 'AMD EPYC' ]]; then
echo "kernel.watchdog_thresh = 20" >> /etc/sysctl.d/101-sysctl.conf
Expand Down

0 comments on commit 3d52713

Please sign in to comment.