From: "Jan Beulich" <JBeulich@suse.com>
To: Meng Xu <xumengpanda@gmail.com>
Cc: Andrew Cooper <andrew.cooper3@citrix.com>,
"xen-devel@lists.xenproject.org" <xen-devel@lists.xenproject.org>
Subject: Re: Question about partitioning shared cache in Xen
Date: Wed, 14 Jan 2015 15:02:07 +0000 [thread overview]
Message-ID: <54B692FF0200007800054F30@mail.emea.novell.com> (raw)
In-Reply-To: <CAENZ-+nWpUv7BVqtrwRmduCxY64mxVXPNYCKAxSNqFLT49b+yA@mail.gmail.com>
>>> On 14.01.15 at 15:45, <xumengpanda@gmail.com> wrote:
> Yes. I try to use the bits [A16, A12] to isolate different colors in a
> shared cache. A 2MB 16-way associate shared cache uses [A16, A6] to
> index the cache set. Because page size is 4KB, we have page frame
> number's bits [A16, A12] overlapped with the bits used to index a
> shared cache's cache set. So we can control those [A16, A12] bits to
> control where the page should be placed. (The wiki pages about page
> coloring is here: http://en.wikipedia.org/wiki/Cache_coloring)
But the majority of allocations done for guests would be as 2M or
1G pages, so picking address bits 12..16 for coloring seems rather
undesirable. (And surely no LLC would be large enough any time
soon to allow coloring of 1G pages anyway.)
Jan
next prev parent reply other threads:[~2015-01-14 15:02 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-14 0:41 Question about partitioning shared cache in Xen Meng Xu
2015-01-14 12:20 ` Andrew Cooper
2015-01-14 14:45 ` Meng Xu
2015-01-14 15:02 ` Jan Beulich [this message]
2015-01-14 15:27 ` Meng Xu
2015-01-14 16:29 ` Jan Beulich
2015-01-14 21:19 ` Meng Xu
2015-01-15 8:23 ` Jan Beulich
2015-01-15 14:28 ` Meng Xu
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=54B692FF0200007800054F30@mail.emea.novell.com \
--to=jbeulich@suse.com \
--cc=andrew.cooper3@citrix.com \
--cc=xen-devel@lists.xenproject.org \
--cc=xumengpanda@gmail.com \
/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.