Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp446496ybg; Wed, 3 Jun 2020 05:05:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwWkLI8JjepFpv1TOnhODIP40XximRKs7HHWohjXpMgzhC99uxrfvEpnvbOcrZPMH7ZDWmd X-Received: by 2002:aa7:d9d6:: with SMTP id v22mr12207106eds.66.1591185956095; Wed, 03 Jun 2020 05:05:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591185956; cv=none; d=google.com; s=arc-20160816; b=ydD19+KRx9rlhZI9TfJlLCj3ro6FBf/PIxDzLVqZPzQ/x1g2Daqw4685jN38vDFGuP QTNZsWyz0TPOGRP4xyburZm/O6j6zqKQft/B0+Q+e24iYPd2fSd3gY1AsWE5b1EeLmAk ORBaFFcd+5aMXS0gYItOJkZEGuBb4MlsvHk9QXMInIeJL5NgJQCM2lTtXIWTzbwgPZn0 BCUmXROvdQ8aasB0SYNSxOdJNMpF3vQUs5f/ZM4Hqx4rfpCPiplQDcSLuVrVPg+vo7td kVFzMNm5IeEZFS/ep9AOoSBReZyQLwiQWNZD3tamPl9Kma0yoaKR6YlsqJ0uLApZz9Qa eozw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=amz3ptynYvAUbH138IEG0LpKVjBvo8sPz/3+J+n07a8=; b=YheIdTSIY3t+P3iaunCU3L30V1MZoQxccxm3x+mOrknzAAOGoUuy0wLQBOgKpght2t XmnntRQrvIJukQoNlr1K6Cd4Lq1ZptHMZOtJCzQ96kigxuobEVNtZFprVIr1FAZVKFrD fJgFIIg0c49x7RaI2/9+QewXXDXzq10r5kFknsY+lBoOXJ758pucmHEJ9IfcKPTGbMKc ChPPcaJCumvuaEM3/tjvEymmARF9uU3c8qDdkLw2mWRxN3Jw8XXFwNNXy37HL27bpVoA U8+xszdTDKi4rAXxw3KvctAAKIsAFS2zEeqG5APBYX1hqQo2n6efUX8u6PZq6PmGhcwj JwWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=vHb999op; 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=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z14si1024116ejr.261.2020.06.03.05.05.32; Wed, 03 Jun 2020 05:05:56 -0700 (PDT) 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=@google.com header.s=20161025 header.b=vHb999op; 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=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726446AbgFCMC5 (ORCPT + 99 others); Wed, 3 Jun 2020 08:02:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33512 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725973AbgFCMCb (ORCPT ); Wed, 3 Jun 2020 08:02:31 -0400 Received: from mail-vk1-xa41.google.com (mail-vk1-xa41.google.com [IPv6:2607:f8b0:4864:20::a41]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6C701C08C5C0 for ; Wed, 3 Jun 2020 05:02:31 -0700 (PDT) Received: by mail-vk1-xa41.google.com with SMTP id m18so397738vkk.9 for ; Wed, 03 Jun 2020 05:02:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=amz3ptynYvAUbH138IEG0LpKVjBvo8sPz/3+J+n07a8=; b=vHb999opMIzMza943w3iNjuwx1RH0ULq9DdNFIBNl056bXrXRIJUZCp5ljes0uQYaC 309fs8zXNrFuwkmvoCWzKa6rp8w9ceaeFZctOEppExt9mu/tjfs7uxgg3XwTDj17BaCx zuOP9aqU7YiYeUOCR996/cgXzMGIUJiha2Iugh6txTnHMKIbNmP2nYml5bi2zGfpnI95 6X/rnhb1zqoT6HuDf6UsdUfLNnVViv0Xht5/UFu06NY4SkwuEPWX8Znuko1EjeNchIYA KD8cWO+wMbh8V0jruPN2A13TRw4dm2Ic+XZt97mUzktOTdnbRmf0ISYUUE7SfY5RQfax Pztg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=amz3ptynYvAUbH138IEG0LpKVjBvo8sPz/3+J+n07a8=; b=p2D3ENfcCG+uGmk6FvrG5889M5taJvUUFAJiVb2saDzdsOAdmnn+YmylAo4EBYmu19 H4ZaFj3EioA6LNSFeHAmYpEAZ0e8wEyMwIsQxJDaEfZrWtIE87tCTpba/Xiw3+W/PDcW UYcJwCwJrsmUx+7ZOrOzLDWoqwdPGXnCVjDApVyKVnuYVaL/x7v286aL5FPDr6n6LLAD 55Vlq9AxX+fs8bM7l8pUttm+Svo7IaK6LW0LY84Hcr2LwWsDbp5DDBEJKaqSrdt0ky21 8aZ2kWTzN1TZKg94nn2MW217XXfTTS9+kuI5iBBp8k2Wke/55EE86hHcrtxjrOA0wgCw qtzg== X-Gm-Message-State: AOAM5313BrQetF40qv/R4EV/IByhEHOS+3gjBb6TDP6+gw1qkROr0tGj qMPTg1VByrckTCqUfdkxY+GqWM/8u7aGqojWiDKrQw== X-Received: by 2002:a05:6122:34:: with SMTP id q20mr7714782vkd.66.1591185750265; Wed, 03 Jun 2020 05:02:30 -0700 (PDT) MIME-Version: 1.0 References: <20200602080425.93712-1-kerneljasonxing@gmail.com> In-Reply-To: From: Neal Cardwell Date: Wed, 3 Jun 2020 08:02:13 -0400 Message-ID: Subject: Re: [PATCH] tcp: fix TCP socks unreleased in BBR mode To: Eric Dumazet Cc: Jason Xing , David Miller , Alexey Kuznetsov , Hideaki YOSHIFUJI , netdev , LKML , liweishi@kuaishou.com, Shujin Li Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 3, 2020 at 1:44 AM Eric Dumazet wrote: > > On Tue, Jun 2, 2020 at 10:05 PM Jason Xing wrote: > > > > Hi Eric, > > > > I'm still trying to understand what you're saying before. Would this > > be better as following: > > 1) discard the tcp_internal_pacing() function. > > 2) remove where the tcp_internal_pacing() is called in the > > __tcp_transmit_skb() function. > > > > If we do so, we could avoid 'too late to give up pacing'. Meanwhile, > > should we introduce the tcp_wstamp_ns socket field as commit > > (864e5c090749) does? > > > > Please do not top-post on netdev mailing list. > > > I basically suggested double-checking which point in TCP could end up > calling tcp_internal_pacing() > while the timer was already armed. > > I guess this is mtu probing. Perhaps this could also happen from some of the retransmission code paths that don't use tcp_xmit_retransmit_queue()? Perhaps tcp_retransmit_timer() (RTO) and tcp_send_loss_probe() TLP? It seems they could indirectly cause a call to __tcp_transmit_skb() and thus tcp_internal_pacing() without first checking if the pacing timer was already armed? neal