Torgeir
Fri Jun 24 10:42:29 CDT 2005
Cmor wrote:
> I'm trying to determine the number and speed of the processors in a
> server. My results are being skewed by those servers that have
> hyperthreading turned on. A 2-CPU server appears to be a 4-CPU server,
> etc.
>
> Is there a way to distinguish between a physical and a virtual
> processor?
Hi
You will not be able to use WMI to detect this and I don't know of
any other builtin script method either that will do it.
From: Steve Lee [MSFT] (slee@online.microsoft.com)
Subject: Re: hyperthreading oddity
Newsgroups: microsoft.public.win32.programmer.wmi
Date: 2003-03-03 13:32:05 PST
<quote>
This is a known issue. WMI is currently not hyperthreading aware and
simply reports what the OS is reporting.
</quote>
Intel have some code available that counts physical CPUs:
From: Stuart Coney (NOSPAM_StueyC_News@msn.com)
Subject: Re: Detecting is hyperthreading is enabled with WMI?
Newsgroups: microsoft.public.windowsxp.wmi
Date: 2004-08-17 06:13:42 PST
<quote>
Hi David,
I have a similar issue right now.....
I looked around after reading and trying your vbscript with embedded .exe
and found a code example on the Intel Developers site aimed at software
vendors who wanted to license their software on a processor or logical
processor basis.....
anyway, it's called cpucount and is downloadable in both .exe and .cpp
source. Unfortunately it requires the user to press ENTER at the end of
the cmd line run (it uses a getchar();)....I will re compile it minus this
statement and use psexec from sysinternals.com to round robin the production
servers here.
Anyway the Intel download location is
http://www.intel.com/cd/ids/developer/asmo-na/eng/microprocessors/ia32/pentium4/hyperthreading/19122.htm
Hope this is of use to you, good luck
Stuart Coney
</quote>
--
torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of
the 1328 page Scripting Guide:
http://www.microsoft.com/technet/scriptcenter/default.mspx