Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp522608rwb; Tue, 25 Jul 2023 20:58:29 -0700 (PDT) X-Google-Smtp-Source: APBJJlHsQHjcS8e1231ch2TDPzumLGXHOwWFNd1pv8Z4glRYLUyfxFznNhbfmQomQsqsDAiqEe9B X-Received: by 2002:a17:907:2c6a:b0:994:1fc7:a7e6 with SMTP id ib10-20020a1709072c6a00b009941fc7a7e6mr610909ejc.4.1690343908983; Tue, 25 Jul 2023 20:58:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690343908; cv=none; d=google.com; s=arc-20160816; b=t72c7Yyt+sduB/jlONd5dtlZdUOXLigD+aC8YDcDZcTsLZadvlHkfcTAqL03pHpBzS T1OwVzQd47tq4uazzb5xjGRcit6prBw4Zi/EGgKQX+3GeY2XN/tvthRz0UJcjlOctlrP LLxsJ3UmrvnweTJHPn4WyhFLKdclMLMCyQyiNp7W+9SKyJf1ppMslTa3Y8zIC1Up3toQ NRDAGN2tAoa71PG+Rdxpm2KMqsitQKQ64azkyn2y2mZcE7ahzVtUxlu2elupJ2w6Xjn7 RPsSzbOmH7CBrnLc/yVhlgJa1ztWhJkPOxVZuJ5G9KWrjzg/AqPVQkMxbEgmKp9PEWnV Jchw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=IvvLurWmKpoBDmJ7SuX6DjccQU9JInSh+QxeozTVIBs=; fh=Aplx4/mKtngDDuMKO5Neb8gNjG981Ny84cOkZczrbFo=; b=BTuMfk/oL0GUjTAW04mdHQRxVFXJY85HK5D1vAk2Lrmlm41oRtCGSbb2MNtFGG9sA4 HqTBP8bh99kPBHN0UzLiU6rclTp+KkuHme7tbw7aY4v3Eu8LbpH7nYsqzr0P59d8yJ8A eve0cGwtmloaPvmHr7M/CJFdt0pT3amY1ePxB7K/niEW1TdPZE24w8QA5Wtqn4tJKhOu ajnNgtiscj+RATwM8uSPYycdFfl6QU37z8i33Ficy5/bIvcvFbmmRg++CFUMlBG+Aivc 4Fjy5Zgh0leytaJu/iFoYcZlGGCJc9OCUr0HUOhwEgo5VKl5tfRJojCMoqXiFYuLfL2e Vmiw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20221208.gappssmtp.com header.s=20221208 header.b="CfDRR/Ms"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i7-20020a1709064ec700b0099364d9f0eesi8948519ejv.481.2023.07.25.20.58.04; Tue, 25 Jul 2023 20:58:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20221208.gappssmtp.com header.s=20221208 header.b="CfDRR/Ms"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231244AbjGZDLI (ORCPT + 99 others); Tue, 25 Jul 2023 23:11:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40100 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231156AbjGZDK7 (ORCPT ); Tue, 25 Jul 2023 23:10:59 -0400 Received: from mail-pl1-x629.google.com (mail-pl1-x629.google.com [IPv6:2607:f8b0:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 96F2D26B6 for ; Tue, 25 Jul 2023 20:10:55 -0700 (PDT) Received: by mail-pl1-x629.google.com with SMTP id d9443c01a7336-1b8b4749013so49051785ad.2 for ; Tue, 25 Jul 2023 20:10:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20221208.gappssmtp.com; s=20221208; t=1690341055; x=1690945855; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=IvvLurWmKpoBDmJ7SuX6DjccQU9JInSh+QxeozTVIBs=; b=CfDRR/MsKQr4yQmvH1tf9lA+6ksK77CLAWkfaZG7w+l/aylzxRwjpL0NhZH+6rqCGP k+7iykahUIt40I/sncUh0d7v16l60BZBJemQgsqnuWRul/lTrqRq8b8FrncslukXg15T 18im0RzsPEgylMEn5AMuVo23Z6Tq1NNMUxC/TebzeszW46H4wQ9gcsVc3yurlPbd/ZNP 72f69+U9Lb4wxU0Z/AhggqGh/oOIng0YiXIM9TWCEbm0hC1sIu4soiSFy3RFMcoOQF7G M7hLrNQXinkN+jRZsZ24Hu12UJcNTN5+bWSYe61WBJGDuNUFAc1f3wrcAgKAfOmd85TG YkjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690341055; x=1690945855; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=IvvLurWmKpoBDmJ7SuX6DjccQU9JInSh+QxeozTVIBs=; b=kD9TtiO/uEwJ7hO40PuSlvu0M/w+QWExiQTGCn59UnGZ+GEL0VvliQhlOCxC+eIVtO H2nPUU5Sn+PBe3iv2ZzUKMdK6ZTlgkZuDkxhd5OV3CV7SmJf76jr2MtnCKALex9iWbSJ cJkU/Iq3QoBhZNZJCWLhyLqUxO+A4uytH3PCyI9A/FXnmO6/ZYwE9XGTE3Sje+Tr1YQB xCZG5gWRnMUhV6uzDRBQ1Duz+VotIZPNtNhabP9LF1nkKRN5vD5+GBHgsgry04AksKMd o2GmSZTh32m853uyZqOTprkbaxTndrVUKV8s5U1zuTNeLVDg8iip8xzdQwm88cwEO1SB t3bQ== X-Gm-Message-State: ABy/qLbDDellJaixVT/anuHRvhFDEC5WR20kwTeYBdIDLUJrVqZt7nmV yOlhXsPFjWRx6HrK6Mxco0C+NA== X-Received: by 2002:a17:902:ec89:b0:1ba:fe63:6622 with SMTP id x9-20020a170902ec8900b001bafe636622mr1265902plg.32.1690341054956; Tue, 25 Jul 2023 20:10:54 -0700 (PDT) Received: from x1 ([2601:1c2:1800:f680:ab7f:7b75:8135:310]) by smtp.gmail.com with ESMTPSA id p18-20020a170902a41200b001bb9f104333sm5565234plq.12.2023.07.25.20.10.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Jul 2023 20:10:54 -0700 (PDT) Date: Tue, 25 Jul 2023 20:10:52 -0700 From: Drew Fustini To: Tony Luck Cc: Fenghua Yu , Reinette Chatre , Peter Newman , Jonathan Corbet , Shuah Khan , x86@kernel.org, Shaopeng Tan , James Morse , Jamie Iles , Babu Moger , Randy Dunlap , linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, patches@lists.linux.dev Subject: Re: [PATCH v4 0/7] Add support for Sub-NUMA cluster (SNC) systems Message-ID: References: <20230713163207.219710-1-tony.luck@intel.com> <20230722190740.326190-1-tony.luck@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230722190740.326190-1-tony.luck@intel.com> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Jul 22, 2023 at 12:07:33PM -0700, Tony Luck wrote: > The Sub-NUMA cluster feature on some Intel processors partitions > the CPUs that share an L3 cache into two or more sets. This plays > havoc with the Resource Director Technology (RDT) monitoring features. > Prior to this patch Intel has advised that SNC and RDT are incompatible. > > Some of these CPU support an MSR that can partition the RMID > counters in the same way. This allows for monitoring features > to be used (with the caveat that memory accesses between different > SNC NUMA nodes may still not be counted accuratlely. > > Signed-off-by: Tony Luck > > --- > > Changes since v3: > > Reinette provided the most excellent suggestion that this series > could better achieve its objective if it enabled separate domain > lists for control & monitoring within a resource, rather than > creating a whole new resource to support separte node scope needed > for SNC monitoring. Thus all the pre-amble patches from the previous > version have gone, replaced by patches 1-4 of this new series. [This comment is unrelated to Sub-NUMA support so please disregard if this is the wrong place to make these comments] I think that the resctrl interface for RISC-V CBQRI could also benefit from separate domain lists for control and monitoring. For example, the bandwidth controller QoS register [1] interface allows a device to implement both bandwidth usage monitoring and bandwidth allocation. The resctrl proof-of-concept [2] had to awkwardly create two domains for each memory controller in our example SoC, one that would contain the MBA resource and one that would contain the L3 resource to represent MBM files like local_bytes. This resulted in a very odd looking schemata that would be hard to the user to understand: # cat /sys/fs/resctrl/schemata MB:4= 80;6= 80;8= 80 L2:0=0fff;1=0fff L3:2=ffff;3=0000;5=0000;7=0000 Where: Domain 0 is L2 cache controller 0 capacity allocation Domain 1 is L2 cache controller 1 capacity allocation Domain 2 is L3 cache controller capacity allocation Domain 4 is Memory controller 0 bandwidth allocation Domain 6 is Memory controller 1 bandwidth allocation Domain 8 is Memory controller 2 bandwidth allocation Domain 3 is Memory controller 0 bandwidth monitoring Domain 5 is Memory controller 1 bandwidth monitoring Domain 7 is Memory controller 2 bandwidth monitoring But there is no value of having the domains created for the purposes of bandwidth monitoring in schemata. I've not yet fully understood how the new approach in this patch series could help the situation for CBQRI, but I thought I would mention that separate lists for control and monitoring might be useful. Thanks, Drew [1] https://github.com/riscv-non-isa/riscv-cbqri/blob/main/qos_bandwidth.adoc [2] https://lore.kernel.org/linux-riscv/20230419111111.477118-1-dfustini@baylibre.com/