Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp1564393rdb; Wed, 24 Jan 2024 22:07:50 -0800 (PST) X-Google-Smtp-Source: AGHT+IEdr/x9lVYmTWCYfRpIAmccFgQHT6T3B02aXeHt+iFVy801wJpE3Funpl2/fDNFikCXLdR7 X-Received: by 2002:a2e:b165:0:b0:2cd:9959:53a5 with SMTP id a5-20020a2eb165000000b002cd995953a5mr206488ljm.10.1706162870199; Wed, 24 Jan 2024 22:07:50 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706162870; cv=pass; d=google.com; s=arc-20160816; b=ePZIzr812PmRGzXIMZYCZ/jr5ndTlCXgufzqJ3M6c9/olLsyIKhIvL4CtGpmgM+1gQ Tp2jbZGYlgJBVrRCcitE2etnzhddt/VzyCc95Y7P13TCXRe5TGCmpWFqdLM6Q6cZw/H4 oApY+fR5V/rx4/0ekMNz4bdu7z0pEO9uEOVuwxgp5kQy27EzMo6iqH5AZQcGUWELJZTM FoMtN1vK3MBrpGX/NjcM05mEybtBO3af7iJLkoRENX2a8aCjnetnhcryc2WDyiGP8Aw9 F+IxiI8vHtXsiFx2UKZJCDbVe7gpoFc1bIRqUj2Z5wHG0LnbyYMB3tMyJNKWjFUwFRPh KeHA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:in-reply-to:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :message-id:subject:cc:to:from:date:dkim-signature:dkim-filter; bh=o7UkRO8dE1Xp/Y/Xubp6ytag9K1yUqGfcqFU+xvdA/0=; fh=unp/mgcTo07GMmbq4QPj8+mb2KaUXQHOWAIJ4eHUDtk=; b=RijslbFWADOwAFuuBbFnh/JUhH2N4snv6v52bOYwWMGvQuuEGaxCmF8CCuQTKhaxsN iS+pGTXajVmlHcCaPUjRbvjraPmrC8lHPsMpfaqajiwRFYBwKqPY6YPZc0LJvtfZ34Ag /Ic9HOv0Rqr2sIhbL/NvagHfuyx953XZMWA8CKAnAjYHteidEU+Hla02eFfZh3Rn5QJX 7b7gJCGAtpCGQpscgA9NpykgZX36z084oaODqFb+GQod+oE45OG2ywDUI6FVfLFVTg20 PJ8tN7DPzU8PkZE+9HgUxeZtVSW5Uz6BhpAYa16xz1VVmlG5pM7XkA5o7/CUZWK6JDLd AwVQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=TARg7VaF; arc=pass (i=1 spf=pass spfdomain=linux.microsoft.com dkim=pass dkdomain=linux.microsoft.com dmarc=pass fromdomain=linux.microsoft.com); spf=pass (google.com: domain of linux-kernel+bounces-37993-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-37993-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id d34-20020a056402402200b0055c374941b0si4324101eda.230.2024.01.24.22.07.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Jan 2024 22:07:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-37993-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=TARg7VaF; arc=pass (i=1 spf=pass spfdomain=linux.microsoft.com dkim=pass dkdomain=linux.microsoft.com dmarc=pass fromdomain=linux.microsoft.com); spf=pass (google.com: domain of linux-kernel+bounces-37993-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-37993-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.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 C05BC1F251C6 for ; Thu, 25 Jan 2024 06:07:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D4ABC10A1D; Thu, 25 Jan 2024 06:07:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.microsoft.com header.i=@linux.microsoft.com header.b="TARg7VaF" Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C9D0210A01; Thu, 25 Jan 2024 06:07:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=13.77.154.182 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706162855; cv=none; b=J6rtbyXbQd2jY1x28i3tbHTfCX/ZLOpMiQI7324VsEOjmuDlhnzWbs863CHfZwOXilIzqBLqmhPj6lrg1nJaKIJ8prmnfaU5T5XdAuLgzjwIkVjFlrwkGxlfmWF8c4pjIdUhViVWhsPA1+Wds2YbORDKK74pP8ppfE8n1k0APEU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706162855; c=relaxed/simple; bh=IIDjC280Z3zWAHyp5QAbdKygm8MpeDKViYg+j2FlPog=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=dy5jviGf5WUW9FX6ECOK2sL9cmux7uiaywe6LXnGu/7yRcxG2TFuoK4csKwbYzKAjpDdmtckHnloXVI+kJ7teZ5J0a0GWNPM3nsk/Bl1PasQezxlMkNdeYWwnWLX68CeO8v1/ukrcMHpPlji7sU1hSy415Ov9YBHy+Ph6k4wPJY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.microsoft.com; spf=pass smtp.mailfrom=linux.microsoft.com; dkim=pass (1024-bit key) header.d=linux.microsoft.com header.i=@linux.microsoft.com header.b=TARg7VaF; arc=none smtp.client-ip=13.77.154.182 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.microsoft.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.microsoft.com Received: by linux.microsoft.com (Postfix, from userid 1099) id 6C74920E5692; Wed, 24 Jan 2024 22:07:33 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 6C74920E5692 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1706162853; bh=o7UkRO8dE1Xp/Y/Xubp6ytag9K1yUqGfcqFU+xvdA/0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=TARg7VaFYulTsQS1jIbdFqQ/azo5mPbnkTOW6axIIjpaN9dZVBvMKuUHKjzuOaVKC IJefpEyMfdM9izt1Myn8LDmNxBr92rZ9YfzKVdtorvchbpnwsCPPfw86qcHwuhYorJ AWF75fVA1VFA7utUib7m7P0xNY1aITNexxh4YOlA= Date: Wed, 24 Jan 2024 22:07:33 -0800 From: Souradeep Chakrabarti To: Yury Norov Cc: kys@microsoft.com, haiyangz@microsoft.com, wei.liu@kernel.org, decui@microsoft.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, longli@microsoft.com, leon@kernel.org, cai.huoqing@linux.dev, ssengar@linux.microsoft.com, vkuznets@redhat.com, tglx@linutronix.de, linux-hyperv@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-rdma@vger.kernel.org, schakrabarti@microsoft.com, paulros@microsoft.com Subject: Re: [PATCH 4/4 V2 net-next] net: mana: Assigning IRQ affinity on HT cores Message-ID: <20240125060733.GB18142@linuxonhyperv3.guj3yctzbm1etfxqx2vob5hsef.xx.internal.cloudapp.net> References: <1705939259-2859-1-git-send-email-schakrabarti@linux.microsoft.com> <1705939259-2859-5-git-send-email-schakrabarti@linux.microsoft.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) On Wed, Jan 24, 2024 at 07:20:27AM -0800, Yury Norov wrote: > On Mon, Jan 22, 2024 at 08:00:59AM -0800, Souradeep Chakrabarti wrote: > > Existing MANA design assigns IRQ to every CPU, including sibling > > hyper-threads. This may cause multiple IRQs to be active simultaneously > > in the same core and may reduce the network performance. > > > > Improve the performance by assigning IRQ to non sibling CPUs in local > > NUMA node. The performance improvement we are getting using ntttcp with > > following patch is around 15 percent against existing design and > > approximately 11 percent, when trying to assign one IRQ in each core > > across NUMA nodes, if enough cores are present. > > The change will improve the performance for the system > > with high number of CPU, where number of CPUs in a node is more than > > 64 CPUs. Nodes with 64 CPUs or less than 64 CPUs will not be affected > > by this change. > > > > The performance study was done using ntttcp tool in Azure. > > The node had 2 nodes with 32 cores each, total 128 vCPU and number of channels > > were 32 for 32 RX rings. > > > > The below table shows a comparison between existing design and new > > design: > > > > IRQ node-num core-num CPU performance(%) > > 1 0 | 0 0 | 0 0 | 0-1 0 > > 2 0 | 0 0 | 1 1 | 2-3 3 > > 3 0 | 0 1 | 2 2 | 4-5 10 > > 4 0 | 0 1 | 3 3 | 6-7 15 > > 5 0 | 0 2 | 4 4 | 8-9 15 > > --- > > --- > > 25 0 | 0 12| 24 24| 48-49 12 > > --- > > 32 0 | 0 15| 31 31| 62-63 12 > > 33 0 | 0 16| 0 32| 0-1 10 > > --- > > 64 0 | 0 31| 31 63| 62-63 0 > > Did that omitted lines mean 5-24 : 15%, 25-31 : 12% and 33-63 : 10%? They are same like you have mentioned, so I have skipped those ranges. Whereever the major changes were there, I have put them. So it is the full coverage only skimmed a little. > Or that means that you didn't test those? > > Would be nice to have full coverage... > > Thanks, > Yury