Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp733652pxb; Fri, 14 Jan 2022 15:16:39 -0800 (PST) X-Google-Smtp-Source: ABdhPJygcOZF1mfDkvMUvWjGeqoMmTTRSFhqP+5GaMvDwXlpREWGPKAYlcHfjSSAmF7mERv7z1k5 X-Received: by 2002:aa7:c941:: with SMTP id h1mr11015394edt.319.1642202199682; Fri, 14 Jan 2022 15:16:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642202199; cv=none; d=google.com; s=arc-20160816; b=TLX0M4zSb5T8DKOgFeALNq2W2DQrAoo/q7pey/L3Qhw0NHT1jANPsMhVb6XosFSVEA GEpmAoOgSKaCLkna2pHUYe6wM0FGkzpiDcaCg1kTG7CtVXwdOogD4k00/oDLCJts0z+t NRDgbsFx10lzT6Mhw0fkF5qIpJ60KzuhXJYW61440UUTWJCHoFTisdWy2kUTaMrNGjtf /pcM6uZsDUC2qpIDkH+9fO9Z60VyZpPOKGfaEbNqC5cwzzkftRuPx6SRZLNgZD5HAt7X SKQyqvyAt9EdwZ5P2Ssmt5xWI+wIwTKdveFcq+/VFqLJqEuYOJ3SaAA1J16MukFJuoT0 1+Jw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=DdW6l+hnl2A/9fPmp1Ui5Qe2IL3WZGRFxk5bdl0Lrnk=; b=C0XU3aNaduKXcVfCGOXuTwm0PYVVhmrX64xz8sA6L8CJFkc9Kyw+7OqfPlyB8Na4Ig tnN3ITfrDceaAs5e1dGCOMlXttDmvsCyggiKYie075y8xMw5zUcj+aA4yd1ydidiBGSd M6F4KyNq9ODI2Ei9O9F7DIV20NjECLLLc1mQ/2cmdoH+llewxLJv5GJnYiNcjnDdwjLz Ut49hAWkG2Oe0BhFHveoQg6U9dC53FVk8F+mEWSsIkNNOQ8TjE31NHE1jC82QrYFbYr7 HXcELWm6/+d/08yvm/zwkq1VhgXmfaLtE+mUmwxbb6935rYU8LnqcG7vaECDAxmEkfEY Q5cg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cloudflare.com header.s=google header.b=F3S9kP2h; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=cloudflare.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v19si3701071edy.253.2022.01.14.15.16.14; Fri, 14 Jan 2022 15:16:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@cloudflare.com header.s=google header.b=F3S9kP2h; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=cloudflare.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230396AbiANWVD (ORCPT + 99 others); Fri, 14 Jan 2022 17:21:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45852 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230381AbiANWVC (ORCPT ); Fri, 14 Jan 2022 17:21:02 -0500 Received: from mail-yb1-xb2f.google.com (mail-yb1-xb2f.google.com [IPv6:2607:f8b0:4864:20::b2f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2551CC06173E for ; Fri, 14 Jan 2022 14:21:02 -0800 (PST) Received: by mail-yb1-xb2f.google.com with SMTP id m6so27625145ybc.9 for ; Fri, 14 Jan 2022 14:21:02 -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=DdW6l+hnl2A/9fPmp1Ui5Qe2IL3WZGRFxk5bdl0Lrnk=; b=F3S9kP2hnyNAyE16q+blRrSdFaHK9bN2MZwahIQBR08BxTsR+yltlO356a+iuV4rOW JNvwEqBjWxWG9mD0WnGKDtY1aiqbnLv7XoK4HYEORL4zdJMHZ1s01m3K1YzR6g2P5OVo CM1iqTdIaec72CQHMuHG50FrCw4E3c0a5dMh8= 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=DdW6l+hnl2A/9fPmp1Ui5Qe2IL3WZGRFxk5bdl0Lrnk=; b=p46s0jROFwchMnnJy6sD/Q0rK4nzGYjldRd2dWq+PtA17MFQ4rnq6m26XwmFhPdmc5 qkGSjWVdiTZwLca59JQABhYxzzKQ2NsTyXcFE6tpm4fosMtDvz1otvBeAV/RJEBVKwhG YMh4euNfALK3qLzD00DeMW2n7/h6QUeZ8HNDJ0BmNKrbM11X9h8876VbRNKyxSs/OtCV OCPrnnVNQ5y/afLpzl1mNpUMMVh1TrKi+FRk8qfY7nFAWhZQ1y40oQy7g6SMpQ1qvDlo DZ4ayLn8inaAsIqnFsHnfUhi0EH2Bg+TxiMvvkqu2Q+IlUTOZDLargiOfOrGnQepQxXp y5dg== X-Gm-Message-State: AOAM530uPg+YwZDMv3KvI8O2s9SnXI/EXkJ0wpZ5UXA30AdrJd1938wh pWVj/Wscf4wyN8PtpT7DYKJJi0nUDtRLh8aVvw6uWQ== X-Received: by 2002:a25:51c2:: with SMTP id f185mr9453004ybb.677.1642198861338; Fri, 14 Jan 2022 14:21:01 -0800 (PST) MIME-Version: 1.0 References: <20220111192952.49040-1-ivan@cloudflare.com> In-Reply-To: From: Ivan Babrou Date: Fri, 14 Jan 2022 14:20:50 -0800 Message-ID: Subject: Re: [PATCH bpf-next] tcp: bpf: Add TCP_BPF_RCV_SSTHRESH for bpf_setsockopt To: Dave Taht Cc: bpf , Linux Kernel Network Developers , LKML , kernel-team , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Eric Dumazet Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 13, 2022 at 9:44 PM Dave Taht wrote: > Yes, but with the caveats below. I'm fine with you just saying round trips, > and making this api possible. > > It would comfort me further if you could provide an actual scenario. The actual scenario is getting a response as quickly as possible on a fresh connection across long distances (200ms+ RTT). If an RPC response doesn't fit into the initial 64k of rcv_ssthresh, we end up requiring more roundrips to receive the response. Some customers are very picky about the latency they measure and cutting the extra roundtrips made a very visible difference in the tests. > See also: > > https://datatracker.ietf.org/doc/html/rfc6928 > > which predates packet pacing (are you using sch_fq?) We are using fq and bbr. > > Congestion window is a learned property, not a static number. You > > won't get a large initcwnd towards a poor connection. > > initcwnd is set globally or on a per route basis. With TCP_BPF_IW the world is your oyster.