From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754195AbdBHLUW (ORCPT ); Wed, 8 Feb 2017 06:20:22 -0500 Received: from bombadil.infradead.org ([65.50.211.133]:47404 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752404AbdBHLUU (ORCPT ); Wed, 8 Feb 2017 06:20:20 -0500 Date: Wed, 8 Feb 2017 11:11:35 +0100 From: Peter Zijlstra To: David Carrillo-Cisneros Cc: Thomas Gleixner , Vikas Shivappa , Vikas Shivappa , Stephane Eranian , linux-kernel , x86 , hpa@zytor.com, Ingo Molnar , "Shankar, Ravi V" , "Luck, Tony" , Fenghua Yu , andi.kleen@intel.com, "H. Peter Anvin" Subject: Re: [PATCH 00/12] Cqm2: Intel Cache quality monitoring fixes Message-ID: <20170208101135.GW6515@twins.programming.kicks-ass.net> References: <1484879563-29977-1-git-send-email-vikas.shivappa@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23.1 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 20, 2017 at 12:11:53PM -0800, David Carrillo-Cisneros wrote: > Implementation ideas: > > First idea is to expose one monitoring file per resource in a CTRLGRP, > so the list of CTRLGRP's files would be: schemata, tasks, cpus, > monitor_l3_0, monitor_l3_1, ... > > the monitor_ file descriptor is passed to perf_event_open > in the way cgroup file descriptors are passed now. All events to the > same (CTRLGRP,resource_id) share RMID. > > The RMID allocation part can either be handled by RDT Allocation or by > the RDT Monitoring PMU. Either ways, the existence of PMU's > perf_events allocates/releases the RMID. So I've had complaints about exactly that behaviour. Someone wanted RMIDs assigned (and start measuring) the moment the grouping got created/tasks started running etc.. So I think the design should also explicitly state how this is supposed to be handled and not left as an implementation detail.