From nobody Thu Jun 29 09:51:11 2023 X-Original-To: freebsd-transport@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4QsDH73wxSz4k5dr for ; Thu, 29 Jun 2023 09:51:15 +0000 (UTC) (envelope-from muralik1@vmware.com) Received: from MW2PR02CU002.outbound.protection.outlook.com (mail-westus2azon11013006.outbound.protection.outlook.com [52.101.49.6]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.protection.outlook.com", Issuer "DigiCert Cloud Services CA-1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4QsDH650pCz4W7q for ; Thu, 29 Jun 2023 09:51:14 +0000 (UTC) (envelope-from muralik1@vmware.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=vmware.com header.s=selector2 header.b=Xsyv0HE4; spf=pass (mx1.freebsd.org: domain of muralik1@vmware.com designates 52.101.49.6 as permitted sender) smtp.mailfrom=muralik1@vmware.com; dmarc=pass (policy=quarantine) header.from=vmware.com; arc=pass ("microsoft.com:s=arcselector9901:i=1") ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gQ/6rHlJ3P8UBdvuaREGWvtU8NtdcOqzDG1srJ/VUoXYF6QKXz3wewQ2abha2MLBhkZB6fZDLjLS35uue8sBZqZDE2nI+zTfitdYQClCcyUBkaPFkDDGt6A5oxFT9hWQK2+jAtyq8lPsfU9CxWVs010xIUmNXjgLv4YSPYkZjSJyFlxgFGgQIn+GvoNffDzxKJg44eUVKhIHfe5uJ/QRuZZqqE+kSuJFRJI2D1wZuCjPUebYjU6l+m85oR1MvVgVUu4jHnuiBzhVlIy6V+6FBzp4KzuA+82rEbTuqdeI/yTLOHFyh0VsuG/pIEoMF2TfXnNYoBpGqk0WSBX6ENWMzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=X8BA7l1ZrNDl7sNhvj+In4v2gc1v/FzKdMp+FfH+Xcg=; b=bH+q+iLMSQ7Qawb9y8TCCwhPrao+LHY9ORCJwA/ugJl9W3cJJOpZOt0LOYcCLDRhfFKEgJtudmPv+eCBfOWRh2/ia1pA24HGBck2w7+6ItT+6z2zhVqPIcJTIM1/BMmiddPpxGKxLIAifBBqs07lI3mLPY+c1qU9F0Te3HDDUS6fgFDCX3C9sjddT+rSPjjYPBurWyP7Gw3kN49gNOoJ27ML7sywyDWeZE3MZMZVVQm3w1Ze8+zAK5TgeQS1Srvac8jJYplDHmW0nO9TUvSgHg1FSHkPGT/vp2600YKJDIaegdZRsnCZmfhacYYKlbg9w/MdEJqMs2CwcsBydLyNaA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=vmware.com; dmarc=pass action=none header.from=vmware.com; dkim=pass header.d=vmware.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vmware.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=X8BA7l1ZrNDl7sNhvj+In4v2gc1v/FzKdMp+FfH+Xcg=; b=Xsyv0HE4WYGpFDDQRik2j20KuO44AuTG31WPk9jKZoBBUp6uEMQSr6qjoh+yqzIWEzESjkIeQ00hokktOp7o1aaF6IQSXZRGHzhUq6sk5IiaXmw7MuQzs0hJVGixi/4fniOdDdWxEs1cdcRdoT9vVq8RWs7AtHU4cSiV1H6QRR4= Received: from PH0PR05MB10064.namprd05.prod.outlook.com (2603:10b6:510:29d::8) by CO6PR05MB7540.namprd05.prod.outlook.com (2603:10b6:5:340::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6521.26; Thu, 29 Jun 2023 09:51:11 +0000 Received: from PH0PR05MB10064.namprd05.prod.outlook.com ([fe80::c63e:75e8:e8bf:a593]) by PH0PR05MB10064.namprd05.prod.outlook.com ([fe80::c63e:75e8:e8bf:a593%4]) with mapi id 15.20.6500.026; Thu, 29 Jun 2023 09:51:11 +0000 From: Murali Krishnamurthy To: "freebsd-transport@FreeBSD.org" Subject: FreeBSD TCP (with iperf3) comparison with Linux Thread-Topic: FreeBSD TCP (with iperf3) comparison with Linux Thread-Index: AQHZjxV6iK08kPjzWEy1GrMDiqKRKg== Date: Thu, 29 Jun 2023 09:51:11 +0000 Message-ID: Accept-Language: en-IN, en-US Content-Language: en-IN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-traffictypediagnostic: PH0PR05MB10064:EE_|CO6PR05MB7540:EE_ x-ms-office365-filtering-correlation-id: 40d6ec62-a152-4fcb-9073-08db78865eb8 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: De3bp0LWh3FLNUXw2s7XQ4/C+oxtOjAV0ismj8g0JrxGESQB5krp0U8cmgYIXIRthHqqmxJkQsyce9eK8XnFQUNSTIkexnJhpagpjuDG2H0sTfs01RcPYmp8ZXzXW+FobIr06Rh0QyKDTFF7shOyznm5+jyPn14AJWDUtJ8DEpS6M8Ba7vwCQCl6rc0CGHxnEXunCBDNqYBTJ4TkTrpkxpvtM/jDKrEezGBG/tYFEU4AyCgMjbBgqk7+2kxavKeV8pD1J3xARdrh/HH3z1HLVA0qgBbhflZL8ZDXQGr1Mnq8XNXJHau4jEIhWyskrfrVtFR3ml6apy/CvSCcNgvMxdKBnjLr1V2ksXqtdVRTHYal8gz15OBAQUEh1rqK0+ovNOl0758nG+gFoY+iiwLXDsmzpvSXzq3OAloomZbFeldjmxji3C6yFcMZ9cTdj8NsTpggOJpVFzXD4oyPipz8drL+/vMqBJnRXVcovuisGz2aBFVoDF3mXk4qv9IedQZ8iGGImepZ/5Erc/wxJwoBXK2j0Vb/ytPIVlTN56xBR9vUrsw2UVtUIDmuxuAB7XX5ansTHCq/DURmWY0G/am0n3YJGdNkNBNfUXLq+VZP+2sewOr/AOzaR0byxq22FMo/8P1SUWuyZemWwRc2wZB9yur3xERXkaFi/jx26gkjxOY= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PH0PR05MB10064.namprd05.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(39860400002)(346002)(136003)(396003)(376002)(366004)(451199021)(38070700005)(122000001)(38100700002)(83380400001)(33656002)(86362001)(9686003)(71200400001)(91956017)(41300700001)(66946007)(316002)(66556008)(55016003)(8936002)(8676002)(66446008)(76116006)(26005)(6506007)(6916009)(7696005)(186003)(66476007)(64756008)(2906002)(66899021)(52536014)(478600001)(5660300002);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?KJsodru4GrFomic3MPdfUlQnEqN1ec1b9jIJi073WEhxb2FwOZzp8zFSM7DF?= =?us-ascii?Q?eVuNAvZeWwhv2QynjUfqf2tDOMhY8yKjf1fhrjpT4+mUwUOyJUJvFIEsfEMv?= =?us-ascii?Q?2pAJfD0drdkoy48Qv/8UMmE7oHbNdC1nBCY4AzWInavtYJ1Hh6VUeMgIvruB?= =?us-ascii?Q?nW9xBT1EikeE+dpTiWqL6G7tmBm6D21ftMJhahWwSvf73NkcATCBdWpf7Dnr?= =?us-ascii?Q?ZWREcf3ZVDmlc14oKMp8Uu7/8+cjbwG1kas+6n2oOs1afwfns66jAKHK5xrn?= =?us-ascii?Q?Go75YUeIFHBEWMd3w6GzHX/btc8iao09++74WjQSLgeLTxcGZ/4fvl3WQkVd?= =?us-ascii?Q?rhhpiH4fqIBU4uadRLRah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-ascii?Q?LpTsufFEhMZhb6uNbUJjGhVzw0UJ8ZFJ8m+FAJqLcqokA0sr/p9bHgbXbLOz?= =?us-ascii?Q?RTf9MQur9aEosr/V6XpZfsm0JA37tud4pmJy0zqXwXxj9kIdl8GaIH+q/aDG?= =?us-ascii?Q?FxXYGjHVeDduE57yUJXzM6u2g1gGEAnBOIuwWkM/kGGjLTchJKQKIvsPGwGi?= =?us-ascii?Q?NKiwfJY0SgBzCyoz6uRJGiVXybiWzk3PJAUNxbh/MoDjFmkKuOBXyyaOqBSH?= =?us-ascii?Q?e11xMDcVCuXiPvHzpgwZ5Q3dx7whlLDsGqDts3oXpsqCC4nbvb7OQ1NvHQNk?= =?us-ascii?Q?FqqtzQlLFhofmLfbAQhjM5wkmSKsikewra3hwK3klG2RAptxzh7YUUoAd0pN?= =?us-ascii?Q?aA=3D=3D?= Content-Type: multipart/alternative; boundary="_000_PH0PR05MB10064288C78F8F3A0116D023DFB469PH0PR05MB10064na_" List-Id: Discussions List-Archive: https://lists.freebsd.org/archives/freebsd-transport List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-transport@freebsd.org X-BeenThere: freebsd-transport@freebsd.org MIME-Version: 1.0 X-OriginatorOrg: vmware.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: PH0PR05MB10064.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 40d6ec62-a152-4fcb-9073-08db78865eb8 X-MS-Exchange-CrossTenant-originalarrivaltime: 29 Jun 2023 09:51:11.2762 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: b39138ca-3cee-4b4a-a4d6-cd83d9dd62f0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: MuemmuWp888ds0lYDI4bAShD7FNipkFf+F0iqHjwXdl5Q9drNaAZA8AhJJE7hQO98ITsmXC2ZlyFujiJUsDQsA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO6PR05MB7540 X-Spamd-Result: default: False [-11.50 / 15.00]; DWL_DNSWL_HI(-3.50)[vmware.com:dkim]; WHITELIST_SPF_DKIM(-3.00)[vmware.com:d:+,vmware.com:s:+]; ARC_ALLOW(-1.00)[microsoft.com:s=arcselector9901:i=1]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-0.999]; NEURAL_HAM_SHORT(-1.00)[-0.999]; DMARC_POLICY_ALLOW(-0.50)[vmware.com,quarantine]; R_SPF_ALLOW(-0.20)[+ip4:52.100.0.0/14]; R_DKIM_ALLOW(-0.20)[vmware.com:s=selector2]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; MLMMJ_DEST(0.00)[freebsd-transport@FreeBSD.org]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:8075, ipnet:52.96.0.0/12, country:US]; TO_DN_EQ_ADDR_ALL(0.00)[]; DKIM_TRACE(0.00)[vmware.com:+]; RCVD_COUNT_THREE(0.00)[3]; FROM_HAS_DN(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[52.101.49.6:from]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; RWL_MAILSPIKE_POSSIBLE(0.00)[52.101.49.6:from] X-Rspamd-Queue-Id: 4QsDH650pCz4W7q X-Spamd-Bar: ----------- X-ThisMailContainsUnwantedMimeParts: N --_000_PH0PR05MB10064288C78F8F3A0116D023DFB469PH0PR05MB10064na_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hello FreeBSD Transport experts, We are evaluating performance of FreeBSD 13 VM on ESX hypervisor in long RT= T setup and happened to compare the performance with Linux VM with same hyp= ervisor. We see a substantially better performance with Linux getting close to the B= DP limit, whereas BSD 13 not filling up the pipe enough. We are trying to figure out what could lead to such a huge difference and f= eel we could be missing something here. Could you please help us to know if there is a way to make it perform bette= r? Setup details: We have 2 ESX hypervisors where 2 VMs (one FreeBSD 13 and one Ubuntu 23.04/= Linux kernel 6.2) were launched on each hypervisor. Then we ran iperf between, 1. BSD 13 <-> BSD 13 2. Ubuntu <-> Ubuntu Even though the network environment were same in both cases, we see Ubuntu = performing much better. Below are connection parameters: Socket buffer: 16MB TCP CC Algo: Cubic. We used this as this is suitable for Long Fat Networks. Ping RTT: 100 ms between the two end points. We kept all other parameters to default on both Linux and BSD. BDP for 16MB Socket buffer: 16 MB * (1000 ms * 100ms latency) * 8 bits/ 102= 4 =3D 1.25 Gbps Ubuntu consistently hits around 1 Gbps Bitrate almost reaching the BDP limi= t. FreeBSD 13 shows a Bit rate between the range of 300-600 Mbps only. So it s= eems to be doing half as good as Linux. For lower socket buffer of 4MB, both FreeBSD and Linux seem to do same and = able to meet BDP of 300 Mbps consistently. Larger socket buffer seems to have an issue. Please let us know if there are ways to fine tune the system parameters to = make BSD perform better. Or any other suggestions/queries welcome. Regards Murali --_000_PH0PR05MB10064288C78F8F3A0116D023DFB469PH0PR05MB10064na_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hello FreeBSD Transport experts= ,

 

We are evaluating performance o= f FreeBSD 13 VM on ESX hypervisor in long RTT setup and happened to compare= the performance with Linux VM with same hypervisor.

We see a substantially better p= erformance with Linux getting close to the BDP limit, whereas BSD 13 not fi= lling up the pipe enough.

We are trying to figure out wha= t could lead to such a huge difference and feel we could be missing somethi= ng here.

 

Could you please help us to kno= w if there is a way to make it perform better?

 

Setup details:

 

We have 2 ESX hypervisors where= 2 VMs (one FreeBSD 13 and one Ubuntu 23.04/Linux kernel 6.2) were launched= on each hypervisor.

Then we ran iperf between,=

  1. BSD 13 <-> BSD 13
  2. Ubuntu <-> Ubuntu

     

    Even though the network environ= ment were same in both cases, we see Ubuntu performing much better.

     

    Below are connection parameters= :

    Socket buffer: 16MB<= /span>

    TCP CC Algo: Cubic. We used thi= s as this is suitable for Long Fat Networks.

    Ping RTT:  100 ms between = the two end points.

    We kept all other parameters to= default on both Linux and BSD.

     

    BDP for 16MB Socket buffer: 16 MB * (1000 ms * 100ms latency) * 8 bits/ 1024 =3D 1.25 Gbps

     

    Ubuntu consistently hits around= 1 Gbps Bitrate almost reaching the BDP limit.

    FreeBSD 13 shows a Bit rate bet= ween the range of 300-600 Mbps = only. So it seems to be doing half as good as Linux.

    For lower socket buffer of 4MB,= both FreeBSD and Linux seem to do same and able to meet BDP of 300 Mbps co= nsistently.

    Larger socket buffer seems to h= ave an issue.

     

    Please let us know if there are= ways to fine tune the system parameters to make BSD perform better.

    Or any other suggestions/querie= s welcome.

     

    Regards

    Murali

--_000_PH0PR05MB10064288C78F8F3A0116D023DFB469PH0PR05MB10064na_--