Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp2413968rbb; Wed, 28 Feb 2024 00:33:12 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCU6phfBQTEQ72K1GqpnWTO+XGlGfql31wRN8exzNDRquteMqim4LSLxHPWwVN0LnEpGjRYqIL+MgCyqWgCh/tKnjjcpOYa6BvDlgw8dvA== X-Google-Smtp-Source: AGHT+IFHRKKXRrYDmH0s9l/afK7cB+xlvoqRUcyko+WRmFGZVfQOruVd8jjAMYo9QkCJqfkaDEY4 X-Received: by 2002:a17:906:3659:b0:a3f:29b:7c27 with SMTP id r25-20020a170906365900b00a3f029b7c27mr8021300ejb.4.1709109192631; Wed, 28 Feb 2024 00:33:12 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709109192; cv=pass; d=google.com; s=arc-20160816; b=CnGbV8krPEmWZX3Y4Moh3ZzEBGt5zr6aU8vGuyHpOf4XfTCD7b1CBl1bz2ajhCbsQC mkYEkE5AsgD8PsN33KoitRj+NL/dcjFBwK+96DVWZVz9Zt0+C3xfdJFdbq7LNouysOj7 EkUCAh0RKkmg9sEYcOKQu3uZj6h8lC1I4t16GTvPyK7mrsjb0KLt7EKmoZzEyIM9Seu0 63a3ytGla4kQXHWQoSgi4yn9x1+wf4HMrTrFIdlk3wLculOEnJwvGclaPqsGZ9//TV50 km5LzUMH2F7mkdtL/z4gq9fYBH6BUBiUpRkMFcoCd7s6sN1fHAD/El7ksW9hDmUQHflh dBbQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=t40K0JM0NMfK3mCMUC77qdJh8lHBWSded2PQLMcMHuM=; fh=tZ9za4l+r+0KH/XtZkA9mDDF1B40laUk0/e4TwzrjFg=; b=TkG8TMETXC9E37q9iwLa49FIWGx5cUhBQYlNL8WbbhnoW3Qd1Q8Bam4dPBaJ1dgS/q 8pZLMoK6zky34fABVp12N/vo67nkt3IYMr2tfwZo5zOsUtITBKywOropUJ7+o26b8lV1 xFzIT1BGMVVD2N57XgRhqe/fJ6Hdf+xsyLTmhffVW0VHu7D6tNULJ3zkQFqkwSLFpaHh N8AhrVfMl/wkIXfJnuyRuh1+YgY7CghPSRQQvvOGs4JRR3zDexky0e2RmiIote13vrU8 JChppbPwO8kvXv3NQo79wqKeOZEpYIanCP7VP4MD5jXD+mvDBAQ3P6mlYTax29mligIG xegA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=bPDTLpAT; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-84675-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-84675-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id bn7-20020a170906c0c700b00a3e730bc98bsi1548629ejb.395.2024.02.28.00.33.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Feb 2024 00:33:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-84675-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=bPDTLpAT; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-84675-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-84675-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 0FA181F268F0 for ; Wed, 28 Feb 2024 08:33:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7ED422D604; Wed, 28 Feb 2024 08:32:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="bPDTLpAT" Received: from mail-pg1-f180.google.com (mail-pg1-f180.google.com [209.85.215.180]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 40F242D04C; Wed, 28 Feb 2024 08:32:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.180 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709109169; cv=none; b=BjMGXRw2YAjCmbm40Mc0IaSd7uA32kHvuB6LYeuR1z+owyTx0OPS/JgSD5V35v02cyOox32OFrYmca26kauH6iLWfmBSygf/lLhFEB5wbuPMmGCagnHoM33TM5+rauy+nGAlnOw9CcOxzdAE2cyJoxIpagnPD+ovqU/yelPNe8w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709109169; c=relaxed/simple; bh=t40K0JM0NMfK3mCMUC77qdJh8lHBWSded2PQLMcMHuM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=T39lvtBSXvfQ/ywjsOU3BUBsUVkQBSvW8pGgVEYCtIqg9X/qETz2XsooiHc9nQilZYAAP5sYslTGsMvDb+fVdo/y+7jJ1Hw1ftGcQbFudmnBnlNWUt+B1zha+sf3ZWlXPcW7L4bPRXgngL1J+EVa+UD3z38D8cbXlUZVnjBc0gY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=bPDTLpAT; arc=none smtp.client-ip=209.85.215.180 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pg1-f180.google.com with SMTP id 41be03b00d2f7-5d4d15ec7c5so4284104a12.1; Wed, 28 Feb 2024 00:32:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709109167; x=1709713967; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=t40K0JM0NMfK3mCMUC77qdJh8lHBWSded2PQLMcMHuM=; b=bPDTLpAT020g7yTaG9s9Dg5fvjrKx4wikeZJpv+bqHd0xAYQn/zDrG1BhttuJrKgVn BRbLmFTzsVmcWnqrMNVSvOmW0IYk3EgWkGSvzQDgUnM1ucTKtYfblJhOgfvw4Dxk1nPV h3dveXFWmESQ1te1DbRn94501+g735ohKL12hnWhzWXcxXidqSmqKXglwovFjuIU23L/ ojrTLtjlcGJTtEylQ9DXIJDkB5S7+alsj0ur2To6ifkNGcmoZzGstbfxEzbyhFvfYPVN jE4ogmXaI4K5WzOBoVSak8WIrysUAvVbLAhplUK8lBFFEuUGjOlQDcg9/j6wCEOxxSkE 44xQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709109167; x=1709713967; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=t40K0JM0NMfK3mCMUC77qdJh8lHBWSded2PQLMcMHuM=; b=CrnSSpA1MmIyHpb8xQiYuhC+jttMmvCok1/T5fOGdeXYTukMyaSeLxpaaB/4OyJ9Ob HN6BQn+aOSVTIVuOJr3hieI4DoxNQXddEe0ve8rkUYSs7nPyTCIKu+Epzs251ev775l2 FT4PAdYn3OMfKdz7wPluB2wdS36oMW0PHmhR2/0T/TiSYHJuqFTwODkCyorD1PikzWb7 nb0VYiOlAy56PioT6m01sFKMZvtjhW3b8ISQsyUQHpQKDFucxgK0bnVKdBfUJyf3Ijb8 c1dNktGS8ks5AEV8UxLBFxPXOaggnUhtHthtl9Ql4atpcC81C+Drji1XyNC32J0XHZ6Z fFYw== X-Forwarded-Encrypted: i=1; AJvYcCX+ITVEfXj0EJRUU55yWNANpfu9J7i9Zp9J4G5RBI9I1Psz/Dcmq0Wbp21ns5i1hRfAnnCTw8TfKD9uoHCFdFf5hptWdd+8HO5UrKvlcKPmb9XelPAHWnHa2WjUo9z6G5LgtBph X-Gm-Message-State: AOJu0YxR+SVuJphv/oooYDRUl1WmjB9goUUD21sslOcPF2ScrScgJS7s Nj3uwndeyZI10RirublsIq6ODcg1hWJvqSLrmagzQM5OiJlGfdLc X-Received: by 2002:a17:90a:88c:b0:299:3f10:20ba with SMTP id v12-20020a17090a088c00b002993f1020bamr10292017pjc.27.1709109167564; Wed, 28 Feb 2024 00:32:47 -0800 (PST) Received: from archie.me ([103.124.138.155]) by smtp.gmail.com with ESMTPSA id sy12-20020a17090b2d0c00b00296f4fc7e60sm962560pjb.12.2024.02.28.00.32.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Feb 2024 00:32:47 -0800 (PST) Received: by archie.me (Postfix, from userid 1000) id D8B75187DBEB7; Wed, 28 Feb 2024 15:32:41 +0700 (WIB) Date: Wed, 28 Feb 2024 15:32:41 +0700 From: Bagas Sanjaya To: Abdul Anshad Azeez , edumazet@google.com, davem@davemloft.net, kuba@kernel.org, pabeni@redhat.com, corbet@lwn.net, dsahern@kernel.org, Linux Networking , Linux Kernel Mailing List , Linux Regressions Cc: Boon Ang , John Savanyo , Peter Jonasson , Rajender M Subject: Re: Network performance regression in Linux kernel 6.6 for small socket size test cases Message-ID: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="aJ0FkAcvBcopWHIX" Content-Disposition: inline In-Reply-To: --aJ0FkAcvBcopWHIX Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable [also Cc: regressions ML] On Wed, Feb 28, 2024 at 12:13:27PM +0530, Abdul Anshad Azeez wrote: > During performance regression workload execution of the Linux > kernel we observed up to 30% performance decrease in a specific networking > workload on the 6.6 kernel compared to 6.5 (details below). The regressio= n is > reproducible in both Linux VMs running on ESXi and bare metal Linux. >=20 > Workload details: >=20 > Benchmark - Netperf TCP_STREAM > Socket buffer size - 8K > Message size - 256B > MTU - 1500B > Socket option - TCP_NODELAY > # of STREAMs - 32 > Direction - Uni-Directional Receive > Duration - 60 Seconds > NIC - Mellanox Technologies ConnectX-6 Dx EN 100G > Server Config - Intel(R) Xeon(R) Gold 6348 CPU @ 2.60GHz & 512G Memory >=20 > Bisect between 6.5 and 6.6 kernel concluded that this regression originat= ed > from the below commit: >=20 > commit - dfa2f0483360d4d6f2324405464c9f281156bd87 (tcp: get rid of > sysctl_tcp_adv_win_scale) > Author - Eric Dumazet > Link - > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit= /?id=3D > dfa2f0483360d4d6f2324405464c9f281156bd87 >=20 > Performance data for (Linux VM on ESXi): > Test case - TCP_STREAM_RECV Throughput in Gbps > (for different socket buffer sizes and with constant message size - 256B): >=20 > Socket buffer size - [LK6.5 vs LK6.6] > 8K - [8.4 vs 5.9 Gbps] > 16K - [13.4 vs 10.6 Gbps] > 32K - [19.1 vs 16.3 Gbps] > 64K - [19.6 vs 19.7 Gbps] > Autotune - [19.7 vs 19.6 Gbps] >=20 > >From the above performance data, we can infer that: > * Regression is specific to lower fixed socket buffer sizes (8K, 16K & 32= K). > * Increasing the socket buffer size gradually decreases the throughput im= pact. > * Performance is equal for higher fixed socket size (64K) and Autotune so= cket > tests. >=20 > We would like to know if there are any opportunities for optimization in > the test cases with small socket sizes. >=20 Can you verify the regression on current mainline (v6.8-rc6)? --=20 An old man doll... just what I always wanted! - Clara --aJ0FkAcvBcopWHIX Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQSSYQ6Cy7oyFNCHrUH2uYlJVVFOowUCZd7vpAAKCRD2uYlJVVFO o3FWAQDe+PbGL4LW/N1x23XLUSDEsqAGX9WqhwvPNQEir1nE3gEAqt155Cln5op5 oMAlTfo6KFQ5Sl5qdUv70rbcuu4T+gs= =88Qq -----END PGP SIGNATURE----- --aJ0FkAcvBcopWHIX--