[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] RE: [RFC][PATCH] AMD CPU core topology detection


  • To: "Huang2, Wei" <Wei.Huang2@xxxxxxx>
  • From: George Dunlap <dunlapg@xxxxxxxxx>
  • Date: Tue, 11 Jan 2011 11:12:59 +0000
  • Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>, "keir@xxxxxxx" <keir@xxxxxxx>, Jan Beulich <JBeulich@xxxxxxxxxx>
  • Delivery-date: Tue, 11 Jan 2011 03:57:49 -0800
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=BgK1Y2zqTYq0byFjt6n7SJLRpTe8AwUl5dlyCFtOiEHTA9QpCZXyvQRuvEHAv1vz56 Agvubm3My/JzNgZukXkWCeO3KXaLC07qvJVsBKx7zKRL/gIXdYjtcq9227HqKBUGrLPS KH6S7Qk2icjcitGnoJ9JFNQGIW7ffijNnbfyU=
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

On Tue, Jan 11, 2011 at 10:58 AM, George Dunlap <dunlapg@xxxxxxxxx> wrote:
> On Fri, Jan 7, 2011 at 3:52 PM, Huang2, Wei <Wei.Huang2@xxxxxxx> 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

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.