2018-11-11 08:19:04 -08:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
set -ex
|
2018-10-30 09:17:35 -07:00
|
|
|
|
|
|
|
[[ $(uname) = Linux ]] || exit 1
|
|
|
|
[[ $USER = root ]] || exit 1
|
|
|
|
|
|
|
|
sudo sysctl -w net.core.rmem_default=1610612736
|
|
|
|
sudo sysctl -w net.core.rmem_max=1610612736
|
|
|
|
|
|
|
|
sudo sysctl -w net.core.wmem_default=1610612736
|
|
|
|
sudo sysctl -w net.core.wmem_max=1610612736
|