Received: by 2002:ab2:7b86:0:b0:1f7:5705:b850 with SMTP id q6csp76362lqh; Fri, 3 May 2024 14:00:42 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUmjpa21aUbNs3PtJ4qpzXjc1RKhY7tN8YqPYUQy/15rtk2ASqqQ1d2WOFBMuB82cRnYbU2nfPyOFC/yjPDtttvxxRSvp8pQCE+2IwoIg== X-Google-Smtp-Source: AGHT+IHi4nHTpV14c/lzBP3WUGthRQAULwPJXXJxVI3ti1pbfNv22ii9/DwniN/H5Y6ElaWRR3uC X-Received: by 2002:a05:6358:a013:b0:186:32b2:c0cb with SMTP id e19-20020a056358a01300b0018632b2c0cbmr5825030rwn.25.1714770042457; Fri, 03 May 2024 14:00:42 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714770042; cv=pass; d=google.com; s=arc-20160816; b=qFsWm1ejvQ4+8mQ9X/vpoD2aMlmW+E5d/V+JNdmbBuHqH3sgHpdqMGSFSpkgBKwwfg M9r0U7B/Xlm1Xdd6QqztuoGy1EanfYAVPe5flP03CRLDX53eTZ5rvbmLQlQUT+NlOWS3 iT+bhAWteFTLwQKbUqr6g/G79Csp1aFjV+WWBEHD1cKYlQX6lk4Y6ItakUp0Iuz1w8KB +IOx29N36mM8vDZGnkiWupB2Wyfl7r6LMcdUbCQ12N6ghH187JsZUyELSBeisIDyiM3X WUA7I8YngofIu4XQpZln1y2dTWIu0pPQDfTbDyjzW4lmsFqv/c7K/lj50aNUusbmCCMa TSpg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=cjuvDeKp4X9JIYKyqCJmxX+PFjcdi9fQ1jJZtd6qw34=; fh=1KoEv2oJfrYIrnqgMjoOoXOa6psb31BMmYycK8Z6/PU=; b=t5Jqp3XavAYcYbSQsO8997jjNE7OOcytwLqiX6QFpTPrIIo41DpUzFE9XfN6vr0fNC YbYTJNDIQy8WGVI9Vg/elfVjwWRTGdI81jSbslRVKr7MHNNJVTWxfNcMdX7dVWB60H73 mYfBGcis5TIkDaHdZZyJGsIF0btz695KwJW7xROFgEgwvZYoj0hILCRNZj9wX4P3ZgyS On1w+utxbTLNVJlL5ho7HmpGZMaZVp0qfjTShjBso8V+Tbc35W/vXEq1EUPF32DTwADK cJB8me0www5vYzj004MJeG+b+pM41L8tyGCdQdroMj8nTGXpbUjqNwR2WjpmbNH+03dr Ovjg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=wiLoik8x; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-168210-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-168210-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id e21-20020a656895000000b0061b273df7adsi1319615pgt.661.2024.05.03.14.00.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 May 2024 14:00:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-168210-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=wiLoik8x; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-168210-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-168210-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id B8DBF28249F for ; Fri, 3 May 2024 21:00:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 47C1938FA6; Fri, 3 May 2024 21:00:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="wiLoik8x" Received: from mail-qt1-f181.google.com (mail-qt1-f181.google.com [209.85.160.181]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1D6142E85E for ; Fri, 3 May 2024 21:00:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.181 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714770035; cv=none; b=d+Q79aZmb1M04VxHjutovicsnjzfo1aYpSwipYUMYZ7a6yYqzEEDNT7b+DrE/zMCAF0tKQJyxuRWoM0c9Mrx1hCUzTW8VKV2Jncz9V3/9yjxIZ1DwN8g9H8jYzc7ZK8J+kQJXSYBP9Cc+lWRmYqzFgS5vNai1krZMVQSkql/aqw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714770035; c=relaxed/simple; bh=cjuvDeKp4X9JIYKyqCJmxX+PFjcdi9fQ1jJZtd6qw34=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=SevdeT2bNSbXLJbGD9OwXSpGTFNDU5ySsZ/T9Rd4U7JROYxeZSm5eSbH6yZ2HzebhNDIi8kjZko9mEvFpEeL7AL+eBrTCUga24zBaAh7eQrhS7KDpGWcErRGJ67dbX4tGJFsG7qoYr1KE4Uhs5HsQoOHtFtws+/sVZip3TV86sk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=wiLoik8x; arc=none smtp.client-ip=209.85.160.181 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=google.com Received: by mail-qt1-f181.google.com with SMTP id d75a77b69052e-43ae23431fbso18121cf.0 for ; Fri, 03 May 2024 14:00:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1714770033; x=1715374833; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=cjuvDeKp4X9JIYKyqCJmxX+PFjcdi9fQ1jJZtd6qw34=; b=wiLoik8xf1dL3rDpgOfkuFX2Y91V1OdgA51BT7QYAS98Op8s2BaTJGLGdxEzmXy+ZR IQOMZynMaNR7/wofcso8hMQO26OVe7ZKtO9tjAJmKMHhuajeG7DrgNLndlxxO3/MBoPd cpqkmpOxpo6HQHylLUxeyK8/+gV8dxjF26VDh8on8qXqnfUE4/3Z0ajdJYpNeld62r4M rEGfeeneLPG/xs0v054Ff7bhg6EIbhdmp54zJ62ksmGS9upUGQ9A1w7C6QzfiZ4+kkuY BtINllx3u2e+v9gAhBT7FQMfmzkoF7AZJQEL+eqK+InIoJYGf6ITcOUK1agkz/a1Vb5h TkTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714770033; x=1715374833; h=content-transfer-encoding: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=cjuvDeKp4X9JIYKyqCJmxX+PFjcdi9fQ1jJZtd6qw34=; b=hh93Z3jlArll6YNDp0BEp6jZ/JjXORAAPKISEEgdtK5rB/SDRuOSOBbiUNFvVfGpyD ZJgWlEkAdZ5SgQCaXPfAOLSn0j+Ux3yD5Y5vj+95rOyTsPDw9PqUSI4nTwiq6j73p4TB 3B2AFQC0NYjId99sSGFRBbij6ihBgUV+gKkRSSQ5xcib6Y2SUMkNlWo6pgRad5Dc80sH z1UIs3266tSIT27R5ii7tla7r+1ikX6Oq/Y67EgovqzW2Lb1XmYpBtJpx4KqT95227wk Yz2OLfrh4YxUnGNbjQ6uU9SryR6lKACFltEBTtYhKq8ZGSf5yitzfOzrvskduwA73Zob 85zw== X-Forwarded-Encrypted: i=1; AJvYcCXtJtqYHMYQN5nFKZCrU8trSrJSPxx8WW/h6cEWIKVZy+OwwwynzW1vDSH0essKL0Gon6eZcah4uI2ySZFM8gD0+9PXN9eRr348646F X-Gm-Message-State: AOJu0Yxguz6n9Yq2wzRFzGZSFiNPQ1mytBd+RoSX8ursuwscjOnvkyLQ 2nb+mCjxhfRQ3PRdrOd8TyI6u0Wm6WnVuO75Pkmwfih0ZZAsLSeCgbjtPUCGuhBtbBl49O8fpG+ 4CRs4izLr53drWcsqHMWCymYVf4+lrgH9xcJg X-Received: by 2002:ac8:7d01:0:b0:43b:43c:2e05 with SMTP id d75a77b69052e-43d088fa520mr98671cf.19.1714770032856; Fri, 03 May 2024 14:00:32 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <6edffe1b-e9a9-4995-8172-353efc189666@amd.com> In-Reply-To: From: Peter Newman Date: Fri, 3 May 2024 14:00:21 -0700 Message-ID: Subject: Re: [RFC PATCH v3 00/17] x86/resctrl : Support AMD Assignable Bandwidth Monitoring Counters (ABMC) To: babu.moger@amd.com Cc: Reinette Chatre , corbet@lwn.net, fenghua.yu@intel.com, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, dave.hansen@linux.intel.com, x86@kernel.org, hpa@zytor.com, paulmck@kernel.org, rdunlap@infradead.org, tj@kernel.org, peterz@infradead.org, yanjiewtw@gmail.com, kim.phillips@amd.com, lukas.bulwahn@gmail.com, seanjc@google.com, jmattson@google.com, leitao@debian.org, jpoimboe@kernel.org, rick.p.edgecombe@intel.com, kirill.shutemov@linux.intel.com, jithu.joseph@intel.com, kai.huang@intel.com, kan.liang@linux.intel.com, daniel.sneddon@linux.intel.com, pbonzini@redhat.com, sandipan.das@amd.com, ilpo.jarvinen@linux.intel.com, maciej.wieczor-retman@intel.com, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, eranian@google.com, james.morse@arm.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Babu, On Fri, May 3, 2024 at 1:44=E2=80=AFPM Moger, Babu wrote: > > Hi Peter, > > On 5/2/2024 7:57 PM, Peter Newman wrote: > > Hi Reinette, > > > > On Thu, May 2, 2024 at 4:21=E2=80=AFPM Reinette Chatre > >> I do think ABMC should be enabled by default when available and it loo= ks > >> to be what this series aims to do [1]. The way I reason about this is > >> that legacy user space gets more reliable monitoring behavior without > >> needing to change behavior. > > > > I don't like that for a monitor assignment-aware user, following the > > creation of new monitoring groups, there will be less monitors > > available for assignment. If the user wants precise control over where > > monitors are allocated, they would need to manually unassign the > > automatically-assigned monitor after creating new groups. > > > > It's an annoyance, but I'm not sure if it would break any realistic > > usage model. Maybe if the monitoring agent operates independently of > > Yes. Its annoyance. > > But if you think about it, normal users don't create too many groups. > They wont have to worry about assign/unassign headache if we enable > monitor assignment automatically. Also there is pqos tool which uses > this interface. It does not have to know about assign/unassign stuff. Thinking about this again, I don't think it's much of a concern because the automatic assignment on mongroup creation behavior can be trivially disabled using a boolean flag. -Peter