Received: by 2002:ab2:3319:0:b0:1ef:7a0f:c32d with SMTP id i25csp782339lqc; Fri, 8 Mar 2024 11:23:00 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXjE3Qz6kgbKVHfz6ToAAdCza2cEcTQIwu9NJCMytP+b8qBfbbETA0qjY3+Ru1CQPJ/dIZ64fgtkoulTxhKoBF0NGlw+7En5dl0tSO3ug== X-Google-Smtp-Source: AGHT+IFU5a4h/Y+BdOVgm4WI83OjIoxNl2s0NjxJnAE52h9rSLRgvkk6OHv8ZIliI5QGNtLDdI22 X-Received: by 2002:a9d:7ad6:0:b0:6e4:d6d8:fbaa with SMTP id m22-20020a9d7ad6000000b006e4d6d8fbaamr12465442otn.37.1709925779881; Fri, 08 Mar 2024 11:22:59 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709925779; cv=pass; d=google.com; s=arc-20160816; b=BbF7k4fvF9okJ4woMUl7EHvpxgGod2C9DruSGNHJBHKyK/GjW4a7MEU1Rrv6nRTm0b oL8h3vCiuF8l29E7/LHHeZYrZm3Ri8NUJ2aGaTpiLoXATvtPvbYJlB0P4+LD8uCEFlz9 mQcQYhXGykiABOJo2/XFsij3s6gINPoKr+ghyeT8JLEcfuWGLr3BDOU160vCWaAglROi /qUG+tKLly7xWAflvumMTX7Gr+p6ocKH3KRg9RYez3CYuR72CvHOioK+pTi9EIZZkTI8 ePy2KuV3AJaU2plb8RuhZeAgWqROvSg5VabB70gPEknnTeZHbBgWASv4+47V6YgFkOw+ Dp2A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=p9kyOVv2cKsM7/5T2ZnHFD8WO1B2eWh/JwjxUcCfuw0=; fh=oSncddIQe6sxrLRPuHckyNLVbA2HlUldVJLGGVfG3Z8=; b=fQIsY5Ll0OvG55s68K6iOb/v8GdILopoEazovDxFLTMGlsiFY/GskoarLhBcRJZDb7 pLltlimCYhBRESYlp1/Ub+XSv5roTd26S+bTCAyCB6NvTC8GCO+IhwQKQdSmaUmiOJuv urPuAD9VkR39e3W6HP8Hv5xwbnlKnN0FWtW2SSOusSa5tpIu71PnHCFYh5ZI05uQmxft C5armJ0StzAPsc3oSU3ybyArK3yvi36E6cPmP4WGPttkE5cGEiRQ89DqVSOAGdjMwZI9 ySQnyr+SqKsp+5GRC4MSKcaXeuwEtqf3z6qN4qnupJXNxQM5ns9n+tuYCtnaL2mHRy6T zxTw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mLbL0vLh; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-97506-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-97506-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id b22-20020a637156000000b005e3cdc24c26si100751pgn.467.2024.03.08.11.22.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Mar 2024 11:22:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-97506-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mLbL0vLh; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-97506-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-97506-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 64661282B6F for ; Fri, 8 Mar 2024 19:22:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 85CC15A7B6; Fri, 8 Mar 2024 19:22:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="mLbL0vLh" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9E73E25774; Fri, 8 Mar 2024 19:22:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709925766; cv=none; b=K7oLXBWBrc/6V6sqgFo3axL4wgZDcRBr5JaSbfMTIzVkwnQ8LagndnF9Rf49A7u3Ohufje03AtQyEsTG2JsV9p55heooSZ85xlB5nxyFDQTPDBbXGbRJmXi/vmyM57y6ZvfS0iRyqJ9MSMUKjIsMVtPoUpSZ8+s6cWxRBGw434I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709925766; c=relaxed/simple; bh=YeZa26lHQuEywHRgaJ3tIFPzhotZ2Y6RUoWM5+cEY0M=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=Lwi2REX0GkSgXtkhbqSGmBQ3CNTHwgse2ZSJzAyhNVICuLa1qi9oo/ADUgQbod5NllSorjp+ezne23T39QSl6E4Svz2HhTACly/ejhwZbz2b2w0IoR5fLHBHrtRSbCLeGiTgQ3tmouCBquEcoBM3qdYI/Tj35S5W/n8hlEZqgVY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=mLbL0vLh; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 91E6EC433C7; Fri, 8 Mar 2024 19:22:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1709925766; bh=YeZa26lHQuEywHRgaJ3tIFPzhotZ2Y6RUoWM5+cEY0M=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=mLbL0vLh3uxjSc/tz2NW1uqzXYnWbKTsF5nd84lYxxnQfwMFNWjZz4eu9d4we7rYo 75ffhr8hWrPH3CJoYeotCnMMIZ/VdJA051iW4mRr7PKoXHxchiiDLR0UVPpaFNeoxx lSlbUyKA+DtFiLuMRT0YuELSqE1IbuozBgrnD7nJ4NwWiuPfJ48TSnELBbVE9sSE5G VGKsHQYawfJIGZmgF8N5IPP9GpslurnKFXS3WL/qIwlK4IySJW7rPzzrrZk81xthoa MRulNesxNJbP9SVv7Z5oSWu9ialLhrHodc+Ob83YyQNCdxZsjUYk01B5P1GNuZLZU/ e0Q6CoEY53dwQ== Date: Fri, 8 Mar 2024 11:22:44 -0800 From: Jakub Kicinski 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 Subject: Re: [PATCH] net :mana : Add per-cpu stats for MANA device Message-ID: <20240308112244.391b3779@kernel.org> In-Reply-To: References: <1709823132-22411-1-git-send-email-shradhagupta@linux.microsoft.com> <20240307072923.6cc8a2ba@kernel.org> <20240307090145.2fc7aa2e@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-Transfer-Encoding: 7bit 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? Seems unlikely, but if it does work we should enable it for all devices, no driver by driver.