From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751101AbdBCRwW (ORCPT ); Fri, 3 Feb 2017 12:52:22 -0500 Received: from mga07.intel.com ([134.134.136.100]:40605 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750937AbdBCRwV (ORCPT ); Fri, 3 Feb 2017 12:52:21 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.33,329,1477983600"; d="scan'208";a="816743552" Date: Fri, 3 Feb 2017 09:52:20 -0800 From: "Luck, Tony" To: David Carrillo-Cisneros Cc: Thomas Gleixner , Vikas Shivappa , "Shivappa, Vikas" , Stephane Eranian , linux-kernel , x86 , "hpa@zytor.com" , Ingo Molnar , Peter Zijlstra , "Shankar, Ravi V" , "Yu, Fenghua" , "Kleen, Andi" , "Anvin, H Peter" Subject: Re: [PATCH 00/12] Cqm2: Intel Cache quality monitoring fixes Message-ID: <20170203175220.GA15630@intel.com> References: <3908561D78D1C84285E8C5FCA982C28F3A2A8947@ORSMSX114.amr.corp.intel.com> <3908561D78D1C84285E8C5FCA982C28F3A2A9CC7@ORSMSX114.amr.corp.intel.com> <20170202234100.GA17145@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Feb 02, 2017 at 06:14:05PM -0800, David Carrillo-Cisneros wrote: > If we tie allocation groups and monitoring groups, we are tying the > meaning of CPUs and we'll have to choose between the CAT meaning or > the perf meaning. > > Let's allow semantics that will allow perf like monitoring to > eventually work, even if its not immediately supported. Would it work to make monitor groups be "task list only" or "cpu mask only" (unlike control groups that allow mixing). Then the intel_rdt_sched_in() code could pick the RMID in ways that give you the perf(1) meaning. I.e. if you create a monitor group and assign some CPUs to it, then we will always load the RMID for that monitor group when running on those cpus, regardless of what group(s) the current process belongs to. But if you didn't create any cpu-only monitor groups, then we'd assign RMID using same rules as CLOSID (so measurements from a control group would track allocation policies). We are already planning that creating monitor only groups will change what is reported in the control group (e.g. you pull some tasks out of the control group to monitor them separately, so the control group only reports the tasks that you didn't move out for monitoring). -Tony