Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp1138377lqt; Tue, 19 Mar 2024 14:01:24 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV245R6avW+YGO5n2uO8LsQtK4QgixKVd5a0poWZmwB/WY7izHSzs16vUzOTi1EEsKSR2cxxx27eJ5fZIHuecz2gK3ZPh3sw2PMSvAruQ== X-Google-Smtp-Source: AGHT+IH4x3+VPACaq2mBsAmrrU/V8rElGiKZu5JCrOfvSIckpCRPuaBkk6KLgIeWfM1mjHZCgNbY X-Received: by 2002:a19:3846:0:b0:513:dfd4:a216 with SMTP id d6-20020a193846000000b00513dfd4a216mr221760lfj.2.1710882084127; Tue, 19 Mar 2024 14:01:24 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710882084; cv=pass; d=google.com; s=arc-20160816; b=PAkXKrfoysf9AFwvEDX97srK7wYC4dIb80HSRDiruRoSDZBeJqzA4EpYSZNaC8umQe EKsIwjVAh+jsHVbEcgbCfwfFojQInzRAWLTUKDfOovbBGgFtuU9eIfFgsdcUy8qq3XP2 I8AtgCSXNkE6Nx9oGolopwPFcGnQ2IraR5HDij4VjJhWACYy/XCGklO+oAgEndLT5TzX 0TgSL1AFTLpqDjehGE9msGTf5Me/DBSuuUQDww7NBSTlJtIn4NbqzGxEPhGy86sszqJ5 9PwcEhbUS4rpq0wTdjuUP9XAbIDkWzddEVM2Y0T6Xw4cbSbBgKnvK1Gpw4WnlATwreA3 HmAQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=ZvhANbuYYdzjDlSNCOObZlNwSVeG5SJGde/R3AYV+0Q=; fh=Y/eBnD+CTCgQl9npWe77hPvB64zrEiqAB+eS/XOx2vc=; b=oJk/kMXQykUV8FnbnTnaHJIi0k8JVQXq6GOG/Z9ejq62MWfX4wy3Den4Y4pMH74fyR VnRj1FyfsS2RfEPckSbssPOXkKC/ymQq/pkgc/vMdJIIHjPf1glaOBcAlWnRoZgndyYI sw1yqifGUSsmIVBhEIEuXAoLU8jbTZRArB9WqHPxChux6dtIvv46HO1+4doEMQp0TMry Lgm2x8jkIgTW4x37WQY5ipTya2MtFzI0h5Asf3SwquH/llTddxe68r2RqXu7bix29ZlN UXrQEb5vXZwVpGwCiJb0jULjBGaIw2+hY7A51GI1SsZRJzwBToEMSMhwlhzYS+kwUouH fLDQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=B0tVCjgz; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-108130-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-108130-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id z2-20020a05640240c200b00568c3b4bb74si3549226edb.473.2024.03.19.14.01.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Mar 2024 14:01:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-108130-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=@google.com header.s=20230601 header.b=B0tVCjgz; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-108130-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-108130-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.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 AB3421F22C79 for ; Tue, 19 Mar 2024 21:01:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9369F3C463; Tue, 19 Mar 2024 21:01:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="B0tVCjgz" Received: from mail-pl1-f171.google.com (mail-pl1-f171.google.com [209.85.214.171]) (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 4E4733CF58 for ; Tue, 19 Mar 2024 21:01:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.171 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710882076; cv=none; b=ZIZTm4MbN6GFp2Erch9cinL1CvMgV7e3wzdr46hha8PAeSDlji9y+RAfU8fLr+5COpcTqZRE3/l/pD8Z6dGNEEfrFeVB86yntvDxcd30oNkcy/w+TzDzxmW15o4hJyE3KNebm/NIG0uOJWrDg/0pAEZ7jGN1swHj8gphtfXIYiA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710882076; c=relaxed/simple; bh=ZvhANbuYYdzjDlSNCOObZlNwSVeG5SJGde/R3AYV+0Q=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=LMUyaCCMgJu26+srJvAwGp3ewfz/XwmxiJ+ewQE+edc2+LAy3GwYG/a33nrHBjcisQLfFy0KcM3Sj+TIGshm0U7GAK7hxILAzci92XSm1kT4w/F90U7mwDYRnzQj/Ru39UeLeCmakNpQbIjt+oOrgSXzWmOlOgkMJp3NvXp7shs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=B0tVCjgz; arc=none smtp.client-ip=209.85.214.171 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=google.com Received: by mail-pl1-f171.google.com with SMTP id d9443c01a7336-1dddd7d64cdso14855ad.1 for ; Tue, 19 Mar 2024 14:01:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1710882074; x=1711486874; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=ZvhANbuYYdzjDlSNCOObZlNwSVeG5SJGde/R3AYV+0Q=; b=B0tVCjgzesu+Fy0pe+9lnGHc+9MpO1bIAYLHtiLhgQEjOhqSyFJ63xHnA71lAtsUJU lcDFZA0OPjujHEqtDthZWfnUenNKIXey63yb2LrmAWAxEZ42trqOV3XOTrmHaIQR97dU kD5BYU1M800qXa0sCDeoHlANuvEN5Y5WMGtU++qULXxyh4By8Vq+OjXySutJNhRNYROE hM1OWenE88vokESm56sxMj9XsqwLX0HHqPUIgkyui3J7lka3QHPk9SfVPVO5LhPwqdKG nC87780IAeFpO0XwCB38jAqQheOb0ojFrjAcYh9ePEtWhlDb3QN+c1P5XABUdU7xl1i1 SDgw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710882074; x=1711486874; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ZvhANbuYYdzjDlSNCOObZlNwSVeG5SJGde/R3AYV+0Q=; b=tUnyTsoWc4rgeQyTvQ4l9jtdlGQSSorK8Ozrg0CKEs+GN5jLFq3Vp4nRRBHEw649rL 1QhhpHOYY53M/zFZMNTY4KCt4XsyujUYbAo/VPdxtw2leijxxSjLpt+ci33HkGhYSvzc y2CSsCL9zn3gAWgUwh4jlHQIy7Cuqd602qRzhiol+SsGh07P2OiEG5yoNIC8BsnwxPWV 63ltn7wTv8Fmp31ho59btAJMyko8JL0QfBznUY2RwsT0TQAYIjH/0P35kBkXlvbq+Naf S8NClUMaGUeKT2Z35xSQmR2krzC6f0j3U9ZLOQQcctYRtBujcBS/KLHaY4bI3Whq/bud KHKQ== X-Forwarded-Encrypted: i=1; AJvYcCX99iVvWyaxgeEX4YQEOAUSmoOtfIB1gkvVE2QP2h7V31P2v+hqB9aXuCcMLWKrNif+A268cTDWZ5q/NYioSudhlmK+H0cdCdgQ6i0A X-Gm-Message-State: AOJu0YzSiIYwkRSaPqOC91lBWP5CJdQ0aF7xlbGIZyf05KiRWul5krwl 9e4bYuSYA4b8H5aIjCftRrTkoMJWOib6qBsAK5j3ukHxnkmQ9gfk6KAZiOlAoWAsYXDfEAtvPzq XomD45VuQ/IpzuqBWllJm06LDsj57cWUQYqHx X-Received: by 2002:a17:903:2292:b0:1df:f726:8b50 with SMTP id b18-20020a170903229200b001dff7268b50mr85063plh.10.1710882073295; Tue, 19 Mar 2024 14:01:13 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <159474e6-ef11-4769-a182-86483efcf2a6@intel.com> <0393c4ce-7e41-4dcc-940a-a6bea9437970@intel.com> <55a55960-8bb1-4ce2-a2c7-68e167da8bcc@intel.com> <88430722-67b3-4f7d-8db2-95ee52b6f0b0@arm.com> <47c28b3d-3b90-4b33-ba71-1e359d43238e@intel.com> <6948784d-6a20-435a-8781-30f324bed472@intel.com> In-Reply-To: From: Peter Newman Date: Tue, 19 Mar 2024 14:01:02 -0700 Message-ID: Subject: Re: [PATCH 4/4] selftests/resctrl: Adjust SNC support messages To: "Luck, Tony" Cc: "Chatre, Reinette" , James Morse , "Wieczor-Retman, Maciej" , "Yu, Fenghua" , Shuah Khan , "ilpo.jarvinen@linux.intel.com" , "linux-kernel@vger.kernel.org" , "linux-kselftest@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Tony, On Mon, Mar 18, 2024 at 3:05=E2=80=AFPM Luck, Tony wr= ote: > > > Could you please help me understand the details by answering my first > > question: What is the use case for needing to expose the individual clu= ster > > counts? > > > > This is a model specific feature so if this is something needed for jus= t a > > couple of systems I think we should be less inclined to make changes to > > resctrl interface. I am starting to be concerned about something simila= r > > becoming architectural later and then we need to wrangle this model spe= cific > > resctrl support (which has then become ABI) again to support whatever t= hat > > may look like. > > Reinette, > > Model specific. But present in multiple consecutive generations (Sapphire= Rapids, > Emerald Rapids, Granite Rapids, Sierra Forest). > > Adding Peter Newman for a resctrl user perspective on SNC, rather than me > continue to speculate on possible ways this might be used. > > Peter: You will need to dig back a few messages on lore.kernel.org to > get context. Our main concern with supporting SNC in resctrl is all of the monitoring groups successfully recording memory bandwidth from all CPUs, regardless of the RMIDs they're assigned. I would prefer that we don't complicate the model of resctrl monitoring domains for this feature. On ARM SoCs there will be a plethora of technologies influencing the layout of resources, so we shouldn't start cluttering the model with special cases for each. I think it's valid for the number of domains in the L3 resource to increase or stay the same when the system is configured for SNC. I don't think the details of how the domains came about is relevant at the resctrl interface level so long as the user has enough information to deduce what the domain is referring to based on knowledge of their system configuration. I would prefer per-cluster as more information could prove useful in some future investigation, but if you feel the data is misleading, providing the clusters combined is also fine. I would prefer that the choice remains consistent from this point forward on any particular implementation to avoid breaking existing controller software developed for that implementation. In our main use case, we sum mon_data/*/mbm_total_bytes to determine a group's total bandwidth, so please don't cause this logic to produce the wrong answer. Thanks! -Peter