Received: by 10.223.185.116 with SMTP id b49csp6474460wrg; Wed, 28 Feb 2018 10:00:39 -0800 (PST) X-Google-Smtp-Source: AG47ELv0qOPye22efPeag3aZDYsKCXN5JPjjCfeyubAzju+OGf7EXbjbzZPW/VIFY4ZJQxv08frm X-Received: by 2002:a17:902:7a2:: with SMTP id 31-v6mr7892859plj.313.1519840839539; Wed, 28 Feb 2018 10:00:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519840839; cv=none; d=google.com; s=arc-20160816; b=WDu2tnpDpGoV3eT4qZmaYXkhQVzjkHSNO3pd1sBN4ZGUXRKPX/ffL1TqVmnpSdZR/J YLDhHyZXl+MsCyklpjrTewE1oJYmjD5a5qPOM72I4Q94s5P9GXY5AO4mBrG3mB+281hN 18CIgrM15wZFa50NkYqhPAc0RPT0aQvvLTJFTSQOdyfavsBe8OS2JUtjvtzLtcHgL/ps XzVb5SN9DTD2KTAZV6YWR7JdEDss4jYhBRLeRS8P6bOqWF3G3Ud8nstOnoPfzbz9Ireq fy2qzAtSDHaTY8vPpsfnxWUmFj5nrwnuh49uIfouWwcnbgANqBvoWc9LVYiq1B0Eh4S5 vPVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date :arc-authentication-results; bh=5zu7VSSeIZjjdq0yXBOBUTjAAyQa03QxRmYdyCRyIsQ=; b=BYqR+gtSP9IDgI2IjbESl30XSH1WiNa0CNZ8u4DU2nRFLg90kERD8XSLhgx0cZqjzZ HXzhb2B3jHAluuHswOYsavGvAd3ReQKXmvg2PJtZYcogLFgR84ItTRvS4rnx9XVmp8/O PQ1iDe0oC/nJ2Ku6oy52vK6fJ8L3EVHH0RwC7w65YEmWXjPUJdHXsoejVevBQdNN1Pvs ZT+jBqjfWoIsn1zRfNEImbngPYWhPdIhwGMkA/pI90i5zm0MkZfKc6waK3cN0tkgWebr ZjCCUBYxBnhi76Ic7s6CPrgwtdC0b1iEeWhzMmfDMGJS8mmexXh9wo1mRlyHVs4mlD7/ XvUQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u16si1244948pgo.695.2018.02.28.10.00.22; Wed, 28 Feb 2018 10:00:39 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933549AbeB1R7d (ORCPT + 99 others); Wed, 28 Feb 2018 12:59:33 -0500 Received: from Galois.linutronix.de ([146.0.238.70]:49217 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932285AbeB1R7c (ORCPT ); Wed, 28 Feb 2018 12:59:32 -0500 Received: from p4fea5f09.dip0.t-ipconnect.de ([79.234.95.9] helo=nanos.glx-home) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1er5xE-0003OW-DG; Wed, 28 Feb 2018 18:55:48 +0100 Date: Wed, 28 Feb 2018 18:59:24 +0100 (CET) From: Thomas Gleixner To: Reinette Chatre cc: fenghua.yu@intel.com, tony.luck@intel.com, gavin.hindman@intel.com, vikas.shivappa@linux.intel.com, dave.hansen@intel.com, mingo@redhat.com, hpa@zytor.com, x86@kernel.org, linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH V2 13/22] x86/intel_rdt: Support schemata write - pseudo-locking core In-Reply-To: Message-ID: References: <85c96e41-5a54-d3dd-bda4-d8ef9c28b1d8@intel.com> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 28 Feb 2018, Thomas Gleixner wrote: > On Tue, 27 Feb 2018, Reinette Chatre wrote: > > On 2/20/2018 9:15 AM, Thomas Gleixner wrote: > > > Let's look at the existing crtl/mon groups which are each represented by a > > > directory already. > > > > > > - Adding a 'size' file to the ctrl groups would be a natural extension > > > which makes sense for regular cache allocations as well. > > > > > > > I would like to clarify how you envision the value of "size" computed. A > > resource group may have several resources associated with it. Some of > > these resources may indeed overlap, for example, if there is L2 and L3 > > CAT capable resources on the system. Similarly when CDP is enabled, > > there would be overlap in bitmasks referring to the same cache locations > > but treated as different resources. Indeed, there may in the future be > > some resources that are capable of allocation but not cache specifically > > that could also be handled within a single resource group. > > > > Summarizing all of these cases with a single "size" associated with the > > resource group does not seem straightforward to me. > > We have the schemata file which covers everthing. So the size file inside a > resource group should show the sizes for each domain/resource as well. > > L2:0=128K;1=256K; > L3:0=1M;1=2M; > > L3DATA:0=128K > L3CODE:0=128K > > or such. That would be consistent with the schemata file. If there are > resources which cannot be expressed in size, like MBA then you simply do > not print them. > > At the top level you want to show the inuse areas. I'd go for straight > bitmap display there: > > L2:0=00011100;1=11111111; > L3:0=11001100;1=11111111; > > If L3 CDP is enabled then you can show: > > L3:0=1DCCDC00;1=DDDD00CC; > > where: > > 0 = unused > 1 = overlapping C/D > C = code > D = data Hit send too early.... For the locked case this would add: L = locked Thanks, tglx