From: Dario Faggioli <dario.faggioli@citrix.com>
To: Andrea Braschi <a.braschi90@gmail.com>
Cc: xen-devel@lists.xenproject.org
Subject: Re: cache coloring
Date: Fri, 22 Nov 2013 18:07:04 +0100 [thread overview]
Message-ID: <1385140024.21426.43.camel@Solace> (raw)
In-Reply-To: <CAP-9h15Zah-Zt+ZhiUndCoT44-KGc0vK_iwDYuhJXMg410LLig@mail.gmail.com>
[-- Attachment #1.1: Type: text/plain, Size: 2533 bytes --]
On ven, 2013-11-22 at 10:48 +0100, Andrea Braschi wrote:
> Hi everybody,
>
Hello, and welcome!
> I'm Andrea and I'm a student from Politecnico di Milano, for a project
> at my university I need to implement cache coloring for the third
> level cache for xen-4.2.3 .
>
Ok, two questions:
1. My "OS concepts" my be a bit rusty, but I only remember something
called page coloring. Both Google and Wikipedia seems to agree that
page and cache coloring are the same thing, but then I don't
understand why you specifically mention L3 above. Can you confirm
that it is this that you are after?
http://en.wikipedia.org/wiki/Cache_coloring
http://www.freebsd.org/doc/en/articles/vm-design/page-coloring-optimizations.html
2. Why 4.2.3 and not upstream?
> -where is the code implementing the buddy allocator for the third
> level caches?(i've found two buddies but none of them seems to me the
> right one...I'll be implementig this in order to support x86 64 bit
> architecture)
>
As far as I know (and as far as I'm able to grep :-)), I think you
should start looking at xen/common/page_alloc.c.
$ grep -i buddy xen/* -R
xen/arch/x86/x86_64/mm.c: * buddy allocator relies on this assumption.
xen/arch/x86/x86_64/mm.c: * Mark the allocated page before put free pages to buddy allocator
xen/common/page_alloc.c: * Simple buddy heap allocator for Xen.
xen/common/page_alloc.c: * BINARY BUDDY ALLOCATOR
xen/common/page_alloc.c:/* Remove any offlined page in the buddy pointed to by head. */
xen/common/page_alloc.c: * not freeing it to the buddy allocator.
> -there's a documentation about it?
>
At this level, and for these kind of things, the code itself is the only
existent documentation. :-)
> I apologize if that's not the right list (if it's not please tell me
> where I can ask) and I hope I was clear in explaining my problem.
>
It is the right place, so feel free o ask. The only thing that is
required is to be as specific as possible, i.e., describe your goal,
what it is that you are doing to achieve it and what it is that is not
working / you are not understanding.
This is a nice guide/checklist:
http://wiki.xenproject.org/wiki/Asking_Xen_Devel_Questions
Regards,
Dario
--
<<This happens because I choose it to happen!>> (Raistlin Majere)
-----------------------------------------------------------------
Dario Faggioli, Ph.D, http://about.me/dario.faggioli
Senior Software Engineer, Citrix Systems R&D Ltd., Cambridge (UK)
[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
[-- Attachment #2: Type: text/plain, Size: 126 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
next prev parent reply other threads:[~2013-11-22 17:07 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-22 9:48 cache coloring Andrea Braschi
2013-11-22 10:56 ` Andrew Cooper
2013-11-22 17:07 ` Dario Faggioli [this message]
2013-11-22 17:30 ` Andrea Braschi
2013-11-23 17:08 ` Dario Faggioli
[not found] ` <CAP-9h16hKJ5VcA+h9a2xnBxgZHkgoBDHh21n28u-SpsJ2sGaUA@mail.gmail.com>
2013-11-25 7:58 ` Dario Faggioli
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=1385140024.21426.43.camel@Solace \
--to=dario.faggioli@citrix.com \
--cc=a.braschi90@gmail.com \
--cc=xen-devel@lists.xenproject.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.