From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751991AbdASCXx (ORCPT ); Wed, 18 Jan 2017 21:23:53 -0500 Received: from mga14.intel.com ([192.55.52.115]:17594 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751720AbdASCXw (ORCPT ); Wed, 18 Jan 2017 21:23:52 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.33,251,1477983600"; d="scan'208";a="924180704" From: Vikas Shivappa To: vikas.shivappa@intel.com Cc: davidcc@google.com, eranian@google.com, linux-kernel@vger.kernel.org, x86@kernel.org, hpa@zytor.com, mingo@kernel.org, peterz@infradead.org, ravi.v.shankar@intel.com, tony.luck@intel.com, fenghua.yu@intel.com, andi.kleen@intel.com, h.peter.anvin@intel.com Subject: Re: [PATCH 00/12] Cqm2: Intel Cache quality monitoring fixes Date: Wed, 18 Jan 2017 18:21:08 -0800 Message-Id: <1484792468-15645-1-git-send-email-vikas.shivappa@linux.intel.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Based on Thomas and Peterz feedback Can think of two variants which target: -Support monitoring and allocating using the same resctrl group. user can use a resctrl group to allocate resources and also monitor them (with respect to tasks or cpu) -allows 'task only' monitoring outside of resctrl. This mode can be used when user wants to override the RMIDs in the resctrl or when he wants to monitor more than just the resctrl groups. option 1> without modifying the resctrl In this design everything in resctrl interface works like before (the info, resource group files like task schemata all remain the same) but the resctrl groups are mapped to one RMID as well as a CLOSID. But we need a user interface for the user to read the counters. We can create one file to set monitoring and one file in resctrl directory which will reflect the counts but may not be efficient as a lot of times user reads the counts frequently. For the user interface there may be two options to do this: 1.a> Build a new user mode interface resmon Since modifying the existing perf to suit the different h/w architecture seems to not follow the CAT interface model, it may well be better to have a different and dedicated interface for the RDT monitoring (just like we had a new fs for CAT) $resmon -r -s -I