linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* CPU siblings
@ 2008-03-20 16:03 Jon Masters
  2008-03-20 21:48 ` Bill Davidsen
  0 siblings, 1 reply; 2+ messages in thread
From: Jon Masters @ 2008-03-20 16:03 UTC (permalink / raw)
  To: linux-kernel; +Cc: Jeff Burke

Yo,

Myself and a colleague were just discussing the output of /proc/cpuinfo,
specifically the CPU siblings field. He pointed out/we think that this
historically was supposed to be number of HT siblings for a given CPU.

The actual value of that field comes from the Hamming Weight (number of
set bits) of the per_cpu cpu_core_map variable, which supposedly is
"representing HT and core siblings of each logical CPU", i.e. both HT
siblings and additional cores within the same CPU package.

Does this mean that "siblings" needs renaming? (doesn't it come
originally from "HT siblings"? or is it supposed to be both?). More
importantly, what's the correct way to determine number of HTs?

Jon.



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: CPU siblings
  2008-03-20 16:03 CPU siblings Jon Masters
@ 2008-03-20 21:48 ` Bill Davidsen
  0 siblings, 0 replies; 2+ messages in thread
From: Bill Davidsen @ 2008-03-20 21:48 UTC (permalink / raw)
  To: Jon Masters; +Cc: linux-kernel, Jeff Burke

Jon Masters wrote:
> Yo,
> 
> Myself and a colleague were just discussing the output of /proc/cpuinfo,
> specifically the CPU siblings field. He pointed out/we think that this
> historically was supposed to be number of HT siblings for a given CPU.
> 
> The actual value of that field comes from the Hamming Weight (number of
> set bits) of the per_cpu cpu_core_map variable, which supposedly is
> "representing HT and core siblings of each logical CPU", i.e. both HT
> siblings and additional cores within the same CPU package.
> 
> Does this mean that "siblings" needs renaming? (doesn't it come
> originally from "HT siblings"? or is it supposed to be both?). More
> importantly, what's the correct way to determine number of HTs?
> 
Related topic: Intel has announced that some of their new CPU lines will 
once again have SMT in each core. Just the thought of multiple sockets 
with multiple core, with multiple threads and shared L3 cache sounds 
like a scheduling nightmare.

-- 
Bill Davidsen <davidsen@tmr.com>
   "We have more to fear from the bungling of the incompetent than from
the machinations of the wicked."  - from Slashdot

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-03-20 21:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-20 16:03 CPU siblings Jon Masters
2008-03-20 21:48 ` Bill Davidsen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).