Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1456817

RE: [PATCH 13/32] Documentation, x86: Documentation for Intel resource allocation user interface

Path csiph.com!aioe.org!bofh.it!news.nic.it!robomod
From "Yu, Fenghua" <fenghua.yu@intel.com>
Newsgroups linux.kernel
Subject RE: [PATCH 13/32] Documentation, x86: Documentation for Intel resource allocation user interface
Date Fri, 05 Aug 2016 01:40:02 +0200
Message-ID <s2Ap4-8cT-1@gated-at.bofh.it> (permalink)
References <rUe2l-2xx-3@gated-at.bofh.it> <rUe2o-2xx-83@gated-at.bofh.it> <rUrVD-3bS-3@gated-at.bofh.it> <rUvZg-63d-29@gated-at.bofh.it> <rUIMN-64Y-1@gated-at.bofh.it> <rUSsO-45I-21@gated-at.bofh.it> <rWCtA-40N-17@gated-at.bofh.it>
X-Original-To Thomas Gleixner <tglx@linutronix.de>, "Luck, Tony" <tony.luck@intel.com>
X-Extloop1 1
X-Ironport-Av E=Sophos;i="5.28,471,1464678000"; d="scan'208";a="1035370301"
Thread-Topic [PATCH 13/32] Documentation, x86: Documentation for Intel resource allocation user interface
Thread-Index AQHR3IkKCq3GLC6HX0eNPWoRCxM7z6AWxbUAgABKO4CAAOUjgIAArjGAgAeMKACAGVjpwA==
Accept-Language en-US
Content-Language en-US
X-Originating-IP [10.22.254.139]
Content-Type text/plain; charset="us-ascii"
Content-Transfer-Encoding 8BIT
MIME-Version 1.0
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 48
Organization linux.* mail to news gateway
X-Original-Cc Ingo Molnar <mingo@elte.hu>, "Anvin, H Peter" <h.peter.anvin@intel.com>, Tejun Heo <tj@kernel.org>, Borislav Petkov <bp@suse.de>, Stephane Eranian <eranian@google.com>, Peter Zijlstra <peterz@infradead.org>, Marcelo Tosatti <mtosatti@redhat.com>, David Carrillo-Cisneros <davidcc@google.com>, "Shankar, Ravi V" <ravi.v.shankar@intel.com>, Vikas Shivappa <vikas.shivappa@linux.intel.com>, "Prakhya, Sai Praneeth" <sai.praneeth.prakhya@intel.com>, linux-kernel <linux-kernel@vger.kernel.org>, x86 <x86@kernel.org>, Jan Kiszka <jan.kiszka@siemens.com>
X-Original-Date Thu, 4 Aug 2016 23:38:04 +0000
X-Original-Message-ID <3E5A0FA7E9CA944F9D5414FEC6C712205DFE7083@ORSMSX106.amr.corp.intel.com>
X-Original-References <1468371785-53231-1-git-send-email-fenghua.yu@intel.com> <1468371785-53231-14-git-send-email-fenghua.yu@intel.com> <alpine.DEB.2.11.1607131227560.4083@nanos> <20160713171310.GA14521@intel.com> <alpine.DEB.2.11.1607132310310.4083@nanos> <20160714171645.GA19191@intel.com> <alpine.DEB.2.11.1607191430580.3596@nanos>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1456817

Show key headers only | View raw


> From: Thomas Gleixner [mailto:tglx@linutronix.de]
> Sent: Tuesday, July 19, 2016 5:32 AM
> On Thu, 14 Jul 2016, Luck, Tony wrote:
> > So the core part of __intel_rdt_sched_in() will look like:
> >
> > 			rdtgrp = root_rdtgroup;
> That can be done simpler. The default cpu_rdtgroup should be
> root_rdtgroup. So you spare one conditional.
> 
> Thanks
> 
> 	tglx

Hi, Thomas et al,

Do we need to consider using generic schemas format instead of the current architecture specific
schemas format?

Currently we use CBM (Cache Bit Mask) in the "schemas". This is architecture specific format.
A feedback I got is this may not be expanded to hypothetical future other architecture(s),
user/sysadmin may not have knowledge of CBM, and difficult VM migration b/w different
machines which have different length of CBM.

Our current answer to the feedback is user tool/knowledge is needed to set up schemas.
Kernel only does CBM or architecture level schemas. User management tools can be designed
to hide all kernel CBM details and allow users to allocate cache with high level knowledge
(e.g. % of cache or size of cache etc). I believe user level tool can handle this and kernel only
needs to handle minimal CBM level. This is how we have been designing this user interface.

But on the other hand, we can handle high level schemas info in kernel user interface as well.
We can introduce allocation policies to user interface. User specifies an allocation policy during
resctrl file system mount time. Each policy has its own driver in kernel. Default policy is to use
current CBM schemas that is implemented in this patch set. We can implement other drivers
and schemas format may be different in each driver. For example, % policy driver which
specifies % of L3 allocation in the schemas. Another example, size policy driver which specifies
size of L3 in the schemas. And people can write other creative policies in the future. Each driver
has its own CONFIG.

If doing this, this updated user interface can address the above concerns in kernel level plus
it can handle cases (example??) that user tool cannot handle in user space. Should we update
the current user interface to do this? Code and document changes should be about 50 lines
more on top of current patch set.

Just raise the question for open discussion.

Thanks.

-Fenghua

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

RE: [PATCH 13/32] Documentation, x86: Documentation for Intel  resource allocation user interface "Yu, Fenghua" <fenghua.yu@intel.com> - 2016-08-05 01:40 +0200

csiph-web