Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp2371168rdg; Mon, 16 Oct 2023 02:11:08 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFF8WL1jlf+9FgFL13Kn1unCaEQzETiS2lEeIaiLdJbm1dsFqV/LoWa6aZim3K+q+TZ9lm0 X-Received: by 2002:a05:6358:63a9:b0:143:8aa4:30bc with SMTP id k41-20020a05635863a900b001438aa430bcmr38022493rwh.8.1697447468592; Mon, 16 Oct 2023 02:11:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697447468; cv=none; d=google.com; s=arc-20160816; b=Kkwm1MKV58P1aXyZSFu1ie1aH6STxAuFnAdahYQzNIdv3kgFmBUH+941qX4PNrS0Q+ nfcgvpZ+iDe1uyBYF0znNQa4VxmUmjcadb1emc5LPa1iVYqUw/fjqfmyzBL78LIOC7JB kDFfpgS/qAK5mxHgstrr/wKV5+kfSFBrHXds/hMvvD6n/AmEjTl04zzMdybO6Ed0Tg0P XXQyHQh8lD3bvCneDGrjLhgVH8zch5BBlbdsr6NwoWIgjwwu0+9pYB2sEj/tGP/DAI+F OS2lNmDueouxqPEEb9RCNIKksaUfGTXPhN9rsHnPnpxe6zpqU4sb0RaqTq8FnLN6EOkB 7yKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Jw2z9uoIZWRNzLcytPN2GZ/FxMn5oLOSBBG1SoZ7Y0Y=; fh=jTYsARRwCz31M4TRd8BmNbLuBazwqjaE2GQ4eEMEbaM=; b=V6osGz/7ApQdoHA9ECMrqXVMDw9P0MEnmC1nWqz3mXbPZ6G7cFEDdmUmJ6DMIME75J aLjZGzfFnKXTQmsfItdztJQxiWfpAln2pJwDBg15gQ2iQiAummC52bUUNziAyJLj6PC0 4NkX7rtWMdxg8cwNnzGqbdAIo0Irzbw1JyqpGDURbJOn4RjmsRvxDJrp74ovLhWAtEsJ eBmceVyDtjLtEtYmGIQgGnW+I/v6CZPmOyt8DDmjb19jwhRBafsL1GXPAxPIf/z0f653 n87JrHqq5ma5tvLRIhXpUd3MByTNHrwEJX/Wgh2ITn5Kt0oy2CvMvhI9mIw0C4ZwmTOx LN1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="UKpgoN/b"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id p2-20020a056a000b4200b006901504b6a3si19291614pfo.153.2023.10.16.02.11.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Oct 2023 02:11:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="UKpgoN/b"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id B1361806E551; Mon, 16 Oct 2023 02:11:05 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232459AbjJPJLA (ORCPT + 99 others); Mon, 16 Oct 2023 05:11:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49530 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232912AbjJPJKz (ORCPT ); Mon, 16 Oct 2023 05:10:55 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1A331E5 for ; Mon, 16 Oct 2023 02:10:54 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 49F4FC433C7; Mon, 16 Oct 2023 09:10:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1697447453; bh=9Lx78ecl0MZuF5F5PNauQCDBeFdcUns/BLrcQKTwtW4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=UKpgoN/b8/gx5spIIHKQLj/BYMaITLA0ShZI8w54Z6AZp3+yxr+251NrFO3tI9/HA dKuuuaYuLdJRYP4053aXJObFgODZ8XabcwBbEU7z1bl3ojOSeSyAr2+h/jSiOtNRvv x0+44lYRpiiNjJ/Pr/xd80TumRQQ0bWoaXWJE4Wz7a3QKh/SwR7NlIUN8qDhptlsWQ ItL7ryT709B5NYfrKHbsSdf79BPk+Ioj7jZrYg4C2GOamcEbXeK66myoQtT6o7Rtc4 hV9OmkzeywmN8uujBf5iHby+/H6F6OgKHk62t8aRudGlfHwkRZ4dOOzkpMHKmq3oPU 3kZxk5sEhKImw== Date: Mon, 16 Oct 2023 11:10:48 +0200 From: Simon Horman To: Haiyang Zhang Cc: linux-hyperv@vger.kernel.org, netdev@vger.kernel.org, kys@microsoft.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, corbet@lwn.net, dsahern@kernel.org, ncardwell@google.com, ycheng@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,v3] tcp: Set pingpong threshold via sysctl Message-ID: <20231016091048.GG1501712@kernel.org> References: <1697056244-21888-1-git-send-email-haiyangz@microsoft.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1697056244-21888-1-git-send-email-haiyangz@microsoft.com> X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.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 (morse.vger.email [0.0.0.0]); Mon, 16 Oct 2023 02:11:05 -0700 (PDT) On Wed, Oct 11, 2023 at 01:30:44PM -0700, Haiyang Zhang wrote: > TCP pingpong threshold is 1 by default. But some applications, like SQL DB > may prefer a higher pingpong threshold to activate delayed acks in quick > ack mode for better performance. > > The pingpong threshold and related code were changed to 3 in the year > 2019 in: > commit 4a41f453bedf ("tcp: change pingpong threshold to 3") > And reverted to 1 in the year 2022 in: > commit 4d8f24eeedc5 ("Revert "tcp: change pingpong threshold to 3"") > > There is no single value that fits all applications. > Add net.ipv4.tcp_pingpong_thresh sysctl tunable, so it can be tuned for > optimal performance based on the application needs. > > Signed-off-by: Haiyang Zhang > --- > v3: Updated doc as suggested by Neal Cardwell. > Updated variable location in struct netns_ipv4 as suggested by Kuniyuki > Iwashima. > > v2: Make it per-namesapce setting, and other updates suggested by Neal Cardwell, > and Kuniyuki Iwashima. Thanks, this looks clean to me. It seems to address the review of v2. And keeps the knob as syctl as discussed in v2. Reviewed-by: Simon Horman