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

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



WMI is not an option due to the extra dependencies calling it through
C++ drags in.  The registry on the other hand is proving more
promising.  I think I've found the place where # of CPU cores is
stored, just need to doublecheck.

On Wed, Apr 11, 2012 at 6:42 PM, Guy K. Kloss <guy.kloss@xxxxxxxxx> wrote:
> 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
> _______________________________________________
> Condor-users mailing list
> To unsubscribe, send a message to condor-users-request@xxxxxxxxxxx with a
> subject: Unsubscribe
> You can also unsubscribe by visiting
> https://lists.cs.wisc.edu/mailman/listinfo/condor-users
>
> The archives can be found at:
> https://lists.cs.wisc.edu/archive/condor-users/



-- 
Condor Project Windows Developer