Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp2308858rwp; Fri, 14 Jul 2023 04:20:38 -0700 (PDT) X-Google-Smtp-Source: APBJJlG2O2YkEUTNo1H3MWTydZ4yAwUoA+6uwggKwTMRbGrSZve+SW2DSxCKaLa2lP6uHOrWIlJ+ X-Received: by 2002:a05:6402:2037:b0:51a:2c81:72ee with SMTP id ay23-20020a056402203700b0051a2c8172eemr4309092edb.20.1689333637747; Fri, 14 Jul 2023 04:20:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689333637; cv=none; d=google.com; s=arc-20160816; b=DObr02jvZuUy4f7NT+VJoOBhK63rNM7JV1CgMevIEIxoLGp5Y9tlzjJca9YXSOYIjw DY5vcPdxxpm8WZDRFuO319tgrVrfB3ca7mKne7JAcYtmtrRdltW1NWjU1ch1bXH63wh8 J4XX2VHU7es2fvuIUB5/iSmkEcHkZmPHiF875jBbWX5+vmuoyGgeygS9ORE5NhD/itkl 5hs5FdhR5oJ1jIpUDLIG63oPMxUDJaTDaSkqKzW2q5+8C/De2e4Szb2sCfChE9t1T0LD JtFzo3AL4C5GL4tclgg3lpDnNf61vT0HvrVEYuw63OLnVDjjuh+70c4r1fM6SOgWhjTE imhQ== 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=iLc4IFOrSQMumdSS27cGww/H0solCQj99/m3cUx+za0=; fh=uOFQKfVrKMs2/SVr+Nv6KJQRqPF7AWOfsJOM80g8A6s=; b=09R/8GX/ULroxB7fbfiiSPFYSVZL4tsYyRZBPspCAz+sKqlDGsVanWL5gGiy5VZkyo moyvTXiezn1JyN6g58fVbjg1X7LxFMx+rmdoFD4j9eIWpmyt3LII6+Gu3V29grmF0TcF q5TN4UenBBQF6J5pCeelin8PR14vMPfyEVvwixqaqWiaJCpXzwwakVOLJSBXwDCyOyvD VqbihTDjZZRYiy6X7dJNHULREnLi4o7EkiZH1NJZ9iih0Gyz/N2Crhly4+PhmfasIb5R zguwbeptazBC43kg9a6s5HzvnK/Wzzsi3LRKVSoJOkaINbrPfb0/r/AY7vcBc4dMpEbT WNAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=U0+zCc7J; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u4-20020a056402064400b0051e28d0feb1si8322782edx.382.2023.07.14.04.20.13; Fri, 14 Jul 2023 04:20:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=U0+zCc7J; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235630AbjGNJ4R (ORCPT + 99 others); Fri, 14 Jul 2023 05:56:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45340 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231362AbjGNJ4Q (ORCPT ); Fri, 14 Jul 2023 05:56:16 -0400 Received: from mail-yb1-xb42.google.com (mail-yb1-xb42.google.com [IPv6:2607:f8b0:4864:20::b42]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2F5E71989; Fri, 14 Jul 2023 02:56:15 -0700 (PDT) Received: by mail-yb1-xb42.google.com with SMTP id 3f1490d57ef6-c15a5ed884dso1607291276.2; Fri, 14 Jul 2023 02:56:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1689328574; x=1691920574; 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=iLc4IFOrSQMumdSS27cGww/H0solCQj99/m3cUx+za0=; b=U0+zCc7J47tgv3aokD+C9AbGUM0547IcCiSQEMzpBI+mYOOCtmzjv7TLV+15+Way2l uIapCaUXBbx/phM9GIB5BFOIQNEHzbA7jNpWh7+Q0iZmZlO65IBlPd0HnXlJWqMc85kk H5Q4LKdYKUNGqjL37XpunuGMoJ+Mtpl/BpDiZ03rfuXmWzrYel5MjIzmIiBpL+k04NA0 kIairDRA5S1vy0oVMkSwlo7M5XJ/2BC54TEVtGPKe6UNZB69tMRoq1VkITMgaXFHnnev jeNCPG4T6jWGDnPKvbonN9yBfdH9GzBYSvFo4RyjgabhCFa4S3I4hdoNRXo1mIFSILk5 15TA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689328574; x=1691920574; 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=iLc4IFOrSQMumdSS27cGww/H0solCQj99/m3cUx+za0=; b=CuG1wJK4rCKUeQrs4VmvNSzlLQlFVi2ZuQygDuSfZpeJW8pGKCbMpHRdVSJP8Db4oL 56zM0z16dwhz9sA1lJL0osvIUQk6jzrJUgc3UzwKdFl9ta27kfGtWBTJB3UDp9CZBDDK +Reah7AcM+F7LfkoqsTWJ2RZgKO8WBkc/NzoA16W0iH++2SJwbCu36WCFdNiRdMABnXm XYSyXxUeRUldK3kvu4nqYFOdGt/lBiQBmwNUWiqtjvDjDqAyUlAedRRdkp6dXb3Dr58v LZXtKZcMgVglCczkvX7ce3tqGJtOYEMEufR6vZTlFVPz4aHztjjVkfUf1n+lF/gTYYEv 03og== X-Gm-Message-State: ABy/qLZi4k6YPzzIMNE21fHX7+iga9kPqaweKN0mrem0do0+WlJpi+6S BCPmf+ipdMuAcRyx7PmFtghOB9t/7S/wl4aChuI= X-Received: by 2002:a25:32d8:0:b0:ba7:7664:916b with SMTP id y207-20020a2532d8000000b00ba77664916bmr3607425yby.20.1689328574374; Fri, 14 Jul 2023 02:56:14 -0700 (PDT) MIME-Version: 1.0 References: <20230713112404.2022373-1-imagedong@tencent.com> <04a96ba2-6952-e6de-93a2-dc2998ce519d@infradead.org> In-Reply-To: <04a96ba2-6952-e6de-93a2-dc2998ce519d@infradead.org> From: Menglong Dong Date: Fri, 14 Jul 2023 17:56:03 +0800 Message-ID: Subject: Re: [PATCH net-next v2] net: tcp: support to probe tcp receiver OOM To: Randy Dunlap Cc: edumazet@google.com, ncardwell@google.com, davem@davemloft.net, kuba@kernel.org, pabeni@redhat.com, corbet@lwn.net, dsahern@kernel.org, kuniyu@amazon.com, morleyd@google.com, imagedong@tencent.com, mfreemon@cloudflare.com, mubashirq@google.com, netdev@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 13, 2023 at 11:43=E2=80=AFPM Randy Dunlap wrote: > > > > On 7/13/23 04:24, menglong8.dong@gmail.com wrote: > > diff --git a/Documentation/networking/ip-sysctl.rst b/Documentation/net= working/ip-sysctl.rst > > index 4a010a7cde7f..3de2dce74037 100644 > > --- a/Documentation/networking/ip-sysctl.rst > > +++ b/Documentation/networking/ip-sysctl.rst > > @@ -694,6 +694,20 @@ tcp_retries2 - INTEGER > > RFC 1122 recommends at least 100 seconds for the timeout, > > which corresponds to a value of at least 8. > > > > +tcp_oom_retries - INTEGER > > + RTO retransmissions count of the receiver is recognised as OOM. > > + Given a value N, a hypothetical TCP connection will enter probe > > + state if N times RTO retransmissions performed and every > > + retransmission gets a pure ack, who doesn't contain SACK block. > > ACK > > + > > + The default value is 0, which means disable the OOM detection. > > + If disabled, skb will be dropped directly, without sending an > > + ACK, when rmem schedule fails. The function is valid only if sack > > SACK > > > + is enabled. > > + > > + 3 is the suggested value to enable this function. Do't make it > > Don't > > > + greater than tcp_retries2. > Thanks! I'll fix them in the next version. > -- > ~Randy