Received: by 10.223.185.116 with SMTP id b49csp1041598wrg; Fri, 16 Feb 2018 11:19:38 -0800 (PST) X-Google-Smtp-Source: AH8x227MFlP5n/Bjjm/cQRIGZq1CqcncD+G6hpyMHz1uqIUy/q026j8jf7LqHuliv3lqb2RmMn0i X-Received: by 2002:a17:902:5902:: with SMTP id o2-v6mr6561779pli.79.1518808778608; Fri, 16 Feb 2018 11:19:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518808778; cv=none; d=google.com; s=arc-20160816; b=QZupG+mIB3OIHoFRxGdbqYf1fdxDqhdzSAHrktww1VuOHnucBOqQScFpDqOQd/Z3A2 GvDf4jyNoBaget4nx0dMNgywy1mTUS4dJjaUG4dd/qGoKCzQ84fbn0BV3N3v4cFr5FSz /CA9jzbFox9X1Bd+yUkDspiYE7216IIVKBGozUaX/NuXXLX0xV6DN5bbRN9wUXNrVQb2 sjHw3oQJaRCSzwtgZ1LOsxme9EB+2XdgammZMB4hmIOg9whsW8eE+tsnFM02DNdGFKlR pH2ZjHnEZcKznfiNmsMvE44BGvzHZOzJ8EQrfA5SLZrvnTLkRGbDfCNHBXqcNTsjnG0h 0IDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:references:in-reply-to:mime-version :dkim-signature:arc-authentication-results; bh=XN5a/UwZipPCyvEdWRbBTIk2PxPWvxyJ6cQvf6TNS3g=; b=G3aSB2MfTEKpCY9pHIeIw8B2rpJ7h0bq4auCmhm7m3mUBlh6SepQQTkCz1MfRw2P1M aFM0gX5DDNZnuk66z1dC4bBqMBEf4L3dg3OQwvSVYfHn7G0qTwWUeAaqoOwmgzkzXtm4 M4zMNBlGXe6uyIVPRUxKz3hiOEGgnQKwv654jK6V/Ch5I/1dfWBVoMxdyHvdBqLhTPAa j6wg3L8ltEghGI/rBUUVDCMk/Tqb5FFwTdxkHu4b4vPN75DM2PeEyc6TtOfNZP+w/kcb epngNh0cgpAWdJM7LLmB+aPP2Uz7/IZEZ2cULt0ou3Btu2VUeP15Zsh/epxmuy/T2Skv xJ3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=NLQ2KTJM; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id f130si4659004pgc.57.2018.02.16.11.19.23; Fri, 16 Feb 2018 11:19:38 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=NLQ2KTJM; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1758737AbeBPQ5f (ORCPT + 99 others); Fri, 16 Feb 2018 11:57:35 -0500 Received: from mail-wr0-f181.google.com ([209.85.128.181]:41255 "EHLO mail-wr0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758690AbeBPQ46 (ORCPT ); Fri, 16 Feb 2018 11:56:58 -0500 Received: by mail-wr0-f181.google.com with SMTP id f8so3544196wrh.8 for ; Fri, 16 Feb 2018 08:56:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=XN5a/UwZipPCyvEdWRbBTIk2PxPWvxyJ6cQvf6TNS3g=; b=NLQ2KTJM85QDkDH3CRyGmWqXthD0piuv2wL4/3kf4eFkk5k1kTlrt1y58X2tGlFNbm mx5GIi06anKpgFzwkosLWQPK5ymcYpzz2TWe7eNMExZfG81GQ1xEKw0w6l9k5IQTp8JW U2XlyOWTBJEok3yNP9uiqxFL+eLTwOJpjNFiIplB31xf1aEHpRr2OMoVkg6iSoeChl3P Zvd4ITFukZZJsAfnT14wY13r6rwTQoJP0wbmYku/lBY+ZTrIh/xHBQQiC3GTJD17qzcp cDl+mKsFrLtDxejl7OHoD3tqaHyh/Y8l8EjVp7MWdDtlo006Pi6dpBMRqxqnUJqArY9L 6nIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=XN5a/UwZipPCyvEdWRbBTIk2PxPWvxyJ6cQvf6TNS3g=; b=QfG87dOTdu6rlVsFDwc05onu/9Djh6O3l4301kHiwhRTVd2hfOzXarQ03UAM6HNUEB IseKxvD1dPoM1aK78vSaOL44vAqIXfJXPJoqP3FvOrehRvwGkIcQ5p8cUhMDabwtYIAq TpeF4if9JrBj6NE5iC/VMgBwiEj+D2k95H0lzH5drT6iRW1L8EWL4D0AskpuRKvlt9Lb qYKPCS4gnMG3JkwIN9Fa/WkJu9L82c4+wj+Ywjnvis3167kZF4rL9jZ7K5ZMo8HE+EDX SIMkbmjZ6lP0RZUbRJcx8o8KNcISGaChPElsn5eLwflctsaUtM1yTeWyYUD5W1QaE+Va hLEQ== X-Gm-Message-State: APf1xPA2+TMG3HgfclUEOh/fehUbRpSXqEbLEuaHkBEn/8QpBzxBjESp o7Rw9a0rVPeGjVWZjBYyhJI2ShQrlSw4+xafgJFXTQ== X-Received: by 10.223.182.156 with SMTP id j28mr6103047wre.66.1518800216836; Fri, 16 Feb 2018 08:56:56 -0800 (PST) MIME-Version: 1.0 Received: by 10.28.217.199 with HTTP; Fri, 16 Feb 2018 08:56:35 -0800 (PST) In-Reply-To: <061740d0-9876-c905-7466-ef225ec3cdc5@applied-asynchrony.com> References: <1697118.nv5eASg0nx@natalenko.name> <2189487.nPhU5NAnbi@natalenko.name> <061740d0-9876-c905-7466-ef225ec3cdc5@applied-asynchrony.com> From: Neal Cardwell Date: Fri, 16 Feb 2018 11:56:35 -0500 Message-ID: Subject: Re: TCP and BBR: reproducibly low cwnd and bandwidth To: =?UTF-8?Q?Holger_Hoffst=C3=A4tte?= Cc: Oleksandr Natalenko , "David S. Miller" , Alexey Kuznetsov , Hideaki YOSHIFUJI , Netdev , LKML , Eric Dumazet , Soheil Hassas Yeganeh , Yuchung Cheng , Van Jacobson , Jerry Chu Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Feb 16, 2018 at 11:26 AM, Holger Hoffst=C3=A4tte wrote: > > BBR in general will run with lower cwnd than e.g. Cubic or others. > That's a feature and necessary for WAN transfers. Please note that there's no general rule about whether BBR will run with a lower or higher cwnd than CUBIC, Reno, or other loss-based congestion control algorithms. Whether BBR's cwnd will be lower or higher depends on the BDP of the path, the amount of buffering in the bottleneck, and the number of flows. BBR tries to match the amount of in-flight data to the BDP based on the available bandwidth and the two-way propagation delay. This will usually produce an amount of data in flight that is smaller than CUBIC/Reno (yielding lower latency) if the path has deep buffers (bufferbloat), but can be larger than CUBIC/Reno (yielding higher throughput) if the buffers are shallow and the traffic is suffering burst losses. > >>> If using real HW (1 Gbps LAN, laptop and server), BBR limits the throug= hput >>> to ~100 Mbps (verifiable not only by iperf3, but also by scp while >>> transferring some files between hosts). > > Something seems really wrong with your setup. I get completely > expected throughput on wired 1Gb between two hosts: > > Connecting to host tux, port 5201 > [ 5] local 192.168.100.223 port 48718 connected to 192.168.100.222 port = 5201 > [ ID] Interval Transfer Bitrate Retr Cwnd > [ 5] 0.00-1.00 sec 113 MBytes 948 Mbits/sec 0 204 KBytes > [ 5] 1.00-2.00 sec 112 MBytes 941 Mbits/sec 0 204 KBytes > [ 5] 2.00-3.00 sec 112 MBytes 941 Mbits/sec 0 204 KBytes > [...] > > Running it locally gives the more or less expected results as well: > > Connecting to host ragnarok, port 5201 > [ 5] local 192.168.100.223 port 54090 connected to 192.168.100.223 port = 5201 > [ ID] Interval Transfer Bitrate Retr Cwnd > [ 5] 0.00-1.00 sec 8.09 GBytes 69.5 Gbits/sec 0 512 KBytes > [ 5] 1.00-2.00 sec 8.14 GBytes 69.9 Gbits/sec 0 512 KBytes > [ 5] 2.00-3.00 sec 8.43 GBytes 72.4 Gbits/sec 0 512 KBytes > [...] > > Both hosts running 4.14.x with bbr and fq_codel (default qdisc everywhere= ). Can you please clarify if this is over bare metal or between VM guests? It sounds like Oleksandr's initial report was between KVM VMs, so the virtualization may be an ingredient here. thanks, neal