From patchwork Mon Oct 14 16:44:54 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Tremer X-Patchwork-Id: 2501 Return-Path: Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail01.haj.ipfire.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 46sPYR5g8Tz42j9 for ; Mon, 14 Oct 2019 16:44:59 +0000 (UTC) Received: from mail02.haj.ipfire.org (mail02.haj.ipfire.org [172.28.1.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail02.haj.ipfire.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 46sPYR3306z2dF; Mon, 14 Oct 2019 16:44:59 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 46sPYR1xfrz2yCf; Mon, 14 Oct 2019 16:44:59 +0000 (UTC) Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail01.haj.ipfire.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 46sPYP4HHWz2y2r for ; Mon, 14 Oct 2019 16:44:57 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (Client did not present a certificate) by mail01.ipfire.org (Postfix) with ESMTPSA id 46sPYP36vxz2Nq; Mon, 14 Oct 2019 16:44:57 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=201909ed25519; t=1571071497; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=V68NGI3Eypoz2setPixBpAZtvZC3JcVXesWhEZOzQ8g=; b=MA/yMYTH5dL3xUdV5D23GK4pFrbCRRieQXtqbyk/W4q8bS0ODLQynsxthpP9zRjywdFK/8 koqomoBdtDXfbJDw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=201909rsa; t=1571071497; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=V68NGI3Eypoz2setPixBpAZtvZC3JcVXesWhEZOzQ8g=; b=lm/NK6tB2o41P0hQmTrF45wd4MlyzJ/Iidepmjq0srqBl1dpgEb9AztJp5cjcSer3ZEYZ/ /5UtKJRoBbca+GNNcjLksV9QELVSpS0WBFrnvJGm0Uk8FO/MNQzu3IvDH6T/RgqdPfaPf3 y1bdZ2ZTAuMRgAlatEn6sJe21a6C3bKIoUsAUbpnwP9PX2fWJeEZVkeRGfysMCIE/lHM5W 74ztgOL7g+3TUcM0RE3CzT5Zvko8ZqD2VQcPT9w5dLDV3jk0XXS7ytsEPqS6Vrq4oDaKI+ FCyQehLjAqLRXtd7jmsyLCwhVpwmm7n17sr6ofF4oLO6v10k+s4ejIjrfhqq8w== 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 X-BeenThere: development@lists.ipfire.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: IPFire development talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Michael Tremer Errors-To: development-bounces@lists.ipfire.org Sender: "Development" https://www.ibm.com/developerworks/community/wikis/home?lang=en#!/wiki/Welcome%20to%20High%20Performance%20Computing%20%28HPC%29%20Central/page/Linux%20System%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 = 1 kernel.sched_migration_cost_ns = 5000000 # Increase kernel buffer size maximums +net.ipv4.tcp_mem = 16777216 16777216 16777216 net.ipv4.tcp_rmem = 4096 87380 16777216 net.ipv4.tcp_wmem = 4096 16384 16777216 net.ipv4.udp_mem = 3145728 4194304 16777216 +# Prefer low latency over higher throughput +net.ipv4.tcp_low_latency=1 + +# Reserve more socket space for the TCP window +net.ipv4.tcp_adv_win_scale=2 + # Enable TCP fast-open net.ipv4.tcp_fastopen = 3