All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andrew Cooper <andrew.cooper3@citrix.com>
To: Jan Beulich <JBeulich@suse.com>, He Chen <he.chen@linux.intel.com>
Cc: Ian Jackson <ian.jackson@eu.citrix.com>,
	xen-devel@lists.xen.org, Wei Liu <wei.liu2@citrix.com>,
	ChaoPeng <chao.p.peng@linux.intel.com>
Subject: Re: [RFC Design Doc] Intel L2 Cache Allocation Technology (L2 CAT) Feature enabling
Date: Fri, 13 May 2016 10:23:17 +0100	[thread overview]
Message-ID: <57359D05.30407@citrix.com> (raw)
In-Reply-To: <5735B28402000078000EB1DE@prv-mh.provo.novell.com>

On 13/05/16 09:55, Jan Beulich wrote:
>>>> On 13.05.16 at 09:43, <andrew.cooper3@citrix.com> wrote:
>> On 13/05/2016 07:48, Jan Beulich wrote:
>>>>>> On 13.05.16 at 08:26, <he.chen@linux.intel.com> wrote:
>>>> On Thu, May 12, 2016 at 04:05:36AM -0600, Jan Beulich wrote:
>>>>>>>> On 12.05.16 at 11:40, <he.chen@linux.intel.com> wrote:
>>>>>> We plan to bring new PQoS feature called Intel L2 Cache Allocation
>>>>>> Technology (L2 CAT) to Xen.
>>>>>>
>>>>>> L2 CAT is supported on Atom codename Goldmont and beyond. “Big-core”
>>>>>> Xeon does not support L2 CAT in current generations.
>>>>> Looks mostly like a direct (and hence reasonable) extension of what
>>>>> we have for L3 right now. One immediate question I have is whether
>>>>> tying this to per-socket information is a good idea. As soon as Xeon-s
>>>>> would also gain such functionality, things would (aiui) need to become
>>>>> per-core (as L2 is per core there iirc).
>>>>>
>>>> L2 Cache capability keeps the same through all cores in a socket, so we
>>>> make it per-socket to balance code complexity and accessibility.
>>>>
>>>> I am not a expert in scheduler, do you mean in some cases, a domain
>>>> would apply different L2 cache access pattern when it is scheduled on
>>>> different cores even though the cores are in the same socket?
>>> No, I mean different domains may be running on different cores,
>>> and hence different policies may be needed to accommodate them
>>> all.
>> From the description, it sounds like L2 behaves almost exactly like L3. 
>> There is one set of capacity bitmaps which apply to all L2 caches in the
>> socket, and the specific capacity bitmap in effect is specified by
>> PSR_ASSOC CLOS, which is context switched with the vcpu.
> Well, I suppose the description is implying per-socket L2s. For per-
> core L2s I'd expect the MSRs to also become per-core.
>
> But anyway, L2 or L3 - I can't see how this context switching would
> DTRT when there are vCPU-s of different domains on the same
> socket (or core, if L2s and MSRs were per-core): The one getting
> scheduled later onto a socket (core) would simply overwrite what
> got written for the one which had been scheduled earlier.

PSR_ASSOC is a per-thread MSR which selects the CLOS to use.  CLOS is
currently managed per-domain in Xen, and context switched with vcpu.

Xen programs different capacity bitmaps into IA32_L2_QOS_MASK_0 ...
IA32_L2_QOS_MASK_n, and the CLOS selects which bitmap is enforced.

~Andrew

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

  reply	other threads:[~2016-05-13  9:23 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-12  9:40 [RFC Design Doc] Intel L2 Cache Allocation Technology (L2 CAT) Feature enabling He Chen
2016-05-12 10:05 ` Jan Beulich
2016-05-13  6:26   ` He Chen
2016-05-13  6:48     ` Jan Beulich
2016-05-13  7:43       ` Andrew Cooper
2016-05-13  8:55         ` Jan Beulich
2016-05-13  9:23           ` Andrew Cooper [this message]
2016-05-13 16:17             ` Dario Faggioli
2016-05-16  8:23               ` He Chen
2016-05-16  9:44                 ` Dario Faggioli
2016-05-12 10:06 ` Andrew Cooper
  -- strict thread matches above, loose matches on Subject: below --
2016-05-12  9:31 He Chen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=57359D05.30407@citrix.com \
    --to=andrew.cooper3@citrix.com \
    --cc=JBeulich@suse.com \
    --cc=chao.p.peng@linux.intel.com \
    --cc=he.chen@linux.intel.com \
    --cc=ian.jackson@eu.citrix.com \
    --cc=wei.liu2@citrix.com \
    --cc=xen-devel@lists.xen.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.