From: Wei Huang <wei.huang2@amd.com>
To: George Dunlap <dunlapg@umich.edu>
Cc: "xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>,
"keir@xen.org" <keir@xen.org>, Jan Beulich <JBeulich@novell.com>
Subject: Re: RE: [RFC][PATCH] AMD CPU core topology detection
Date: Tue, 11 Jan 2011 11:05:29 -0600 [thread overview]
Message-ID: <4D2C8DD9.2060507@amd.com> (raw)
In-Reply-To: <AANLkTimf-eCHSpfAvayE6p5XUzgeRraSyYT+7FRs3F4r@mail.gmail.com>
Hi George,
The analogy holds for most parts. Following with Jan's recommendation, I
will add a new compute_unit_id to each logic processor, with the hope of
minimizing the impacts to Xen. No, it won't use is_amd() style of
statements.
-Wei
On 01/11/2011 05:12 AM, George Dunlap wrote:
> On Tue, Jan 11, 2011 at 10:58 AM, George Dunlap<dunlapg@umich.edu> wrote:
>> On Fri, Jan 7, 2011 at 3:52 PM, Huang2, Wei<Wei.Huang2@amd.com> wrote:
>>> [From my understanding, cpu_core_id and phys_proc_id are collected during boot (mostly in smpboot.c and under cpu/ directory) for sibling map. The sibling info is used for scheduler later on. Old AMD CPUs don't have HyperThreading, so the cpu_sibling_map isn't so useful. New CPUs will have core/compute unit/node. Using Intel's HT as an analogy, we have the following relationship: core=>hyper-thread, compute unit=>core, node=>processor). From that perspective, the change is reasonable. But I might have missed other parts.
>> Wei, can you point me to some documentation about exactly what the
>> "compute unit" is?
> [Sorry, accidentally sent too early]
>
> If there's a strong logical correspondence between Intel's "thread ->
> core -> socket" and AMD's "core -> compute unit -> node", then I think
> reusing the maps makes sense; but if there's a fairly significant
> difference, then I think coming up with a different naming convention
> would be best. I don't like the idea of having code that says
> "if(is_intel()) { /* Do things one way */} ; else if (is_amd()) { /*
> Do things a different way */}". Not only is it ugly, it's a set-up
> for bugs.
>
> -George
>
next prev parent reply other threads:[~2011-01-11 17:05 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-06 16:47 [RFC][PATCH] AMD CPU core topology detection Wei Huang
2011-01-07 8:56 ` Jan Beulich
2011-01-07 15:52 ` Huang2, Wei
2011-01-07 22:56 ` Huang2, Wei
2011-01-10 8:20 ` Jan Beulich
2011-01-11 10:58 ` George Dunlap
2011-01-11 11:12 ` George Dunlap
2011-01-11 17:05 ` Wei Huang [this message]
2011-01-11 15:38 ` Huang2, Wei
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=4D2C8DD9.2060507@amd.com \
--to=wei.huang2@amd.com \
--cc=JBeulich@novell.com \
--cc=dunlapg@umich.edu \
--cc=keir@xen.org \
--cc=xen-devel@lists.xensource.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.