Reduce udp read/write buffer sizes

With 18.04, these large values cause packet errors and mess up the system.
This commit is contained in:
Stephen Akridge 2019-04-08 21:35:51 +00:00 committed by sakridge
parent 6540fa9121
commit 20a2c59b70
1 changed files with 4 additions and 4 deletions

View File

@ -88,16 +88,16 @@ tune_system() {
# test the existence of the sysctls before trying to set them
# go ahead and return true and don't exit if these calls fail
sysctl net.core.rmem_max 2>/dev/null 1>/dev/null &&
sudo sysctl -w net.core.rmem_max=1610612736 1>/dev/null 2>/dev/null
sudo sysctl -w net.core.rmem_max=161061273 1>/dev/null 2>/dev/null
sysctl net.core.rmem_default 2>/dev/null 1>/dev/null &&
sudo sysctl -w net.core.rmem_default=1610612736 1>/dev/null 2>/dev/null
sudo sysctl -w net.core.rmem_default=161061273 1>/dev/null 2>/dev/null
sysctl net.core.wmem_max 2>/dev/null 1>/dev/null &&
sudo sysctl -w net.core.wmem_max=1610612736 1>/dev/null 2>/dev/null
sudo sysctl -w net.core.wmem_max=161061273 1>/dev/null 2>/dev/null
sysctl net.core.wmem_default 2>/dev/null 1>/dev/null &&
sudo sysctl -w net.core.wmem_default=1610612736 1>/dev/null 2>/dev/null
sudo sysctl -w net.core.wmem_default=161061273 1>/dev/null 2>/dev/null
) || true
fi