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

Re: [Condor-users] hyper-threading on Win compute nodes



Hi Ziliang,

On 12/04/12 10:52, Ziliang Guo wrote:
> I'm the guy that's been assigned the ticket today (imagine my
> surprise when I checked my email). 

Well, that sounds awesome. Looking forward to that.

> We have a plan for detecting
> hyperthreaded cores, but the bad news is Microsoft only added support
> for this in Vista and higher, so if you are on an XP machine, I'm
> afraid the problem will remain.

As I've hinted, I'm currently going to solve the problem by creating a
(Python) script to generate a line with the NUM_CPUS directive in the
configuration for our deployment.

Researching that, I've stumbled upon something that *might* be helpful,
but I don't know whether it's possible to run this on Win XP boxes, too.
After lots of prodding, Google has revealed a page that suggests to use
WMI to extract a property "NumberOfCores" from the CPU. Gladly, there's
a command line client available for using WMI. So the following resulted
in something that worked for me in detecting the number of physical
cores on a box:

H:\> wmic cpu get NumberOfCores
NumberOfCores
4

If this is also a possibility on Win XP, I'm glad to have told you. If
not ... well ... still thought it might be worth sending this one on.

There might be other ways by digging through the registry, but regedit
is blocked here by our admins, and I'm more of a Linux than Windows guy
to know these things for sure.

Guy

-- 
Guy K. Kloss
School of Computing + Mathematical Sciences
Auckland University of Technology
Private Bag 92006, Auckland 1142
phone: +64 9 921 9999 ext. 5032
eMail: Guy.Kloss@xxxxxxxxx