Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp532173rdg; Tue, 10 Oct 2023 19:16:15 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFlU7NSf9WTS13QM0W+s/z2Vgb+blIXP+lWOY706Mhs73Pd+XdsQW1MZZ11hrjf+R985x0u X-Received: by 2002:a25:774d:0:b0:d81:7041:9520 with SMTP id s74-20020a25774d000000b00d8170419520mr20786770ybc.56.1696990575573; Tue, 10 Oct 2023 19:16:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696990575; cv=none; d=google.com; s=arc-20160816; b=rgvAOLYPOfz40mhFGji7uOOTYaWLTKQj9dNEUek9Me2QGKAnsrz/PgRKZEDkxkyPFx t0IuXv37Lj7Oef20Txeks65LGRGcAL1itb75WIuk6qvOOMZbwSQ902dAk1P7WDukvSpR tJ3/Snay+Kp2HOcSCWeX18ZxzZFMcvfJStDl6z4e06zWPGj+v9DvklcwN1TIcJO01/qP SieoMIVZy3NMv14ZJcA5GMxlcYFK7NILBaJZgp6W0E6/1MPKLHLW03C00h3vHh6Kr8DD M7ArS2QDdwcuHg/xSDNG0WoNl2XiopVboBB1H3If2G1mmGE9q9hTY7+66rvwVoH6F4pB ovbg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=iECfGCpMxcwrOgs+tK/rI+0nJVijEyGocy239dFmGxw=; fh=CC2Lb7Xyh9bWJY+d2dkMRQYa7XXesCLQVBdvxxkrhDM=; b=qgiL4srpp7lL40b7jcZ3P7ReGwLFqIo2hPo8DCfIG1LxyDKjIwZhPr3P5MzcoKrBt9 2SJtw0uOpc0VhuZ1sfuydu9CCfQKREh3JPmQIlfsapXz0FCGprNhkgTz9pzom5/MdOaU /v1Jk6zvJZcbmajVrusCTJt8S2GDqvu5SgwGvrzc++pFZUwGSsfKeOTahgSSS/BqkGw/ xYT3fuwMdxM7t7t6/fx0N0G3RqsUsyKbVIIr/fwECGjpW6wMWrM/7eJysFOs73P+9B8j I6cWrQsJqDyu3rUDNc82qJSFw8KxSq0uDq8aW0tC0ZL3RklxSXjlWH5Y3lwSRJaEIOYa ZdgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@networkplumber-org.20230601.gappssmtp.com header.s=20230601 header.b=FOfsVGOy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=networkplumber.org Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id w184-20020a6382c1000000b00564b8e55214si13689484pgd.385.2023.10.10.19.16.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Oct 2023 19:16:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@networkplumber-org.20230601.gappssmtp.com header.s=20230601 header.b=FOfsVGOy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=networkplumber.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 848308029092; Tue, 10 Oct 2023 19:16:10 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344791AbjJKCPu (ORCPT + 99 others); Tue, 10 Oct 2023 22:15:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51354 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344784AbjJKCPs (ORCPT ); Tue, 10 Oct 2023 22:15:48 -0400 Received: from mail-pf1-x429.google.com (mail-pf1-x429.google.com [IPv6:2607:f8b0:4864:20::429]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 09B8194 for ; Tue, 10 Oct 2023 19:15:46 -0700 (PDT) Received: by mail-pf1-x429.google.com with SMTP id d2e1a72fcca58-690d8c05784so4946375b3a.2 for ; Tue, 10 Oct 2023 19:15:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1696990545; x=1697595345; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=iECfGCpMxcwrOgs+tK/rI+0nJVijEyGocy239dFmGxw=; b=FOfsVGOyen6210JUZf6RoaLh4INK/xXaj5V0rJaAm02pRP6SfoPF9LhjkfH4KNaDMG y70mn9l7Gkk4LzK/WjeIxKgETTYRLt+IkOZIx9DsYj2pnEI9uuGj2NLLaZy03qIqcOI+ F/4SZI7ImhLbJOgfLVVVaK6lixakD+4+zwQz5EoYeHLhAO/6vW+2fqD26xsiQzMZU4PK 3udg3Usvl/HMo0shMJPW2fDDzuS3x5tc/g8P4VbwjvxsInHMDcrKJ3UFyzom6GWCYO3a aptnO4MiS+NmtpHpUm/alr/jyjiD2QoTIerc/pEKVlqxcI7cl5yEkC5yJK16+AmdXaHQ htyQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696990545; x=1697595345; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=iECfGCpMxcwrOgs+tK/rI+0nJVijEyGocy239dFmGxw=; b=JLnj1KiG00O4NZLzawsTkDSWrSLfx3KZnpbiEueXJ/X1pohnH99VHLA5xDK6rqiCI5 DZDJu/DLpJgzVEmAQ9vQ/zZQmyOom+sgtyU0Czd3xT0Mlb6fy531vyc/GMO35C7BAmyj CHpsAa8HUqZABqmir9hbXjW6iwjTE+szKFIIVWOh8B7PnhvSblLL/U9OTodIOAQJBEb+ v0n3wP8KXUh2dKEwVtEc7smBFSintTeb1IFk7p/TEkUhFSql2h4MLG/R/Dvys4u0uKHI 2HN19C+VWjqEQ1CcTgSLRUYANamFNNTq6fy/IqjDMrvDFUdsl8TmvS1sZWk/Y+R0Y31L SiNg== X-Gm-Message-State: AOJu0Yyc36FWKR4gcdri17zSoDR4tPV0YJh/74bi460YKc0JQwDzOo2C Lh24Szk5wiAGecv7AA34rbid7A== X-Received: by 2002:a05:6a00:3a16:b0:693:4143:5145 with SMTP id fj22-20020a056a003a1600b0069341435145mr20705305pfb.31.1696990545282; Tue, 10 Oct 2023 19:15:45 -0700 (PDT) Received: from hermes.local (204-195-126-68.wavecable.com. [204.195.126.68]) by smtp.gmail.com with ESMTPSA id u5-20020aa78385000000b0068c90e1ec84sm8959795pfm.167.2023.10.10.19.15.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Oct 2023 19:15:44 -0700 (PDT) Date: Tue, 10 Oct 2023 19:15:42 -0700 From: Stephen Hemminger To: Haiyang Zhang Cc: Yuchung Cheng , "linux-hyperv@vger.kernel.org" , "netdev@vger.kernel.org" , KY Srinivasan , "davem@davemloft.net" , "edumazet@google.com" , "kuba@kernel.org" , "pabeni@redhat.com" , "corbet@lwn.net" , "dsahern@kernel.org" , "ncardwell@google.com" , "kuniyu@amazon.com" , "morleyd@google.com" , "mfreemon@cloudflare.com" , "mubashirq@google.com" , "linux-doc@vger.kernel.org" , "weiwan@google.com" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH net-next,v2] tcp: Set pingpong threshold via sysctl Message-ID: <20231010191542.3688fe24@hermes.local> In-Reply-To: References: <1696965810-8315-1-git-send-email-haiyangz@microsoft.com> <20231010151404.3f7faa87@hermes.local> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=2.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_SBL_CSS, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Tue, 10 Oct 2023 19:16:11 -0700 (PDT) X-Spam-Level: ** On Tue, 10 Oct 2023 22:59:49 +0000 Haiyang Zhang wrote: > > > If this an application specific optimization, it should be in a socket option > > > rather than system wide via sysctl. > > Initially I had a similar comment but later decided a sysctl could > > still be useful if > > 1) the entire host (e.g. virtual machine) is dedicated to that application > > 2) that application is difficult to change > > Yes, the customer actually wants a global setting. But as suggested by Neal, > I changed it to be per-namespace to match other TCP tunables. Like congestion control choice, it could be both a sysctl and a socket option. The reason is that delayed ack is already controlled by socket options.