Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp1022357rdg; Wed, 11 Oct 2023 11:57:46 -0700 (PDT) X-Google-Smtp-Source: AGHT+IECFo7RrGlj4viiGNbXxuzJN3Dr7ROv5ibR65lz7ckDof4rn+fzIqalz6G+GZczhl/oBS8R X-Received: by 2002:a05:6a20:3943:b0:12e:caac:f263 with SMTP id r3-20020a056a20394300b0012ecaacf263mr28354873pzg.20.1697050666091; Wed, 11 Oct 2023 11:57:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697050666; cv=none; d=google.com; s=arc-20160816; b=lB6qt8eKi5J6W5dgy6bNzLpu7pK1qvitwfSJKaKA42PyQxSG+BwECsrowEy5N9QtOr 0VyHp71F8eK0IwtrsLxdxBhnLp+qMD9XcJ+EbpIJbXLJKGzk0mikUIneg3PndOUcQKRw j5XjYX5YF3n7Oxit8+uoOdEvNttcew5Lm1Y7lwN8tB2kV1N5PcH0lK3cLKFUYDLKkjhn h7j2WMoKKL9YwK9qaeLPbItqKv3/XhVsrjbsO6AYGVU9bXtJI2r3KlMDe5OIbsWSm1g4 AuG9z4HHmDQ3vpdKVxMAy6ZKW59leK1RGmJ7k9Xi925AlN8VkqZg0WlPZnEXpeAQQBBO sFkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=RxkPm2B1OBi9iYXN9MuYvqMChLrgNkYVTRTGG0T2fWU=; fh=PJsmcPveWK3Q2kK4GqLenWSs3p+8OCzUpEx0JEUpIwg=; b=TB3+SGpPoCSV+ysFZWbp/kdR9eHzCIVgsNKsMZh36rRW2SbzJAxpVslM4VGm2hhQBE A1k5KAlC6AOqinfgBf0u4+R7FYBW1OM9/rPEemqIq/3qZ7xxKsgS/1Jg5WgQj/Z8Mtha /cqzUxutCW7WlFS77cNadvqeiDoXvvLyEfDfzDOhoXv3MJo5JwonJQD/McVB4+TTuP4h /3xz3a5uohV2Rknapfc8qIZDVsgE3pZs0+0Mt3GCEvtR964rjrkyf1c2+VhDes0z42D2 G4EGM+Oe+RHJx7cYC4EQEFhOufmh3elaw4AmLZrTBZEgsJJG9mBreJ1CSRj+Vw18IBcy rnfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=Znfct9J5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id bs191-20020a6328c8000000b00589879deb57si374753pgb.92.2023.10.11.11.57.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Oct 2023 11:57:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=Znfct9J5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id D052C80AD137; Wed, 11 Oct 2023 11:57:43 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232224AbjJKS5h (ORCPT + 99 others); Wed, 11 Oct 2023 14:57:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38798 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232525AbjJKS5g (ORCPT ); Wed, 11 Oct 2023 14:57:36 -0400 Received: from mail-ed1-x52e.google.com (mail-ed1-x52e.google.com [IPv6:2a00:1450:4864:20::52e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C853894 for ; Wed, 11 Oct 2023 11:57:33 -0700 (PDT) Received: by mail-ed1-x52e.google.com with SMTP id 4fb4d7f45d1cf-536ef8a7dcdso2412a12.0 for ; Wed, 11 Oct 2023 11:57:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1697050652; x=1697655452; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=RxkPm2B1OBi9iYXN9MuYvqMChLrgNkYVTRTGG0T2fWU=; b=Znfct9J5uEgMZVS1t6P08/oENe6hb2X2cUn4rUHygOG4K4hSUJyA46KYMfvuMVvnNC YBOg90xjmdMPkrghJIlAI1sFi3qYnzIvOAFlLJlt0SkPZIgITJf0aEdqZlk33s27PL0/ rTu+SQsfw9ESzD7QWQ2+5kvmW63c2uUtP0j3a7r2Ght46DlR0kUS+pLaOLfxxr1DgVT7 wPYLtGItYZiDYhtRIvID7Wq9EACmVar0wTdyCmGKI5VNywMahzf6bOBVV6tqXtj5vc5Q S8qW30qGBXXJn2rRFxe4jS9ZhMVHRHKerR93I0WeFeJRYsMx9fSk/rVjmwO8q2Be+3RY Zjkw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697050652; x=1697655452; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=RxkPm2B1OBi9iYXN9MuYvqMChLrgNkYVTRTGG0T2fWU=; b=SPhpmhhCYWnUAKTLfIEq2C+BpFgYLzww1Q/dq0ILiy8ypFdftNhpD2x2bw7ITAeT9a qo6Vl5qEYwNJMm70N6PkT73KxizJ/qUJUs8kpYTyRkIRINp6993mQuD1/jQjsYMc/xmu AMohyfMhlQhMj5coRX8CnTTy0GJnwxbNXIt2lK7gDrUPysUXXFEq3IU67kWu5+rte8WX pvMODnv1BCjc35Mb/bIJ1Qitlq7DbEHS4BJnwlTM52KiBYJUzasDRr29lsuu9P3pXHA9 e0XPRhY/MReiUvpryF2HZid4RcN5P1OB4DmG2NT47/ucEokGc1+jdxR7+Ml2j4TggoRZ ERBQ== X-Gm-Message-State: AOJu0Yz7fM/Xo5ReHDUZbb8YOHZWZl8+mqFACPV3RZFgMOqxBj+I9fFI F4A12muLa/SAU0EgkVJre6E51exWqfO9jdI0TWj8kg== X-Received: by 2002:a50:c35c:0:b0:538:50e4:5446 with SMTP id q28-20020a50c35c000000b0053850e45446mr140284edb.5.1697050652003; Wed, 11 Oct 2023 11:57:32 -0700 (PDT) MIME-Version: 1.0 References: <1696965810-8315-1-git-send-email-haiyangz@microsoft.com> <20231010151404.3f7faa87@hermes.local> <20231010191542.3688fe24@hermes.local> In-Reply-To: From: Eric Dumazet Date: Wed, 11 Oct 2023 20:57:18 +0200 Message-ID: Subject: Re: [PATCH net-next,v2] tcp: Set pingpong threshold via sysctl To: Haiyang Zhang Cc: Stephen Hemminger , Yuchung Cheng , "linux-hyperv@vger.kernel.org" , "netdev@vger.kernel.org" , KY Srinivasan , "davem@davemloft.net" , "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" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-4.8 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS, USER_IN_DEF_DKIM_WL autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.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 (lipwig.vger.email [0.0.0.0]); Wed, 11 Oct 2023 11:57:44 -0700 (PDT) On Wed, Oct 11, 2023 at 8:49=E2=80=AFPM Haiyang Zhang wrote: > > > > > -----Original Message----- > > From: Stephen Hemminger > > Sent: Tuesday, October 10, 2023 10:16 PM > > 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 > > > > On Tue, 10 Oct 2023 22:59:49 +0000 > > Haiyang Zhang wrote: > > > > > > > If this an application specific optimization, it should be in a s= ocket 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 appl= ication > > > > 2) that application is difficult to change > > > > > > Yes, the customer actually wants a global setting. But as suggested b= y 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. > > I see. I am updating the doc and variable location for this sysctl tunabl= e patch > as suggested by the reviewers, and will resubmit it. > > I will also work on a separate patch for the setsockopt option. > > I am not sure about adding a socket option, and finding room in the socket structure. See our recent effort reshuffling fields in tcp socket for better performance (stalled at this time). I would rather experiment first with a sysctl.