12 lines
277 B
Bash
Executable File
12 lines
277 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -ex
|
|
|
|
[[ $(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
|