|
|
@ -97,6 +97,16 @@ mkdir -p /root/.config/fish
|
|
|
|
|
|
|
|
|
|
|
|
## Bugfix: reserve 512MB memory for system
|
|
|
|
## Bugfix: reserve 512MB memory for system
|
|
|
|
echo "vm.min_free_kbytes = 524288" >> /etc/sysctl.conf
|
|
|
|
echo "vm.min_free_kbytes = 524288" >> /etc/sysctl.conf
|
|
|
|
|
|
|
|
echo "net.ipv4.tcp_mem=1280000 1280000 1280000" >> /etc/sysctl.conf
|
|
|
|
|
|
|
|
echo "net.ipv4.tcp_wmem = 32768 131072 1280000" >> /etc/sysctl.conf
|
|
|
|
|
|
|
|
echo "net.ipv4.tcp_rmem = 32768 131072 1280000" >> /etc/sysctl.conf
|
|
|
|
|
|
|
|
echo "net.core.rmem_max=16777216" >> /etc/sysctl.conf
|
|
|
|
|
|
|
|
echo "net.core.wmem_max=16777216" >> /etc/sysctl.conf
|
|
|
|
|
|
|
|
echo "net.core.rmem_default=16777216" >> /etc/sysctl.conf
|
|
|
|
|
|
|
|
echo "net.core.wmem_default=16777216" >> /etc/sysctl.conf
|
|
|
|
|
|
|
|
echo "net.core.optmem_max=1524288" >> /etc/sysctl.conf
|
|
|
|
|
|
|
|
echo "net.ipv4.tcp_sack=0" >> /etc/sysctl.conf
|
|
|
|
|
|
|
|
echo "net.ipv4.tcp_timestamps=0" >> /etc/sysctl.conf
|
|
|
|
sysctl -p
|
|
|
|
sysctl -p
|
|
|
|
|
|
|
|
|
|
|
|
## Remove subscription banner
|
|
|
|
## Remove subscription banner
|
|
|
|