Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 03994C433FE for ; Thu, 6 Jan 2022 04:20:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232714AbiAFEUV (ORCPT ); Wed, 5 Jan 2022 23:20:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33922 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232662AbiAFEUS (ORCPT ); Wed, 5 Jan 2022 23:20:18 -0500 Received: from mail-yb1-xb36.google.com (mail-yb1-xb36.google.com [IPv6:2607:f8b0:4864:20::b36]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 529E5C061245 for ; Wed, 5 Jan 2022 20:20:18 -0800 (PST) Received: by mail-yb1-xb36.google.com with SMTP id y130so3896053ybe.8 for ; Wed, 05 Jan 2022 20:20:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cloudflare.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=GsGW9DNhuNH7p1O6NbP2cuAbbWSM892ZOKia8JCPAi8=; b=lzpi7Ju74QWO7pv+/u1i3BlgRd+Kn7CiOpCzX92ZpVYszKhJTBWgXNibg0U78zMjGT wCFoPGQ449w1EouFhgNb+Afjn2hq16mWdUsbwF3sW+9UJWyhlfkvayuoYAhSMP8fSU/8 wTQN7RqyNB52H88cee6C1Dk1srhlSrWcGXlqg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=GsGW9DNhuNH7p1O6NbP2cuAbbWSM892ZOKia8JCPAi8=; b=vnecvZiZfTpNXORCj1d9pqt0oIdpY61MUXSSvABuq8fHI5KlR1ChiODD9lOZaLzmmA IrUPu63ufpL6D4Gi+7ff2VWjQkral9oQlhC4fH9tikgo4m32QDjCAIWd/82XfL44DiLD cYlLpefUO23ulWj0uoCoS6oNDfuWQvueFVcMtrgCmZC2rdB9O+AAtpbvt+vECwrdemo+ u3X0SRHha/HQTKEl80WO4iEQ5W9pLiO2Nz8mbHa753auafy3PBtDvZmBBJ+CN2IanrwA n5nKz7wlsWN5QXUZL8KJpwxyQXh2lfxGnSqmK9OXq6RI+sbDtwAXE2WlIio5W/457cwg 9TAg== X-Gm-Message-State: AOAM530R+g0bFzR/TzEG8IDbuawq2eitD2ljZMRLad8oqEYF8kEHLNB/ mb/uJPHtgmA0MCpqgPcaRCugnaLRfVa/5HVGuHhM2A== X-Google-Smtp-Source: ABdhPJz1JjVsZk6MYEBez9UAq5bXpvg3c6tBynFT3QBqv7f/JrewkZqfyidl4N7dTj4EnydJIA7hqgWrwy7h+eopH2c= X-Received: by 2002:a25:3b10:: with SMTP id i16mr54228168yba.292.1641442817468; Wed, 05 Jan 2022 20:20:17 -0800 (PST) MIME-Version: 1.0 References: <20220104003722.73982-1-ivan@cloudflare.com> <20220103164443.53b7b8d5@hermes.local> In-Reply-To: From: Ivan Babrou Date: Wed, 5 Jan 2022 20:20:06 -0800 Message-ID: Subject: Re: [PATCH net] tcp: note that tcp_rmem[1] has a limited range To: Eric Dumazet Cc: Stephen Hemminger , netdev , LKML , kernel-team , "David S . Miller" , Jakub Kicinski , Jonathan Corbet Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 4, 2022 at 12:33 AM Eric Dumazet wrote: > I guess you have to define what is the initial window. What I mean here is the first window after scaling is allowed, so the one that appears in the first non-SYN ACK. > There seems to be a confusion between rcv_ssthresh and sk_rcvbuf > > If you want to document what is rcv_ssthresh and how it relates to sk_rcvbuf, > you probably need more than few lines in Documentation/networking/ip-sysctl.rst I can't say I fully understand how buffer sizes grow and how rcv_ssthresh and sk_rcvbuf interact to document this properly. All I want is to document the fact that no matter what you punch into sysctls, you'll end up with an initial scaled window (defined above) that's no higher than 64k. Let me know if this is incorrect and if there's a way we can put this into words without going into too much detail. > Please do not. We set this sysctl to 0.5 MB > DRS is known to have quantization artifacts. Where can I read more about the quantization artifacts you mentioned?