Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp183866lql; Sun, 10 Mar 2024 21:20:03 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVTcQKbuYyr2alWG6MYbEPcY7r2YtYXPoUsSVFDtTqIHSTNxQYf/9XCVCwJEMKeBPSI/TbpwhcrGEP4dWIDgMT9cauxHr0kUOMifkEePQ== X-Google-Smtp-Source: AGHT+IEccNAbhElXO7h5dyQaJkmmIhZyy7lCYbV2JuoeeeeKTnk7pWFbaeKmTmiWqsjXgwp8W+Ei X-Received: by 2002:a05:6214:188f:b0:690:735e:2ecf with SMTP id cx15-20020a056214188f00b00690735e2ecfmr6222861qvb.49.1710130802863; Sun, 10 Mar 2024 21:20:02 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710130802; cv=pass; d=google.com; s=arc-20160816; b=oWCz6n+xM87ijAlpnbsZ15q6imVBZdvD88FjaRTqCEUCFSOUsoWK4c71ZFV7I+lmAI J05NU3pv86pyt5ho5YaAYNOcx7K/mREILqvUMyE8KxqR7DQibm9irbvTNuWTndSRclyG /O2PNqVPC/U98/XOsP2nZiQFqHOzbiynytf/u6J56A1q5afPO3w3EzfeM2Oel/eB0UgC xUl5PnIJsNA1VJsQDN2LlAKeNqtgg8VML9qOlytyZinnKUsvQQB9voviISo+OPWntMJ7 BMkLt7W2yW73NAWe8MMGejXCRSiUhEevA+pRn1xxqEj/lWpGNA67HPW2vjmuGrQyQAFW w3qg== 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=zJSmJpS2VA8+3zoHUmrWNe/kRtWurXh4YXWEvTl15fU=; fh=BgBXXoWV+RZsZAQD5ISlQQ6sC9RBCf3YMptt9I2THPI=; b=efwzUFGDt02n3FwKfDh1IubIR2QQaO8Xasg5A0uhydzmRF9fldbhS6vefbLbiznWhO aCmXIIsTeNQCl9M6LyGCPLoXWvnD3TquZu1FDzZHOlgNHR2XuYfDGhH6H8UzBn1wZOiI dMxoJOZ8UrBNQqWNu5oG9XoLIIhqVMCEq8MIIMwRhFNTWoJVopiDr7sFXytTxa1FaVju t3x6lBB4vBNEz0j4AdGQzbDUmST2AgSrhxb3AiQaIT+c0whcJxJZ9jUvF2w7/02mHI6o iobIYkv7+tPmCytC7L5NMJOS8kMnTwa9op7+Q57aowbrnPesnORdIq+1JlNQYkF3sNQU 9TSQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=cHChZkNW; 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-98450-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-98450-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 ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id e12-20020a0562141d0c00b0068fa09a8976si4535467qvd.589.2024.03.10.21.20.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 10 Mar 2024 21:20:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-98450-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=cHChZkNW; 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-98450-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-98450-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 96E991C20F47 for ; Mon, 11 Mar 2024 04:20:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A37EE6FC3; Mon, 11 Mar 2024 04:19:52 +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="cHChZkNW" Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 733871860; Mon, 11 Mar 2024 04:19:50 +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=1710130791; cv=none; b=Z0msIyeSi6JYXWCOdqCnkAd+UDFssOpRc8SdHzUicB2df0KrFXlDFDkNspjUaFcn5QOss43gl2k2Dwa0a0mQlVsn7wZVyTG7CrlO405LEIF7DQy/n2qHjr74iLpheKwvr7y6IDnvXRKuoqFcQTRGPoyUlFJVJfy9sZgzcieco4I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710130791; c=relaxed/simple; bh=TfT4qUsYYO3TPRTV9dSEUTKXFozwef3QMPa20ojB+1s=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=YaM5LPbOCyU8x3FyxyOI5rK9w5DBLt6vhADhrir/S9t2XrpqrLXaAJ4LM7jNhcAg1ddlbHmsCqlGNUSb2TZnai0rKeZbrM2e5uAA8P+a89o2JQ/8ocq0/O7oXC1CFPF2Cgnux+bX/ZS2zdIbu4qQCebtc3x6kjo9kevva40l2Zw= 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=cHChZkNW; 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 1937B20B74C0; Sun, 10 Mar 2024 21:19:50 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 1937B20B74C0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1710130790; bh=zJSmJpS2VA8+3zoHUmrWNe/kRtWurXh4YXWEvTl15fU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=cHChZkNWLo5P90MreNlBgmPyAGhFP7K/gZqb3yil3ATXKV3J0kuPEW5u0dDUoCfAt T87L8KZleIzdP8qrg4sC0zFB0CHsdPk2gQCEmHYvTR9yOaIZ73W0lcJh/Sxg83iCJM xVHhLtsPiuTxR4mMT5pAafvbsX0C+ZFld3CLDaCw= Date: Sun, 10 Mar 2024 21:19:50 -0700 From: Shradha Gupta To: Jakub Kicinski Cc: 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 Subject: Re: [PATCH] net :mana : Add per-cpu stats for MANA device Message-ID: <20240311041950.GA19647@linuxonhyperv3.guj3yctzbm1etfxqx2vob5hsef.xx.internal.cloudapp.net> References: <1709823132-22411-1-git-send-email-shradhagupta@linux.microsoft.com> <20240307072923.6cc8a2ba@kernel.org> <20240307090145.2fc7aa2e@kernel.org> <20240308112244.391b3779@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: <20240308112244.391b3779@kernel.org> User-Agent: Mutt/1.5.21 (2010-09-15) On Fri, Mar 08, 2024 at 11:22:44AM -0800, Jakub Kicinski wrote: > On Fri, 8 Mar 2024 18:51:58 +0000 Haiyang Zhang wrote: > > > Dynamic is a bit of an exaggeration, right? On a well-configured system > > > each CPU should use a single queue assigned thru XPS. And for manual > > > debug bpftrace should serve the purpose quite well. > > > > Some programs, like irqbalancer can dynamically change the CPU affinity, > > so we want to add the per-CPU counters for better understanding of the CPU > > usage. > > Do you have experimental data showing this making a difference > in production? Sure, will try to get that data for this discussion > > Seems unlikely, but if it does work we should enable it for all > devices, no driver by driver. You mean, if the usecase seems valid we should try to extend the framework mentioned by Rahul (https://lore.kernel.org/lkml/20240307072923.6cc8a2ba@kernel.org/) to include these stats as well? Will explore this a bit more and update. Thanks.