Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp563597rwi; Thu, 20 Oct 2022 02:17:47 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4N81O/lq93k+El4U1OlU85PB5jddXHjbqT3xO/AbKRucE2aPFkzITbHx0sMMg+NBZvezfI X-Received: by 2002:aa7:d059:0:b0:460:9021:73cd with SMTP id n25-20020aa7d059000000b00460902173cdmr1600839edo.55.1666257467564; Thu, 20 Oct 2022 02:17:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666257467; cv=none; d=google.com; s=arc-20160816; b=ZrBl2BQd6Gx5XcA1dRCUn7YKS51C6OgPsNPARD3GBscRlxP4+DhWYvbJ+n6eGHY9Xo tRAXVa/sLBorqw73N8h56qhyRD753q1m5gAp0vcxK854RebdvPAzcdbzWmiD7icqypch w6fs8uTyobQXt30cjRT/cIOrDCNlGKEoXf83+4aQB+a/b5Ot05C4KNTu0tGSiM9a5vlZ kHMgDTfBjVdeyu3PWh8el63rmnycgCl13sRVv8JVFgdPHhqeanQdy/P+RhVqN1i7nwfH DHehZFvJWhyJ1Lh+sSz4urMA359hkDvBVrIuYxiM/B9i1xXRcGFhZZ0d4osQMndCg8ZQ /hAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=io5S3x3Fc7X0hqOEIUuJV2NHp+mjTu9Aj0Tpi5WlMBI=; b=X3IoMVVrRO193XDjHrDjTjJ8DfEsm2zJfX0R18vNtM+Mnsu9e+oAhR7Cm3Z5DXjI/G 26Rh0h4tbFINrbCHvtlDuEFAb8lq4AmSahSeD8MPoEyNnWTmWRpvgKSdLt0rvUW/mEaJ N0h9BWeBkSmxAATDMb/Tgo0GZj84d3awH6mgRnITi0oPLUUweE5lZ8ky3/vi2bx2IQq9 jBJ34Nx3SURsI/kiNYJ58XCUjwU7f8QUeskjrgEl4k6AGiRQ/WOOQYUwBMin4QJbp24k MegU1NFrkCPk58D6Jy+piWfAgOGSz1OeL+nU2ZSCh8WNrRZBpY51DXdID1d96TzfEaTR fZqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=eLL5jKrK; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n25-20020a509359000000b00458a22ec887si15648810eda.276.2022.10.20.02.17.22; Thu, 20 Oct 2022 02:17:47 -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=@google.com header.s=20210112 header.b=eLL5jKrK; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230269AbiJTIsh (ORCPT + 99 others); Thu, 20 Oct 2022 04:48:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46902 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229948AbiJTIsd (ORCPT ); Thu, 20 Oct 2022 04:48:33 -0400 Received: from mail-yw1-x1133.google.com (mail-yw1-x1133.google.com [IPv6:2607:f8b0:4864:20::1133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A76FC1645D5 for ; Thu, 20 Oct 2022 01:48:32 -0700 (PDT) Received: by mail-yw1-x1133.google.com with SMTP id 00721157ae682-357208765adso191471627b3.12 for ; Thu, 20 Oct 2022 01:48:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=io5S3x3Fc7X0hqOEIUuJV2NHp+mjTu9Aj0Tpi5WlMBI=; b=eLL5jKrKA7W75AEN8cfBnnlHBRPQnpHoHKA8/aYos8co3mR6/q1BHhuYidkrIgqHaF 6Pf1gwHvH//abNYZNzyBnsePVwqFcqWFebZ7Y3LJBefGJbbBeWgYnn31RtrOXdBQvj+i Bxut88feCjefby8zGDVj5YsvLXVafjbwnPld3bzLIPah+jU113riNzr0J81D86EC/1Mv nKi+l13VfnJx9O+falNGhqeLIsTd0Eri/uFzRehXPooQXDe89RCnX1jvAHV7E6U1L8wL kEHuWLLTq30eHfHxo7sbsrbuaCIheRdySCaZCprqXCgfJ3yjsfvWQLY+HB7UGNglzZg7 CANg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=io5S3x3Fc7X0hqOEIUuJV2NHp+mjTu9Aj0Tpi5WlMBI=; b=n8UuJ046RMfYkxeNQyINWq47+sqNeArEr9rWdkp7wXHPpFrtXWhSj1/e6GaMRLAFk/ wZ4ZM3DmjxUQoKPM6ljYlhEZcVpmvksNNOO1MLLT1X7utg0NidcdZgM3q7F9kt1Tb4Rp E/m+AYk1KnZIOcLqIzcvSt7xAty2FQRJgcfbQXLsw+Im44XOtkiPTlGD7GLVuCqewy2L z6yuytVPeUo48R2DJo2vrpcTid6WfEkTfcPXo7VVRT5TsFpinLCOosV7sLAeDhHMrSq+ /36cEwszqVoppQYg3ANWJkfIhAzJbrQ5hYy2tAkv+Uxn/lko42Ozm9HGP4eW8JRGmwXe 6V0Q== X-Gm-Message-State: ACrzQf2uGVWwPjkmPd01ToAza3pa86QGcajlemiGznToBPvbU8SAH5B9 YjmbFiuW9UZ3yBHAWn0HxWM0M9sO2jODr+9sZCi3Zw== X-Received: by 2002:a81:7d42:0:b0:35c:12db:ac4c with SMTP id y63-20020a817d42000000b0035c12dbac4cmr10242599ywc.313.1666255711814; Thu, 20 Oct 2022 01:48:31 -0700 (PDT) MIME-Version: 1.0 References: <81a7b4f6-fbb5-380e-532d-f2c1fc49b515@intel.com> <7b09fb62-e61a-65b9-a71e-ab725f527ded@intel.com> In-Reply-To: From: Peter Newman Date: Thu, 20 Oct 2022 10:48:20 +0200 Message-ID: Subject: Re: [RFD] resctrl: reassigning a running container's CTRL_MON group To: Reinette Chatre Cc: Tony Luck , "Yu, Fenghua" , "Eranian, Stephane" , "linux-kernel@vger.kernel.org" , Thomas Gleixner , James Morse , Babu Moger , Gaurang Upasani Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL 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 Thu, Oct 20, 2022 at 1:54 AM Reinette Chatre wrote: > It is still not clear to me how palatable this will be on Arm systems. > This solution also involves changing the CLOSID/PARTID like your original > proposal and James highlighted that it would "mess up the bandwidth counters" > because of the way PARTID.PMG is used for monitoring. Perhaps even a new > PMG would need to be assigned during such a monitor group move. One requirement > for this RFD was to keep usage counts intact and from what I understand > this will not be possible on Arm systems. There could be software mechanisms > to help reduce the noise during the transition. For example, some new limbo > mechanism that avoids re-assigning the old PARTID.PMG, while perhaps still > using the old PARTID.PMG to read usage counts for a while? Or would the > guidance just be that the counters will have some noise after the move? I'm going to have to follow up on the details of this in James's thread. It sounded like we probably won't be able to create enough mon_groups under a single control group for the rename feature to even be useful. Rather, we expect the PARTID counts to be so much larger than the PMG counts that creating more mon_groups to reduce the number of control groups wouldn't make sense. At least in our use case, we're literally creating "classes of service" to prioritize memory traffic, so we want a small number of control groups to represent the small number of priority levels, but enough RMIDs to count every job's traffic independently. For MPAM to support this MBM/MBA use case in exactly this fashion, we'd have to develop the monitors-not-matching-on-PARTID use case better in the MPAM architecture. But before putting much effort into that, I'd want to know if there's any payoff beyond being able to use resctrl the same way on both implementations. -Peter