Received: by 10.223.185.116 with SMTP id b49csp5420003wrg; Tue, 27 Feb 2018 13:02:36 -0800 (PST) X-Google-Smtp-Source: AH8x22472GB4S+YxEgR2sfSgwlHNPDiEYATFJOA6hBP2FPWaUeMqQPd7I5QBJypMtUQmcTJnZCwc X-Received: by 2002:a17:902:8214:: with SMTP id x20-v6mr15284388pln.182.1519765356550; Tue, 27 Feb 2018 13:02:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519765356; cv=none; d=google.com; s=arc-20160816; b=Nbvq6VJTDc0L89f3fIf8dpm3Iuk1iGFIP44wmZGwic5CoZXb8B/0jvNJzKGdLhUC9e Fd1+uzNDgPBFWzj/yQMvPzRTRpOAf9vumHY/AwNEt5p68+o/AwTMLK1l2XF+V5BQ4JHt J2ufV0w2mkmwyIM0oFYH2D8MshbcJBxYhxVf5jVJWarsQ8hGxzgi1LSqvbqbKQH297Gs GmCbDi3eXED1knrbgMX/6RntFO+n8iq6iGc9ZMfBJtqkjPT/kY27D6oK1t8LL3cT1uIk i+pW0xR2HCAIAV3/8dv1OYOM+81K10746fxiQWHFmzgli4vi3pVqvc1tkbNRdmi+Ga3O /V4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=1/5fu9M7/+U9MyHegSctbIaHVI3OGSEsP7//LxG3Q2s=; b=hNl0OjrY69DxmxGMQBTUi5aQ16Uoxz9GdNh6V0j4zBTVrwCc6awD0toB2+A7GsmvxF mg3je4qzCqsmIdccnl2Lyu7oPItqe0ssD53L59NK/xu2nazRdOjCITxB0tfzZ9mwxJ4Y VX9zasTgx9VAf/4UQrZr0mu8I636f9CmEBnV7Vf6q7EChzrrumUiZsN+PpP+1mz1v4/B eU/iJ3y+uGBQwG4JBcBSSbhlpnj9DVt8UZhBskxpqCZfWzsLuzxn13Y57DdP6EbhZu60 ALtsic9r9kMzvKlVjZ/fW6fSOygn7+B8g/wxEQfMTrxQxw9qumBgo24Bn9DYdvrK+zY+ SW2g== 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 t1si11910pgs.618.2018.02.27.13.02.02; Tue, 27 Feb 2018 13:02:36 -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 S1751878AbeB0VBW (ORCPT + 99 others); Tue, 27 Feb 2018 16:01:22 -0500 Received: from mga04.intel.com ([192.55.52.120]:14186 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751663AbeB0VBV (ORCPT ); Tue, 27 Feb 2018 16:01:21 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 27 Feb 2018 13:01:19 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.47,402,1515484800"; d="scan'208";a="20650303" Received: from rchatre-mobl.amr.corp.intel.com (HELO [10.24.14.178]) ([10.24.14.178]) by fmsmga007.fm.intel.com with ESMTP; 27 Feb 2018 13:01:18 -0800 Subject: Re: [RFC PATCH V2 13/22] x86/intel_rdt: Support schemata write - pseudo-locking core To: Thomas Gleixner 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 References: From: Reinette Chatre Message-ID: <85c96e41-5a54-d3dd-bda4-d8ef9c28b1d8@intel.com> Date: Tue, 27 Feb 2018 13:01:18 -0800 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Thomas, 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. Reinette