public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Distinguish real vs. virtual CPUs?
@ 2005-03-22  1:27 Dan Maas
  2005-03-22  1:56 ` Dave Jones
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Dan Maas @ 2005-03-22  1:27 UTC (permalink / raw)
  To: linux-kernel

Is there a canonical way for user-space software to determine how many
real CPUs are present in a system (as opposed to HyperThreaded or
otherwise virtual CPUs)?

We have an application that for performance reasons wants to run one
process per CPU. However, on a HyperThreaded system /proc/cpuinfo
lists two CPUs, and running two processes in this case is the wrong
thing to do. (Hyperthreading ends up degrading our performance,
perhaps due to cache or bus contention).

Please CC replies.

Thanks,
Dan Maas

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

end of thread, other threads:[~2005-03-22 15:02 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-22  1:27 Distinguish real vs. virtual CPUs? Dan Maas
2005-03-22  1:56 ` Dave Jones
2005-03-22 11:55   ` Dr. David Alan Gilbert
2005-03-22 15:02   ` not for amd " Tom Vier
2005-03-22  2:01 ` Daniel Andersen
2005-03-22  2:12 ` J.A. Magallon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox