Received: by 2002:a05:7412:40d:b0:e2:908c:2ebd with SMTP id 13csp8400rdf; Mon, 20 Nov 2023 14:23:57 -0800 (PST) X-Google-Smtp-Source: AGHT+IE/uwHpqfLJHYJkmf7B77pjpEJYybSjZn1Dkkbcz39WOWL0dcdFs5sp5J025+22ZJBKGeM0 X-Received: by 2002:a05:6808:2886:b0:3b6:da98:437b with SMTP id eu6-20020a056808288600b003b6da98437bmr10260640oib.45.1700519037680; Mon, 20 Nov 2023 14:23:57 -0800 (PST) Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id bm22-20020a656e96000000b005bdf5961633si9366968pgb.21.2023.11.20.14.23.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Nov 2023 14:23:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=AEkKrXt7; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 994678025B6B; Mon, 20 Nov 2023 14:23:56 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232336AbjKTWXv (ORCPT + 99 others); Mon, 20 Nov 2023 17:23:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38890 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229504AbjKTWXt (ORCPT ); Mon, 20 Nov 2023 17:23:49 -0500 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.88]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C389697; Mon, 20 Nov 2023 14:23:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1700519025; x=1732055025; h=message-id:date:subject:to:cc:references:from: in-reply-to:content-transfer-encoding:mime-version; bh=C4+i/0yKz9L3g91nygDL+hLXfW76NBhVrFdWPuVP+jg=; b=AEkKrXt7EiCormi630k89tEsP2WqPGVHERDnoPGqrm3NLECu3bGDK4GG 9OCMjZ4MYzKN0XTppPRehNDdKZwgFE8A3ac43UjC6wIDuzAtSie3FFA6o p5dVBG4YYiukDvQledSVqxITXB3ax4No5e6G7XlNKzDLAXdzTH2CbnKs9 XXsMi1LtywZocwtUC9DnnZw32CzRLhftU2LoZrcsN6rnh8sVpSaqanmZp 5tq6pDOyzHzj3uZgW75Iijvg+KTepXDHaOiuYw7ykQFIk+oOoZUIZkaN+ oARjstwWTIKomIydr5RFjjZcp/dG2kmoOwaEp/0MpfYdeu9WGqkJDzg/W g==; X-IronPort-AV: E=McAfee;i="6600,9927,10900"; a="422820772" X-IronPort-AV: E=Sophos;i="6.04,214,1695711600"; d="scan'208";a="422820772" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Nov 2023 14:23:34 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10900"; a="742856365" X-IronPort-AV: E=Sophos;i="6.04,214,1695711600"; d="scan'208";a="742856365" Received: from orsmsx601.amr.corp.intel.com ([10.22.229.14]) by orsmga006.jf.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 20 Nov 2023 14:23:34 -0800 Received: from orsmsx611.amr.corp.intel.com (10.22.229.24) by ORSMSX601.amr.corp.intel.com (10.22.229.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.34; Mon, 20 Nov 2023 14:23:34 -0800 Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) by ORSMSX611.amr.corp.intel.com (10.22.229.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.34; Mon, 20 Nov 2023 14:23:33 -0800 Received: from ORSEDG601.ED.cps.intel.com (10.7.248.6) by orsmsx610.amr.corp.intel.com (10.22.229.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.34 via Frontend Transport; Mon, 20 Nov 2023 14:23:33 -0800 Received: from NAM10-BN7-obe.outbound.protection.outlook.com (104.47.70.101) by edgegateway.intel.com (134.134.137.102) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.34; Mon, 20 Nov 2023 14:23:32 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=VzC5ToaovPK3jE50doZEBA6C+uufigxpYZw7n8Z2+WdHBJQ/TVE49Gmdu6V1jDP6lGpplwAK+C/9tibkMzkQYumPQpsQbFpNrUsiA1ty3YFrVXqnreeaqBdNfdyGvb2p9u8Q9lShYANPk6gI+/EMw1J/tHOsPHP+0I1O3AOXmxgK3qIUTMk6ZH03V3pvj5MffsVQqZZ0DCjutZqjDWrpJ8pw7vPT2klUo7T+TYJi7NdP/Ia1ndzdlMb8LFJeqcCb14QrtTnETxtq698B4QC9bokr63MW132XIRGmH+Qp4SF/9t+p5JWiMTGMAs0S7bDpnvWgL6Sk+/W9rQNXEQ5vpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=PA7ICDMmHCiE1IyK4X8vPv95R2DDAm02XDzIC+nUrS4=; b=EruZtkCmfZQlt43v++P/bq367prEeyhHp5krjUZ+cSvCo7UCptay0W30Abm0uzkp567j5/OQDypRioU1ul8GCs7NHMj/vTt4s68HJ0X6YVfSQlHfEWqxSwe28XD0B8VeC2zZL2HlF4rHnBVvR5kw/ictSFJMYKThqSXtcGgBN9jk9gKnrQiZUz0/CBE7i0fR0nPDZL+qrkQ4MAunh7qDkv1aqoEfDZZg6Bocy226N5WdDpX2/PrpZnyEX3D5GEcbAC7qEowgLFC/JCl1Syx9myUuiosGxNfoX56SmZ7bMxw/25mD2rUH23hFC/R8prkXPQLCyJuqKbeaN5kr4g06RQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; Received: from SJ2PR11MB7573.namprd11.prod.outlook.com (2603:10b6:a03:4d2::10) by CY8PR11MB7797.namprd11.prod.outlook.com (2603:10b6:930:76::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7002.27; Mon, 20 Nov 2023 22:23:30 +0000 Received: from SJ2PR11MB7573.namprd11.prod.outlook.com ([fe80::6710:537d:b74:f1e5]) by SJ2PR11MB7573.namprd11.prod.outlook.com ([fe80::6710:537d:b74:f1e5%5]) with mapi id 15.20.7002.019; Mon, 20 Nov 2023 22:23:30 +0000 Message-ID: <3fb83b18-c9cc-42f6-813b-c5cfa526e91c@intel.com> Date: Mon, 20 Nov 2023 14:23:29 -0800 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v11 6/8] x86/resctrl: Introduce snc_nodes_per_l3_cache Content-Language: en-US To: Tony Luck , Fenghua Yu , "Peter Newman" , Jonathan Corbet , "Shuah Khan" , CC: Shaopeng Tan , James Morse , Jamie Iles , Babu Moger , Randy Dunlap , , , References: <20231031211708.37390-1-tony.luck@intel.com> <20231109230915.73600-1-tony.luck@intel.com> <20231109230915.73600-7-tony.luck@intel.com> From: Reinette Chatre In-Reply-To: <20231109230915.73600-7-tony.luck@intel.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-ClientProxiedBy: MW2PR16CA0001.namprd16.prod.outlook.com (2603:10b6:907::14) To SJ2PR11MB7573.namprd11.prod.outlook.com (2603:10b6:a03:4d2::10) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ2PR11MB7573:EE_|CY8PR11MB7797:EE_ X-MS-Office365-Filtering-Correlation-Id: 4379f6b0-48e6-447c-ea12-08dbea17532b X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Ie6u6qB6tZVbQ4IwOcBoMMesMyu0/DqcU/AnSFT3YYfDbElCp8WbXdJtPrCJk7N2nnXkKtSquqBY1QgPu4EorwMcYhO5S8o9O+nitGLxO1c8ejc3EZaRYHJ03GDx1IxG8njEvOto5fu/tpNJE3Zws0Wg4We6gv6zSaR6v30m/ciIOv+kdG0EXsFe477n47FoH+eZpxGId/wioMWEBTqqHGYcWKy3hYA5OramwZDYu0iOAmrfMNkKPknY7erjoZM2h0Lj7Rjr1xXjKYarEfuNn5xgwUCqtx/x2a24tfAl2m5xSuY+HiKWHb552vDRjALaRJc0j8KxUAamiJurG+/tsjh8tt/vVVs3fKpc7HjTmTtbmICNg0Ny/QUb3LcRM1QH3Vgb9NTuFAZwVSljuu5qiaDNxxjYGYj1QZoNbup1bQGYYKffP5bHMVC7z0xXHIXnD4jJeHeKuAzOn/eFT+OKIPMpKqwz2vdlytdt+0exMYs9FQQTCOb1jnMs/jbqqpKCpvkdyS4NnhPNRZ6iXPM5F9598N0OvhawRZ3tbhhMGygF/cmBP8drzlkjGyClyYRlJ0Yt8lZV0V4BreuVp1Tpg8yFRj9KGpZHEsz9cjVuyYFbObh1ndV7QnMJJunQQPH0IcaHAE1J0CBXqLCeq+ctWA== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SJ2PR11MB7573.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(346002)(396003)(376002)(39860400002)(366004)(136003)(230922051799003)(451199024)(64100799003)(186009)(1800799012)(83380400001)(53546011)(6512007)(26005)(41300700001)(4326008)(8676002)(8936002)(38100700002)(7416002)(2906002)(44832011)(5660300002)(478600001)(6486002)(6506007)(110136005)(66476007)(66556008)(66946007)(54906003)(316002)(36756003)(31696002)(86362001)(82960400001)(31686004)(2616005)(43740500002)(45980500001);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?em1ySC94UG5BZXFOVS9NeEJ1MlV0L3JFVzgrY0lXNXA5NitDWmNQR0FpNkpa?= =?utf-8?B?MDlDb290emZDMWhYcFQrYndwcGp3YVhTYkVCck1GZ1NRVFNOK0x2M0k3VlZE?= =?utf-8?B?SXdqaG9MR0MzRHdEbEIxb3hYSEN5VGpRMGFvZHpZT3RodkJNTmgwWm5mZ0hB?= =?utf-8?B?SWhPQjkzR096SnBQWTBqYW8xSHJjdG5xeFRSd0JEYXcvMnRBMVo4alZtVWMv?= =?utf-8?B?N0dpMklGc21aM3NIQWhlL3pSa1pmUWR4LzFPMEY5UEpBUURyOFlmTVhhVUtY?= =?utf-8?B?NGhkM1gvMkYybzB1M0dTc3YzdWJDT0dIYkpRS2xiYmtLc1N1MkdRaEVrQmdV?= =?utf-8?B?VGdEY0d6WkI1K0JMeU15eU5PWG9aQzVNaVZ5d2JGVlNXL0xwTlFTcDZtTmpi?= =?utf-8?B?MmpxTlVwdDg2U09LcHJmNkJWbm1EbD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-447c-ea12-08dbea17532b X-MS-Exchange-CrossTenant-AuthSource: SJ2PR11MB7573.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Nov 2023 22:23:30.4988 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: sjY7Koo9XqL7mo79IzhG2Sv+PBdgXOQ7UO88yLi1Qi/WI51wb4MEQtn4JVHEPA0owhpRJAg5mJ4tckRvpRpPPHEcg+hRvDNgf755lM1IdXo= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY8PR11MB7797 X-OriginatorOrg: intel.com X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_NONE,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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Mon, 20 Nov 2023 14:23:56 -0800 (PST) Hi Tony, On 11/9/2023 3:09 PM, Tony Luck wrote: > Intel Sub-NUMA Cluster (SNC) is a feature that subdivides the CPU cores > and memory controllers on a socket into two or more groups. These are > presented to the operating system as NUMA nodes. > > This may enable some workloads to have slightly lower latency to memory > as the memory controller(s) in an SNC node are electrically closer to the > CPU cores on that SNC node. This cost may be offset by lower bandwidth > since the memory accesses for each core can only be interleaved between > the memory controllers on the same SNC node. > > Resctrl monitoring on an Intel system depends upon attaching RMIDs to tasks > to track L3 cache occupancy and memory bandwidth. There is an MSR that > controls how the RMIDs are shared between SNC nodes. > > The default mode divides them numerically. E.g. when there are two SNC > nodes on a socket the lower number half of the RMIDs are given to the > first node, the remainder to the second node. This would be difficult > to use with the Linux resctrl interface as specific RMID values assigned > to resctrl groups are not visible to users. > > The other mode divides the RMIDs and renumbers the ones on the second > SNC node to start from zero. > > Even with this renumbering SNC mode requires several changes in resctrl > behavior for correct operation. > > Add a global integer "snc_nodes_per_l3_cache" that will show how many > SNC nodes share each L3 cache. When this is "1", SNC mode is either > not implemented, or not enabled, but all places that need to check > it are updated to take appropriate action when SNC mode is enabled. > > Code that needs to take action when SNC is enabled is: > 1) The number of logical RMIDs per L3 cache available for use is the > number of physical RMIDs divided by the number of SNC nodes. > 2) Likewise the "mon_scale" value must be divided by the number of SNC > nodes. > 3) The RMID renumbering operates when using the value from the > IA32_PQR_ASSOC MSR to count accesses by a task. When reading an RMID > counter, code must adjust from the logical RMID used to the physical > RMID value for the SNC node that it wishes to read and load the > adjusted value into the IA32_QM_EVTSEL MSR. > 4) The L3 cache is divided between the SNC nodes. So the value > reported in the resctrl "size" file is divided by the number of SNC > nodes because the effective amount of cache that can be allocated > is reduced by that factor. > 5) The "-o mba_MBps" mount option must be disabled in SNC mode > because the monitoring is being done per SNC node, while the > bandwidth allocation is still done at the L3 cache scope. > Trying to use this feedback loop might result in contradictory > changes to the throttling level coming from each of the SNC > node bandwidth measurements. > The latter part of this changelog stopped being in imperative mood. To reduce confusion I slightly reworked it below to address the parts I noticed. I often get it wrong myself so please check again. Add a global integer "snc_nodes_per_l3_cache" that shows how many SNC nodes share each L3 cache. When "snc_nodes_per_l3_cache" is "1", SNC mode is either not implemented, or not enabled. Update all places to take appropriate action when SNC mode is enabled: 1) The number of logical RMIDs per L3 cache available for use is the number of physical RMIDs divided by the number of SNC nodes. 2) Likewise the "mon_scale" value must be divided by the number of SNC nodes. 3) The RMID renumbering operates when using the value from the IA32_PQR_ASSOC MSR to count accesses by a task. When reading an RMID counter, adjust from the logical RMID to the physical RMID value for the SNC node that it wishes to read and load the adjusted value into the IA32_QM_EVTSEL MSR. 4) Divide the L3 cache between the SNC nodes. Divide the value reported in the resctrl "size" file by the number of SNC nodes because the effective amount of cache that can be allocated is reduced by that factor. 5) Disable the "-o mba_MBps" mount option in SNC mode because the monitoring is being done per SNC node, while the bandwidth allocation is still done at the L3 cache scope. Trying to use this feedback loop might result in contradictory changes to the throttling level coming from each of the SNC node bandwidth measurements. > Reviewed-by: Peter Newman > Signed-off-by: Tony Luck > --- (same comment as previous patch about commit tag ordering) Reviewed-by: Reinette Chatre Reinette