Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/lavabit/magma.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLadar Levison <ladar@lavabit.com>2022-04-27 10:08:01 +0300
committerLadar Levison <ladar@lavabit.com>2022-04-27 10:08:09 +0300
commit4a1d9223964e624a4d56057f1d13fb01c34dea3a (patch)
tree30263f12f6e400cfef58b813fd69729262e519c7
parenteba6197e28dfe4464d483b1b068d17a1b18f1f3a (diff)
Updated kernel notes, particularly tw_reuse was incorrect.
-rwxr-xr-xdev/docs/sysctl.conf1
-rw-r--r--dev/install/magmad.install.sh4
2 files changed, 3 insertions, 2 deletions
diff --git a/dev/docs/sysctl.conf b/dev/docs/sysctl.conf
index 2f74dc6d..00f3e198 100755
--- a/dev/docs/sysctl.conf
+++ b/dev/docs/sysctl.conf
@@ -22,6 +22,7 @@ kernel.core_pattern = /home/ladar/Desktop/core-%e.%p
# Allow memory overcomittal
# vm.overcommit_memory = 1
+vm.overcommit_ratio = 300
vm.swappiness = 10
# Controls the maximum size of a message, in bytes
diff --git a/dev/install/magmad.install.sh b/dev/install/magmad.install.sh
index eff5b567..f7b38c13 100644
--- a/dev/install/magmad.install.sh
+++ b/dev/install/magmad.install.sh
@@ -214,7 +214,7 @@ printf "net.ipv4.tcp_rmem = 8192 87380 16777216\n" >> /etc/sysctl.conf
printf "net.ipv4.tcp_syn_retries = 3\n" >> /etc/sysctl.conf
printf "net.ipv4.tcp_synack_retries = 3\n" >> /etc/sysctl.conf
printf "net.ipv4.tcp_tw_recycle = 1\n" >> /etc/sysctl.conf
-printf "net.ipv4.tcp_tw_reuse = 1\n" >> /etc/sysctl.conf
+printf "net.ipv4.tcp_tw_reuse = 0\n" >> /etc/sysctl.conf
printf "net.ipv4.tcp_wmem = 8192 65536 16777216\n" >> /etc/sysctl.conf
printf "net.ipv4.udp_mem = 65536 131072 262144\n" >> /etc/sysctl.conf
printf "net.ipv4.udp_rmem_min = 16384\n" >> /etc/sysctl.conf
@@ -247,7 +247,7 @@ sysctl -w net.ipv4.tcp_rfc1337=1
sysctl -w net.ipv4.tcp_syn_retries=3
sysctl -w net.ipv4.tcp_synack_retries=3
sysctl -w net.ipv4.tcp_tw_recycle=1
-sysctl -w net.ipv4.tcp_tw_reuse=1
+sysctl -w net.ipv4.tcp_tw_reuse=0
sysctl -w net.ipv4.udp_rmem_min=16384
sysctl -w net.ipv4.udp_wmem_min=16384
sysctl -w net.ipv6.conf.all.disable_ipv6=1