Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp1894417rwi; Thu, 3 Nov 2022 10:12:29 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4mNUD+iA8Iqe2HPAVjsypaIZ1LS17s59uRCv6IpfJ1qKLuKT4IpeuDAOlOGg0S3GYeeZZh X-Received: by 2002:a05:6402:1553:b0:461:539d:9b88 with SMTP id p19-20020a056402155300b00461539d9b88mr30411195edx.286.1667495549348; Thu, 03 Nov 2022 10:12:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667495549; cv=none; d=google.com; s=arc-20160816; b=XH3ux3PeGH1SKTVfSIDcTLPcJALwL/AH9p04X6W9yhaZTadW8Up9mOAk7XQQkZEGNH Q4Fjwpm7oL9gV5cgxUSc3H+zrTVSr59L0sxjva2j73L7j6S6xMUFUgYdD6sbeeKr1IWC HKO+lCXmdNasd7NhCkduAc4sJXD6ClnXbfx5SK7s9vKai+wncFmZrh85fpIKv01t1PK8 nY/R68isGc8UUlVxZF48zRV9WjGiGm71uhbHg+isp6XihWnidshqiZzb+R5BAWCOKiPI PnL7EHn6HIBRhhgUxv4ijRvTURs8jUrd80U4RM5dqTeSR6cbZOrwOX6/xiBsylKNmiMs WyiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=9UTqEWerqO8hjLB56NVb3yMqcZIg49SG3y3Bj/hiXkM=; b=b0NQ2NNhd5KSIRXZ5apsjHGziMGHjDO7jpfFVhtOWykTJ330VQCGssKThl9J2yolJW WcY9EwEQar6HJ/yCG8AOGEr+LKyUJrqBhQx2rJzt0s86DnX+3qsbuNOW53fjQgMwtusM x/40Ii5qBNJo/PrNKUm9CiaZegFYS2DjxKwG3WZJ20si++/6lVqK1PLw1Dwpl/McvA2W a8xK0BayacgIRoRJG12qyFsXAXhnYsMpb7+EHFTMD+PUL77oeqoAeDUkFP0Rvg81nC/t H9aqb5PZ4/SD1Ni0a1wZ5WO9fVS+8dQw1DzEWaCQ77c3vIQE2/2TuCseuf5daTV9u54j 2UCg== ARC-Authentication-Results: i=1; mx.google.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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w15-20020a05640234cf00b004618ed2dfe2si2335815edc.6.2022.11.03.10.12.05; Thu, 03 Nov 2022 10:12:29 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231819AbiKCRIM (ORCPT + 98 others); Thu, 3 Nov 2022 13:08:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58672 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231817AbiKCRHS (ORCPT ); Thu, 3 Nov 2022 13:07:18 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 5EF9111C09 for ; Thu, 3 Nov 2022 10:06:38 -0700 (PDT) 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 64B9F1FB; Thu, 3 Nov 2022 10:06:44 -0700 (PDT) Received: from [10.1.197.38] (eglon.cambridge.arm.com [10.1.197.38]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 5A2AE3F5A1; Thu, 3 Nov 2022 10:06:36 -0700 (PDT) Message-ID: <0c6fdf46-284c-6ed1-db44-a1e93037afe3@arm.com> Date: Thu, 3 Nov 2022 17:06:24 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux aarch64; rv:91.0) Gecko/20100101 Thunderbird/91.13.0 Subject: Re: [RFD] resctrl: reassigning a running container's CTRL_MON group Content-Language: en-GB To: Peter Newman Cc: Reinette Chatre , Tony Luck , "Yu, Fenghua" , "Eranian, Stephane" , "linux-kernel@vger.kernel.org" , Thomas Gleixner , Babu Moger , Gaurang Upasani References: <81a7b4f6-fbb5-380e-532d-f2c1fc49b515@intel.com> <7b09fb62-e61a-65b9-a71e-ab725f527ded@intel.com> From: James Morse In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE 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 Peter, On 26/10/2022 10:36, Peter Newman wrote: > On Tue, Oct 25, 2022 at 5:56 PM James Morse wrote: >> This would work when systems are built to look like RDT, but MPAM has other control types >> where this would have interesting behaviours. >> >> 'CPOR' is equivalent to CBM as they are both a bitmap of portions. MPAM also has 'CMAX' >> where a fraction of the cache is specified. If you create two control groups with >> different PARTIDs but the same configuration, their two 50%s of the cache could become >> 100%. CPOR can be used like this, CMAX can't. > I thought we only allocated caches with CBMs and memory bandwidth with > percentages. Those are the existing schema, yes. > I don't see how CMAX could be used when implementing resctrl's CAT > resources. Percentage > configurations are only used for MBA in resctrl today. The problem is if you say "CLOSID/PARTID are random, its the configuration that matters", you've broken all the control types where the regulation is happening based on the PARTID and the configuration, not the configuration alone. If you do this, you can't ever have schema that use those configuration schemes. There is hardware out there that supports these schemes. >> Even when the controls behave in the same way, a different PARTID with the same control >> values could be regulated differently, resulting in weirdness. > > Can you provide further examples? CMAX, MBW_MIN and MBW_MAX: You can have 50%, and I can have 50%. Your secret clones which have different PARTID and a copy of your configuration also get 50%. As far as the hardware is concerned, we're trying to play with more than 100% of the resource. I don't know what the memory controller people are building, but naively I think the MBW MIN/MAX stuff is a more natural fit that a bandwidth bitmap. You couldn't ever add new configuration schemes that are based on a fraction or percentage of the resource. Thanks, James