Re: Distinguish real vs. virtual CPUs?

2005-03-23 Thread Bill Davidsen
Tom Vier wrote: On Tue, Mar 22, 2005 at 04:26:47PM -0500, Bill Davidsen wrote: It's not clear if that's bizarre practice on AMD system boards or if it's mis-reported. Of course Tom may be running a NUMA setup, in which case I won't guess what's expected to be displayed. I've added him to the CC

Re: Distinguish real vs. virtual CPUs?

2005-03-23 Thread Tom Vier
On Tue, Mar 22, 2005 at 04:26:47PM -0500, Bill Davidsen wrote: > It's not clear if that's bizarre practice on AMD system boards or if > it's mis-reported. Of course Tom may be running a NUMA setup, in which > case I won't guess what's expected to be displayed. I've added him to > the CC list, in

Re: Distinguish real vs. virtual CPUs?

2005-03-22 Thread Jan Engelhardt
> For some Intel processors... Tom Vier just posted his cpuinfo which shows all > of his processors, which he notes are in separate sockets, are identified as > physical zero. I didn't find any Intel systems which lacked unique physical > ID, > but clearly that's not true everywhere. Hmmh what w

Re: Distinguish real vs. virtual CPUs?

2005-03-22 Thread Bill Davidsen
Pallipadi, Venkatesh wrote: This is 2xXeonHT, is, 4 cpus on 2 packages: cat /proc/cpuinfo: processor : 0 ... physical id : 0 siblings: 2 core id : 0 cpu cores : 1 processor : 1 ... physical id : 0 siblings: 2 core id : 0 cpu cores

not for amd Re: Distinguish real vs. virtual CPUs?

2005-03-22 Thread Tom Vier
On Mon, Mar 21, 2005 at 08:56:03PM -0500, Dave Jones wrote: > Compare the 'physical id' fields of /proc/cpuinfo, and count > how many unique values you get. It doesn't work for opteron, at least. These are in two sockets, but the phys id is the same. processor : 0 vendor_id : Authenti

Re: Distinguish real vs. virtual CPUs?

2005-03-22 Thread Dr. David Alan Gilbert
* Dave Jones ([EMAIL PROTECTED]) wrote: > Compare the 'physical id' fields of /proc/cpuinfo, and count > how many unique values you get. > Ie, on my dual+ht, I see.. > > physical id : 0 > physical id : 0 > physical id : 3 > physical id : 3 > > Which indicates 2 real CPUs split in

RE: Distinguish real vs. virtual CPUs?

2005-03-21 Thread Pallipadi, Venkatesh
>This is 2xXeonHT, is, 4 cpus on 2 packages: > >cat /proc/cpuinfo: > >processor : 0 >... >physical id: 0 >siblings : 2 >core id: 0 >cpu cores : 1 > >processor : 1 >... >physical id: 0 >siblings : 2 >core id: 0 >cpu cores : 1

Re: Distinguish real vs. virtual CPUs?

2005-03-21 Thread Daniel Andersen
Dan Maas wrote: 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

Re: Distinguish real vs. virtual CPUs?

2005-03-21 Thread J.A. Magallon
On 03.22, Dan Maas wrote: > 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)? > This is 2xXeonHT, is, 4 cpus on 2 packages: cat /proc/cpuinfo: processor : 0 ... physical id

Re: Distinguish real vs. virtual CPUs?

2005-03-21 Thread Dave Jones
On Mon, Mar 21, 2005 at 08:27:26PM -0500, Dan Maas wrote: > 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 ru

Distinguish real vs. virtual CPUs?

2005-03-21 Thread Dan Maas
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 l