Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp2504904lqz; Tue, 2 Apr 2024 22:44:44 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXcwwtWzdqqcTlSPINQO+a2GoZU7EMidXKoTC5pNyASKUVJRXTPHf2MnUlPQPD8xKFWA2mh9bF9Etxiv61f3uE0rriYYsT3gJtE/rTVHQ== X-Google-Smtp-Source: AGHT+IHRqWO1EIiG/feLGndijDBKptWRTtTQF8CCJSCQZVhvhtaul3MYrpv2sKt4GSomdL33eG0k X-Received: by 2002:aa7:8893:0:b0:6ea:9117:bc61 with SMTP id z19-20020aa78893000000b006ea9117bc61mr19171522pfe.20.1712123083813; Tue, 02 Apr 2024 22:44:43 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712123083; cv=pass; d=google.com; s=arc-20160816; b=y+2ydY9YH9zQ7VgDl2YEKzF82m71b3zFH8H/fnVHzcTt8sjcFVyfzAcdsCr+r1kaYj oWBGG1RnN+davP724E17exM+nnH2kTgttFpipTILeGnk7PD+jg8VVM6aVjuY1F8IFfTb d7G9ocUD9q4NxPz4H1jkMAP+eXO9ug/pvXqyet/S/A5U3BVsL8Y/xIeJ3ynJ+fXDk+Er XAUV87mvEuMK8s94pecINDWTigV+4/VRpXerqc0Kn6b9zm0MLnWixyORI10d/YJZrVkk rFnT9tgJFB9E2uTcd+tpvd7GikN4cH0aLe1Fesz6F1j4DijqwNK5ptX1sjL2LgqL7Ihx slfg== 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=eqr6ryp++wtR9G70yZFoMfybz5D1BNUxJE3/T3jBuO4=; fh=/YsUe9GVwArJ2CyLpltQaahNndoHQ0NcT1jteQRTHSE=; b=C9M2EvkxB0ltMUcA53KudzMnvahrg4MFu99smCl+D9s01V0eRxwB3ndakrAS8BWzLL mWM2ZZUwm+vdWv4EN/btZqa8R+Oeqxlx5+Eb/z1v95U6JJEGH3f307mOdyJrGARmOe/q gOt7OoHnjhI0cwHB6uH1zeT1uweKTFMYccVkh/lBVBm5iJuQTbiu1gEgHD2cOpUFvaJF Y4TCRG4fILuIZifC25LuCZ6NR/3lo8n17h+cpN7evXKDgHpqDk8NYQ0PybcGHmBk2E3g 8PjXl0qcs4i5IetTvBuwbcl6am+oxIKNSXf6rbhpJiRCYFBS9Tvk8hCMQulhKzKvRYL7 496A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b="pU/7X2fv"; 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-129063-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-129063-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 sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id i11-20020a63540b000000b005dc351748dfsi12436799pgb.121.2024.04.02.22.44.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Apr 2024 22:44:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-129063-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b="pU/7X2fv"; 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-129063-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-129063-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 66F612833B4 for ; Wed, 3 Apr 2024 05:44:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EEC4D4D9FD; Wed, 3 Apr 2024 05:43:53 +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="pU/7X2fv" Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B4E7F2EB11; Wed, 3 Apr 2024 05:43:51 +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=1712123033; cv=none; b=KD1dk062c2LxL3Xl3aZf0fkMd8bBaVRVQfq4d1AMmr7Xeg7vKRLqkmqu4N8Y+xOHuqASPLFnwBzXGHzisCOnd43yAaCx1E0ZPAs1+zBL6HV758W7j4RknTa/rmWMiXDGJU5b5jtKESOW8iIoMTccDEeORsk8uwn8KP28JqzpWlI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712123033; c=relaxed/simple; bh=Y2dZrNHPEhX+7//ljANF7dpLKPXIOdtiPvLZj5EPB4g=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ZQdwlPbjMNHLyundHGQt6PLasyJ7RunXJwgfZv6V0wF7FAtmhwgpuOJJNN0ZCjvxeO/AN3Vivlf46b1mwhXi2o84GcF2RgpjtXZBVJ4hVImWoGd2qdSLlMc4zClXRVGgOoqeXNqB6ZpQYH1CS+lRds7f089KN5r80LyEw6Z5sIA= 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=pU/7X2fv; 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 1134) id 32B7E20E8C9A; Tue, 2 Apr 2024 22:43:51 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 32B7E20E8C9A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1712123031; bh=eqr6ryp++wtR9G70yZFoMfybz5D1BNUxJE3/T3jBuO4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=pU/7X2fvQfV6xZ5FUwDBlbCukAKuKLO6HMZZqOHyPAFCQMlq4d8vTYehFu3q+Uxtx Q2iineBG0ODQCg7cNt4Z670QJf3Q/TIbGt3pPs9N18lb7JM4hjb17XiiWPvmXc5UE4 /YCzfGdSlqEnNXH9mHIWKnf26/hmfrNCYHZdIcWw= Date: Tue, 2 Apr 2024 22:43:51 -0700 From: Shradha Gupta To: Alireza Dabagh Cc: Jakub Kicinski , Haiyang Zhang , Shradha Gupta , "linux-kernel@vger.kernel.org" , "linux-hyperv@vger.kernel.org" , "linux-rdma@vger.kernel.org" , "netdev@vger.kernel.org" , Eric Dumazet , Paolo Abeni , Ajay Sharma , Leon Romanovsky , Thomas Gleixner , Sebastian Andrzej Siewior , KY Srinivasan , Wei Liu , Dexuan Cui , Long Li , Michael Kelley , Paul Rosswurm Subject: Re: [EXTERNAL] Re: [PATCH] net :mana : Add per-cpu stats for MANA device Message-ID: <20240403054351.GA18633@linuxonhyperv3.guj3yctzbm1etfxqx2vob5hsef.xx.internal.cloudapp.net> References: <20240307090145.2fc7aa2e@kernel.org> <20240308112244.391b3779@kernel.org> <20240311041950.GA19647@linuxonhyperv3.guj3yctzbm1etfxqx2vob5hsef.xx.internal.cloudapp.net> <20240314025720.GA13853@linuxonhyperv3.guj3yctzbm1etfxqx2vob5hsef.xx.internal.cloudapp.net> <20240314112734.5f1c9f7e@kernel.org> <20240314120528.1ac154d1@kernel.org> 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) Hi all, I have a newer version of this patch with netlink implementation ready, to support the usecase of per-cpu stats for RSS handling and imbalance investigations. Please let me know if we can proceed with that. Thanks and regards, Shradha. On Thu, Mar 14, 2024 at 08:01:24PM +0000, Alireza Dabagh wrote: > Per processor network stats have been supported on netvsc and Mellanox NICs for years. They are also supported on Windows. > > I routinely use these stats to rule in/out the issues with RSS imbalance due to either NIC not handling RSS correctly, incorrect MSI-X affinity, or not having enough entropy in flows. > > And yes, I perfectly understand that there are cases that packets received on processor x are processed (in tcp/ip stack) on processor y. But in many cases, there is a correlation between individual processor utilization and the processor where these packets are received on by the NIC. > > -thanks, ali > (some suggested that I do mention on this thread that I am one of the original inventors of RSS. So there you have it. Personally I don't think that telling people "I invented the damn thing and I know what I am talking about" is the right way to handle this.) > -----Original Message----- > From: Jakub Kicinski > Sent: Thursday, March 14, 2024 12:05 PM > To: Haiyang Zhang > Cc: Shradha Gupta ; Shradha Gupta ; linux-kernel@vger.kernel.org; linux-hyperv@vger.kernel.org; linux-rdma@vger.kernel.org; netdev@vger.kernel.org; Eric Dumazet ; Paolo Abeni ; Ajay Sharma ; Leon Romanovsky ; Thomas Gleixner ; Sebastian Andrzej Siewior ; KY Srinivasan ; Wei Liu ; Dexuan Cui ; Long Li ; Michael Kelley ; Alireza Dabagh ; Paul Rosswurm > Subject: [EXTERNAL] Re: [PATCH] net :mana : Add per-cpu stats for MANA device > > On Thu, 14 Mar 2024 18:54:31 +0000 Haiyang Zhang wrote: > > We understand irqbalance may be a "bad idea", and recommended some > > customers to disable it when having problems with it... But it's still > > enabled by default, and we cannot let all distro vendors and custom > > image makers to disable the irqbalance. So, our host- networking team > > is eager to have per-CPU stats for analyzing CPU usage related to > > irqbalance or other issues. > > You need a use case to get the stats upstream. > "CPU usage related to irqbalance or other issues" is both too vague, and irqbalance is a user space problem.