From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Tremer To: development@lists.ipfire.org Subject: [PATCH] sysctl: Adopt more settings from the IBM HPC guidelines Date: Mon, 14 Oct 2019 16:44:54 +0000 Message-ID: <20191014164454.17523-1-michael.tremer@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1137177292553449314==" List-Id: --===============1137177292553449314== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable https://www.ibm.com/developerworks/community/wikis/home?lang=3Den#!/wiki/Welc= ome%20to%20High%20Performance%20Computing%20%28HPC%29%20Central/page/Linux%20= System%20Tuning%20Recommendations Since we have already configured most of our IP/TCP stack for low latency and fast throughput, these settings complete those efforts. Signed-off-by: Michael Tremer --- config/etc/sysctl.conf | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/config/etc/sysctl.conf b/config/etc/sysctl.conf index 9a943fffa..d11e53c88 100644 --- a/config/etc/sysctl.conf +++ b/config/etc/sysctl.conf @@ -76,9 +76,16 @@ vm.swappiness =3D 1 kernel.sched_migration_cost_ns =3D 5000000 =20 # Increase kernel buffer size maximums +net.ipv4.tcp_mem =3D 16777216 16777216 16777216 net.ipv4.tcp_rmem =3D 4096 87380 16777216 net.ipv4.tcp_wmem =3D 4096 16384 16777216 net.ipv4.udp_mem =3D 3145728 4194304 16777216 =20 +# Prefer low latency over higher throughput +net.ipv4.tcp_low_latency=3D1 + +# Reserve more socket space for the TCP window +net.ipv4.tcp_adv_win_scale=3D2 + # Enable TCP fast-open net.ipv4.tcp_fastopen =3D 3 --=20 2.20.1 --===============1137177292553449314==--