Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp10253320rwl; Wed, 11 Jan 2023 17:11:53 -0800 (PST) X-Google-Smtp-Source: AMrXdXt26gk1e/akY2PPZk4hQ+HqMKy8We+taKjWOE1aiDZ7amDnugzbUiDFFo52tNk9eHmT6j1y X-Received: by 2002:a17:902:6acc:b0:193:11df:670 with SMTP id i12-20020a1709026acc00b0019311df0670mr19812287plt.20.1673485913626; Wed, 11 Jan 2023 17:11:53 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1673485913; cv=pass; d=google.com; s=arc-20160816; b=AEkUgY4NbNE/0Hd1u+BVtEw0guIGpZZfasmAFXiZwmil2H+1GS50vlzckJ1i7bYARa k2M+xK1o7ypKNdxkwrjJ+VHJXr7vtM7fxgD9u7R1TEF9+rCSJqtRbf+ov4OJgFMreFtb jVbIjzi/3Bahig7NnX65BpRH5XRzEJaAQ1SgyvKXCoxOQCpGOMG5QLihMKQFBADDBSem qom/GVEriyAVRZyuKoYi3TZ8PKnUzdGf+eYV6058x+g93mt5IIt/Yq0okXURM/t4xkZW 1J619X5rAatorcWvqj56uamlM6nDsz5OZQ+FFnarPGzp6NZ5cWKtlYRjzYt82zp1I51U 8M1g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:from:references:cc:to:content-language:subject:reply-to :user-agent:date:message-id:dkim-signature; bh=14Ez5WJYeJ8GjfbMjtnUuvn7kh8NVujvKbX0UXbDDIM=; b=NRx9mUXzvvLVinKnJF3zZ+DzLj2HdnKroG1mX318KSVBq95BWx7KlYkWl504w03zcW 02Ky4xrL1nqOPjMXLDnnZbpLb9AdCut+uB8vrOxodYeANkAHfypDA9Km9rD43JCIxekP 7RsouuSBmD7bsFNFVw+0FseS49Ni6vxXO3bEwbskXw4PzKUstkh3Bs/KfggP9P2F1VoD cJ7aPOO/ODi7EVGOcqGKAGWuCW3z11/b2DspsXX1oTTBtbm1407k8LU2BhZZerAo4gQS l9cnxgOmLshunhlyiVHDbxnjkZ7+Bz5sBgBppcgeEtkW39t9N9sTNKqjvflXP9BN5+Lk JhJQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=rN3d08uF; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.com); 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o17-20020a170902779100b00189005c48aesi14864285pll.108.2023.01.11.17.11.46; Wed, 11 Jan 2023 17:11:53 -0800 (PST) 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=@amd.com header.s=selector1 header.b=rN3d08uF; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.com); 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236548AbjALAlO (ORCPT + 50 others); Wed, 11 Jan 2023 19:41:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58068 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236216AbjALAkf (ORCPT ); Wed, 11 Jan 2023 19:40:35 -0500 Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2075.outbound.protection.outlook.com [40.107.237.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2AD5318B14; Wed, 11 Jan 2023 16:40:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=n/zc4aBqsDTOSEQOqHAwmH3Hh1rDQxC10OBa+1pJfFRXGKyrrZrjz0ElNFhRT5B1bLd2qT2Juc1KGQZo1IbT82+lwN+fnJAJ+Fao+BIRPF38sx2w1s1IOb+P15p+oTAokdfzGHMjGXXmEVp1FMRFlXbzFq9EjC8t3GTBhqUD92ksjXWjSHS0vGpTI1sDIiqy2nADhwQ41Xjr/qrnqaQqixUbvRufrRsysaimurEab8dETmjRj/16b0KMGu7wwmfUxS/oZfyM0lVkwFJwOiOjZ5vtQ0mZNmAdvDR4NFYcaD5MfPv8oQNhHeLz6WGAJCWv8xFmz7tzCOEEUtpyNCmiAg== 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=14Ez5WJYeJ8GjfbMjtnUuvn7kh8NVujvKbX0UXbDDIM=; b=j2X73W/iRy+dzgL+qfoOOFfrLihlCvBUNtJSA71YFBvC6PBQR80NRtg5JOs1yhOOVy1064snMaZkL9Ejo5PM/prhEGNAk6p9zUOE3X+n1Bnn3uWjUnSV4y7E49QIFFhke1TPEalK5gxtEjhOXzxY30Ytic7yLJ9iv+VxyTWb9Aw4V1tj52QadVrKouxvJtI3rk0XtbYmjnvilq5Dz0DXQ3gYj34Up0lpbiDAJjP36/2ZOAfUMI/Zh6mmUZ60dHEnRwd53EU+uskcwHcRHSC/eMmUXIL0q7QwlI53W1unrPuoFReM6ubJ/vOSeEZw4sUqiUaWUgFlkhjbOiBjJIC+CA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=14Ez5WJYeJ8GjfbMjtnUuvn7kh8NVujvKbX0UXbDDIM=; b=rN3d08uF7nz8Ldqgi8J7QvowJSkg6K99vCO689mQd2hP6fJVhTUyvv8VMKE+jYWKQk1jLvgnSv/5WfI8zzl/ONEqlq5rN4WmU1abyA7lefgGC5UB/nt5ydPjohDRkdBj5E6RW7i176l+7OlKTQef50tWJ/2361rdwh/M2QMGoyA= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from MW3PR12MB4553.namprd12.prod.outlook.com (2603:10b6:303:2c::19) by MN0PR12MB6294.namprd12.prod.outlook.com (2603:10b6:208:3c1::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.13; Thu, 12 Jan 2023 00:40:06 +0000 Received: from MW3PR12MB4553.namprd12.prod.outlook.com ([fe80::790c:da77:2d05:6098]) by MW3PR12MB4553.namprd12.prod.outlook.com ([fe80::790c:da77:2d05:6098%7]) with mapi id 15.20.5986.018; Thu, 12 Jan 2023 00:40:06 +0000 Message-ID: <03b78a30-97e4-07d8-5a09-44eb26b75970@amd.com> Date: Wed, 11 Jan 2023 18:39:59 -0600 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Reply-To: babu.moger@amd.com Subject: Re: [PATCH v11 13/13] Documentation/x86: Update resctrl.rst for new features Content-Language: en-US To: Reinette Chatre , "Moger, Babu" , "corbet@lwn.net" , "tglx@linutronix.de" , "mingo@redhat.com" , "bp@alien8.de" Cc: "fenghua.yu@intel.com" , "dave.hansen@linux.intel.com" , "x86@kernel.org" , "hpa@zytor.com" , "paulmck@kernel.org" , "akpm@linux-foundation.org" , "quic_neeraju@quicinc.com" , "rdunlap@infradead.org" , "damien.lemoal@opensource.wdc.com" , "songmuchun@bytedance.com" , "peterz@infradead.org" , "jpoimboe@kernel.org" , "pbonzini@redhat.com" , "chang.seok.bae@intel.com" , "pawan.kumar.gupta@linux.intel.com" , "jmattson@google.com" , "daniel.sneddon@linux.intel.com" , "Das1, Sandipan" , "tony.luck@intel.com" , "james.morse@arm.com" , "linux-doc@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "bagasdotme@gmail.com" , "eranian@google.com" , "christophe.leroy@csgroup.eu" , "jarkko@kernel.org" , "adrian.hunter@intel.com" , "quic_jiles@quicinc.com" , "peternewman@google.com" References: <20230109164405.569714-1-babu.moger@amd.com> <20230109164405.569714-14-babu.moger@amd.com> <812a0d4d-dfb9-d351-9c9d-01d6943cd72b@intel.com> From: "Moger, Babu" In-Reply-To: <812a0d4d-dfb9-d351-9c9d-01d6943cd72b@intel.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-ClientProxiedBy: CH2PR17CA0003.namprd17.prod.outlook.com (2603:10b6:610:53::13) To MW3PR12MB4553.namprd12.prod.outlook.com (2603:10b6:303:2c::19) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MW3PR12MB4553:EE_|MN0PR12MB6294:EE_ X-MS-Office365-Filtering-Correlation-Id: ea827826-9cb2-441a-9caf-08daf4358cb2 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: dves6y014Yj0HGWLrdGH6Co8lDYYzxCWg/mSGpPK+YsNbpGN6Iqt19xXnTHxrRrBl7NR+5oy0edukNAYZ0pR4Czgy2HU/VWI9A8nZLkkQMS7fn8D4SeKiC6CNiGtN/EIkm5UpqIzK4Fft9b1jZIB9VTa7ElwPLt1cXi8qUxzRrtbB50G5z2idxE3z3Mp7gYlSRzhN5u7PISx0gCBEKei6GvPlKFvmx0gHj7tta/b2gRkMS1ll9pwJ0kAF2hyzuom5vgzQ2458Up8mAMDO8ZjOyeTfm0QIeShy4VHRxB5+HM/fbrp+UmfKW91o7Ne6Zd50+4FC7hzIOUsjyY4wWvdvAHftTD/ZMW3HZu1mJFLFslZJAp0ZH4xvnBZLgt77P5RIQ5ouhycWiMBKuhtCIQyCQJHxn4aL2lTm0xXscA2qf7TFha71mmh+82uMDyFjddW6Na4D40kJKiTgLAYbg377YwLuR6fBdx7FaubX/4n8K/s5KVktNdhNRo3ldHmPW9ojpDbywCNuWy+5UtsYLy5OFTULUdETJkq3nErdQDCqBC3NNnOv+8JfME5C/BJzwZv7o7fKHkhOuda8NGq3qkCnE67wUS53nYzzVgrAAnYifnv9fCEKmteS5/c1xOBiHCXn2tER0RyUUkFwtfWv7DOn6kfXJ0WVFMehZQlwoNHhs3AJRU9R/wMmfwwbPy77LR33jbt1jvbDFIJ8+mc7NVmT0h8ATO1I7PwToH/VVTMqle8pGA2PDhgeQjNQ2ygEKA1RvPmYmkH7kzIJo+JondFW2T3Nxof6nHBtMSptfbvAJ0= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MW3PR12MB4553.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(4636009)(366004)(346002)(136003)(376002)(396003)(39860400002)(451199015)(38100700002)(83380400001)(31696002)(5660300002)(7416002)(7406005)(15650500001)(2906002)(4326008)(8676002)(66556008)(66476007)(66946007)(8936002)(41300700001)(6512007)(186003)(26005)(6666004)(6506007)(53546011)(2616005)(110136005)(54906003)(316002)(478600001)(6486002)(966005)(45080400002)(31686004)(36756003)(43740500002)(45980500001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =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BxRFZZQVhZNytKdzVaRzVRYTA3OU1oRWhPU053Zk1M?= =?utf-8?B?OGNsOW9CRVM4ajhUKzR0b3p2V3Vtb2RLR3VyU3QwVFpMUHdvcjFHL2Jzc0Jt?= =?utf-8?B?RGVLNnFZejRsS0c1aFB4eWJUa1hIeFFDT0t1STc4aWRmSEd1Y3JJek8zYUNF?= =?utf-8?B?U21YcXBGcUJBSmk1VXBwbFkvOTlOeVdpVU10QVQzenZ4TFYzTnkzT04wZndz?= =?utf-8?B?OWRCQzRSVjZXcFFDc3dwZTc4b2ZXZlAvVHdQVzk5VmVxY3A5OWM2OU54aUJY?= =?utf-8?B?R0JOcVJuMEdHNVA5WmhEL1F1cXJMNGdoVjR5cnY4dkcrOGM2T3Y5SitQSitJ?= =?utf-8?Q?xnMY=3D?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: ea827826-9cb2-441a-9caf-08daf4358cb2 X-MS-Exchange-CrossTenant-AuthSource: MW3PR12MB4553.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Jan 2023 00:40:05.9649 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 2B3pRn8SOu+rnA+ViOlYyeBbCW1xJfnPVhHlxHIZQIBLWKk03piK4DNJXFk34KUv X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN0PR12MB6294 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS 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 Hi Reinette, On 1/11/2023 4:56 PM, Reinette Chatre wrote: > Hi Babu, > > On 1/11/2023 2:39 PM, Moger, Babu wrote: >> [AMD Official Use Only - General] >> >> Hi Reinette, >> >>> -----Original Message----- >>> From: Reinette Chatre >>> Sent: Wednesday, January 11, 2023 4:07 PM >>> To: Moger, Babu ; corbet@lwn.net; >>> tglx@linutronix.de; mingo@redhat.com; bp@alien8.de >>> Cc: fenghua.yu@intel.com; dave.hansen@linux.intel.com; x86@kernel.org; >>> hpa@zytor.com; paulmck@kernel.org; akpm@linux-foundation.org; >>> quic_neeraju@quicinc.com; rdunlap@infradead.org; >>> damien.lemoal@opensource.wdc.com; songmuchun@bytedance.com; >>> peterz@infradead.org; jpoimboe@kernel.org; pbonzini@redhat.com; >>> chang.seok.bae@intel.com; pawan.kumar.gupta@linux.intel.com; >>> jmattson@google.com; daniel.sneddon@linux.intel.com; Das1, Sandipan >>> ; tony.luck@intel.com; james.morse@arm.com; >>> linux-doc@vger.kernel.org; linux-kernel@vger.kernel.org; >>> bagasdotme@gmail.com; eranian@google.com; christophe.leroy@csgroup.eu; >>> jarkko@kernel.org; adrian.hunter@intel.com; quic_jiles@quicinc.com; >>> peternewman@google.com >>> Subject: Re: [PATCH v11 13/13] Documentation/x86: Update resctrl.rst for new >>> features >>> >>> Hi Babu, >>> >>> On 1/9/2023 8:44 AM, Babu Moger wrote: >>>> Update the documentation for the new features: >>>> 1. Slow Memory Bandwidth allocation (SMBA). >>>> With this feature, the QOS enforcement policies can be applied >>>> to the external slow memory connected to the host. QOS enforcement >>>> is accomplished by assigning a Class Of Service (COS) to a processor >>>> and specifying allocations or limits for that COS for each resource >>>> to be allocated. >>>> >>>> 2. Bandwidth Monitoring Event Configuration (BMEC). >>>> The bandwidth monitoring events mbm_total_bytes and mbm_local_bytes >>>> are set to count all the total and local reads/writes respectively. >>>> With the introduction of slow memory, the two counters are not >>>> enough to count all the different types of memory events. With the >>>> feature BMEC, the users have the option to configure mbm_total_bytes >>>> and mbm_local_bytes to count the specific type of events. >>>> >>>> Also add configuration instructions with examples. >>>> >>>> Signed-off-by: Babu Moger >>>> --- >>>> Documentation/x86/resctrl.rst | 142 >>>> +++++++++++++++++++++++++++++++++- >>>> 1 file changed, 140 insertions(+), 2 deletions(-) >>>> >>>> diff --git a/Documentation/x86/resctrl.rst >>>> b/Documentation/x86/resctrl.rst index 71a531061e4e..2860856f4463 >>>> 100644 >>>> --- a/Documentation/x86/resctrl.rst >>>> +++ b/Documentation/x86/resctrl.rst >>>> @@ -17,14 +17,16 @@ AMD refers to this feature as AMD Platform Quality >>> of Service(AMD QoS). >>>> This feature is enabled by the CONFIG_X86_CPU_RESCTRL and the x86 >>>> /proc/cpuinfo flag bits: >>>> >>>> -============================================= >>> ================================ >>>> +=============================================== >>> ================================ >>>> RDT (Resource Director Technology) Allocation "rdt_a" >>>> CAT (Cache Allocation Technology) "cat_l3", "cat_l2" >>>> CDP (Code and Data Prioritization) "cdp_l3", "cdp_l2" >>>> CQM (Cache QoS Monitoring) "cqm_llc", >>> "cqm_occup_llc" >>>> MBM (Memory Bandwidth Monitoring) "cqm_mbm_total", >>> "cqm_mbm_local" >>>> MBA (Memory Bandwidth Allocation) "mba" >>>> -============================================= >>> ================================ >>>> +SMBA (Slow Memory Bandwidth Allocation) "smba" >>>> +BMEC (Bandwidth Monitoring Event Configuration) "bmec" >>>> +=============================================== >>> ================================ >>> I expect that you will follow Boris's guidance here and not make these flags >>> visible in /proc/cpuinfo. That would imply that this addition will have no entries >>> in the second column. Perhaps this could be made easier to parse by using >>> empty quotes ("") in the second column to match syntax used in the existing >>> flags as well as the cpufeatures.h change? >> Hmm.. I thought we dropped that idea for now. Did I miss understand that? > I referred to the guidance in https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Flore.kernel.org%2Flkml%2FY7xjxUj%2BKnOEJssZ%40zn.tnic%2F&data=05%7C01%7CBabu.Moger%40amd.com%7C900eb41c0e6049dd342208daf4270d2b%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C638090745842366944%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=%2F5GVOhnxq1%2B3nJwGtlApvLfC%2FeX3X9RDaUZa9R92NiY%3D&reserved=0 > Since the SMBA and BMEC features have never appeared in /proc/cpuinfo there cannot > be a user space that expects these flags in /proc/cpuinfo and thus no risk of > breaking user space. User space can get information about SMBA and BMEC > from the info directory. ok. Got it. > > Later that thread discussed removal of existing resctrl feature flags from > /proc/cpuinfo - that is what I think we shouldn't do since there are > user space consumers of those flags. I thus agree that the task described in > https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Flore.kernel.org%2Flkml%2FMW3PR12MB455384130AF0BDE3AF88BCF095FE9%40MW3PR12MB4553.namprd12.prod.outlook.com%2F&data=05%7C01%7CBabu.Moger%40amd.com%7C900eb41c0e6049dd342208daf4270d2b%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C638090745842366944%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=kE7d0cFYyJq1n4ZKKeeF%2FC%2FFDDJy0Sc%2Fd5MZ%2Bc56WQw%3D&reserved=0 > can be dropped. Sure. > I do not think this is a big change ... just add the empty quotes to the > two cpufeatures.h patches and a new snippet to the resctrl documentation. How about this? I want to get this right.. Hopefully next version can be final. diff --git a/Documentation/x86/resctrl.rst b/Documentation/x86/resctrl.rst index 2860856f4463..7df5889237f4 100644 --- a/Documentation/x86/resctrl.rst +++ b/Documentation/x86/resctrl.rst @@ -24,10 +24,15 @@ CDP (Code and Data Prioritization) "cdp_l3", "cdp_l2"  CQM (Cache QoS Monitoring)                     "cqm_llc", "cqm_occup_llc"  MBM (Memory Bandwidth Monitoring)              "cqm_mbm_total", "cqm_mbm_local"  MBA (Memory Bandwidth Allocation)              "mba" -SMBA (Slow Memory Bandwidth Allocation)         "smba" -BMEC (Bandwidth Monitoring Event Configuration) "bmec" +SMBA (Slow Memory Bandwidth Allocation)         "" +BMEC (Bandwidth Monitoring Event Configuration) ""  =============================================== ================================ +Historically, new features were made visible by default in /proc/cpuinfo. This +resulted in the feature flags becoming hard to parse by the humans. Adding a new +flag to /proc/cpuinfo should be avoided if user space can obtain information +about the feature from resctrl's info directory. +  To use the feature mount the file system::   # mount -t resctrl resctrl [-o cdp[,cdpl2][,mba_MBps]] /sys/fs/resctrl thanks Babu