Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp2911200lqt; Tue, 23 Apr 2024 05:40:05 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW7Rri+vuahuVbfEe5biXVrGnlEsVPvLpJOZBlw9QdMVS6jFGfKsVfMDf5kzDb2ZuCodiYBphE2N4M1gq5pyracSYG8JFvAVeVZNgk05A== X-Google-Smtp-Source: AGHT+IHD54x9/M7P8iw1nQXtrgeMbqsVfmh+rRUMV/Ekn12QMjfUmNYh2/rO1PgqbLugdYspvHLZ X-Received: by 2002:a17:90b:2249:b0:2ae:d7cf:e8c9 with SMTP id hk9-20020a17090b224900b002aed7cfe8c9mr986617pjb.9.1713876005589; Tue, 23 Apr 2024 05:40:05 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713876005; cv=pass; d=google.com; s=arc-20160816; b=LENPxkVDTFhicGZiHZsJuvtIw5SoP9TD5w4+vk7S0B2pRCfeLG0W5xmRyhK6N2VFgZ JvNpyduNsBqlzzRVwSJvcF1ddm9BuAHRknHTEgBWytm6zQF9BoxJLMabwxDtjkgYdt4e 4avkefKc+WS3c08AnNwc+uxZHO5aK56Pa8L5CFaq4AkJM27vCv2f6XmwHx/YjXmdG/RI l8PO07Fm6zA/0KYTZZl/fiq8HqAbbeqbK/nRX9AvydhgpbfP6cwrHnhbYjUqe5J0dK90 82MXptdrPjRq+8lI0j0HeuZqaFIIyWO0neLcr/emht/BuzKBbt/BqIokb37iqm0t8ILc kNFA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date; bh=hCV/kEWm4gH944asTU47PFGEJuXqeNA7NC8FumdoY1s=; fh=9TB29k8+Ec1WYF/9x5fFEVxdT+8xV/Vv3A2LlP/OhTI=; b=uXh+nHcanE3yMYvL75BNIqm56ZR7dVLf8Zigh07WGynhWUTxJXm3pVyZe1h033Rpwr JpjagHq0PgNMHeWDgiqLSS6dkgc3isNN3954QGahGQZevt0X4+Ne6pVFt/bNo7uxQPkX tShGg087+XmTYSC4SVCi9lAM2uJ0B5CRy0MAYi91yX3aeJTwcm9+rHpVXvOflxynPYB3 XRbuzPF/qLBlNXlY4XqQOWr/HsDsrQ97mSueXh3s/Z9LnRbUxExZsMLSgzr6yGfXZ3rq tbdtaxSA2JlrLjQGS8e50ia7Lm0YqmoX8fdtcg8XwX3dFFfu0x82q8ppcmEy7pYRdms2 xy9Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-155182-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-155182-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id o5-20020a17090ac70500b002ab363e2fdesi11271990pjt.99.2024.04.23.05.40.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Apr 2024 05:40:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-155182-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; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-155182-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-155182-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.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 3C6EE284FFB for ; Tue, 23 Apr 2024 12:40:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 807C312B17B; Tue, 23 Apr 2024 12:38:04 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 91B4684DF7 for ; Tue, 23 Apr 2024 12:38:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713875884; cv=none; b=UgKLwjNyEIj/WuvvKGRoDar7dS5Lh5iUuV7+dY91d0WIzCRra5Rrk37AEETJ7vDLLlc1qC/1bp2swIYDBkwb3WICRjfbvNCOpDAeXfNkON1QLvCbTSkFdBXuFRdZYfI5BnFRKxSsjFYK7IiyQMovkf9QW8uPUMDpmOzYwv6ZnOo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713875884; c=relaxed/simple; bh=AY5JJeDJivKChvabexTUc3tK2jPNqYuOCFzaoJVLCUU=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=vDEWdeKrijfBES9Q7pSxtfkax8h/idcGhfIY40grsgS7igVFnteNk+pnJdGKo69Rvt972s1TNN5VEakbKqvqweU6WX3hZCDrsBiwhH6t5H/Bwdm5N6y8aPE1/FYHN1hS/qHFizoa74l+1Sm6+cHiW0OQVwRZRPN2Sqd+gTCdVas= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id CF022339; Tue, 23 Apr 2024 05:38:29 -0700 (PDT) Received: from e133380.arm.com (e133380.arm.com [10.1.197.52]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 18F043F7BD; Tue, 23 Apr 2024 05:37:58 -0700 (PDT) Date: Tue, 23 Apr 2024 13:37:56 +0100 From: Dave Martin To: Peter Newman Cc: Reinette Chatre , babu.moger@amd.com, James Morse , x86@kernel.org, linux-kernel@vger.kernel.org, Fenghua Yu , Thomas Gleixner , Ingo Molnar , Borislav Petkov , H Peter Anvin , shameerali.kolothum.thodi@huawei.com, D Scott Phillips OS , carl@os.amperecomputing.com, lcherian@marvell.com, bobo.shaobowang@huawei.com, tan.shaopeng@fujitsu.com, baolin.wang@linux.alibaba.com, Jamie Iles , Xin Hao , dfustini@baylibre.com, amitsinght@marvell.com, David Hildenbrand , Rex Nie Subject: Re: [PATCH v1 00/31] x86/resctrl: Move the resctrl filesystem code to /fs/resctrl Message-ID: References: <20240321165106.31602-1-james.morse@arm.com> <94c3bfd0-e221-46c7-86c4-f0545e66f17d@amd.com> <4cf859be-294f-4db3-948c-a96b5457a10d@intel.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=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On Mon, Apr 22, 2024 at 11:39:00AM -0700, Peter Newman wrote: > Hi Dave, > > On Mon, Apr 22, 2024 at 9:01 AM Reinette Chatre > wrote: > > > > Hi Babu and Dave, > > > > On 4/22/2024 6:51 AM, Moger, Babu wrote: > > > On 4/19/24 23:06, Reinette Chatre wrote: > > >> > > >> [1] https://lore.kernel.org/lkml/cover.1711674410.git.babu.moger@amd.com/ > > > > > > Do you have any more feedback on this series. I have few feedbacks from > > > Peter. I was planning to work on v4 of this series. > > > > > > > Babu: It is difficult to start drilling into the implementation before there > > is agreement on the interface. One reason you went through the effort of > > the first few iterations was to accommodate Arm's use cases as we understand > > it, but we need to hear from Arm if we are on the right track here. > > I do hope that we will hear something in the next couple of weeks. > > > > Dave: Could you please check in if the interface introduced [1] is something > > of interest to Arm? If it is not, we can proceed with the implementation without > > trying to consider how Arm may use/need such an interface. If it is, could you > > please let us know when we can expect feedback from Arm? > > Because MPAM implementations typically expose an MSC for each DRAM > channel, there is an alternate strategy we can use for the monitor > scalability problem: > > When a single DRAM MSC does not provide enough monitors to track all > of the supported PARTID x PMG combinations simultaneously, the DRAM > MSCs collectively may provide a sufficient number of monitors. > Therefore, as long as the distribution of traffic among the DRAM > channels is uniform (or predictably non-uniform), it's possible to > estimate the total bandwidth with sufficient accuracy. > > -Peter > So you're suggesting that if (say) DRAM traffic is striped symmetrically across N channels, and each has counters, then a counter matching PARTID:PMG on just one channel should given an unbiased estimate of the traffic from that group (with some sacrifice of precision, and assuming the workload is non-pathological)? I guess that could work, though this might work badly for some workloads and might give a malicious workload a way to hide transactions from monitoring if the placement of the counter is too fixed and/or predictable. Cheers ---Dave