From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752291AbdARJ5k (ORCPT ); Wed, 18 Jan 2017 04:57:40 -0500 Received: from merlin.infradead.org ([205.233.59.134]:50698 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751204AbdARJ5K (ORCPT ); Wed, 18 Jan 2017 04:57:10 -0500 Date: Wed, 18 Jan 2017 10:56:58 +0100 From: Peter Zijlstra To: Thomas Gleixner Cc: Shivappa Vikas , Vikas Shivappa , davidcc@google.com, eranian@google.com, linux-kernel@vger.kernel.org, x86@kernel.org, hpa@zytor.com, mingo@kernel.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 Message-ID: <20170118095658.GC6485@twins.programming.kicks-ass.net> References: <1483740005-23499-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 Wed, Jan 18, 2017 at 09:53:02AM +0100, Thomas Gleixner wrote: > The whole approach you and David have taken is to whack some desired cgroup > functionality and whatever into CQM without rethinking the overall > design. And that's fundamentaly broken because it does not take cache (and > memory bandwidth) allocation into account. > > I seriously doubt, that the existing CQM/MBM code can be refactored in any > useful way. As Peter Zijlstra said before: Remove the existing cruft > completely and start with completely new design from scratch. > > And this new design should start from the allocation angle and then add the > whole other muck on top so far its possible. Allocation related monitoring > must be the primary focus, everything else is just tinkering. Agreed, the little I have seen of these patches is quite horrible. And there seems to be a definite lack of design; or at the very least an utter lack of communication of it. The approach, in so far that I could make sense of it, seems to utterly rape perf-cgroup. I think Thomas makes a sensible point in trying to match it to the CAT stuffs.