Imported from the Apple Support Forums via the Wayback Machine 🔗
I am a software engineer with a startup that makes a mathematical optimization system (linear and integer programming). Our software is already multi-threaded, and it runs much faster when hyperthreading is disabled. This is true on all platforms we've tested, including the 2009 'Nehalem' Mac Pro.
In OS X, I know you can temporarily disable hyperthreading through the Processor preference pane, as well as through the hwprefs command in Terminal. However, hyperthreading is turned back on if you resume from Sleep or reboot OS X. And worse, I cannot figure out how to disable hyperthreading if I boot into the 64-bit kernel.
Bottom line: is there a permanent way to disable hyperthreading on the 2009 Nehalem Mac Pro? On a Windows or Linux system, I know that I can disable hyperthreading in the BIOS; I'm looking for something equivalent for a Mac Pro. Thanks.
Imported from the Apple Support Forums via the Wayback Machine 🔗
Maybe Intel can help. If it was my software, I'd offload to GTX 480s, use CUDA/GPGPU and look into the OpenCL APIs which now that 10.6.3 is out have some support, and find out why HT presents a problem (I've seen other reports but attribute it to compiler and older code).
Mac Pro and EFI is a "closed" platform, so even running Windows on Mac Pro isn't a solution.
0
gglockner·
Imported from the Apple Support Forums via the Wayback Machine 🔗
Thanks, but GPU computing is not the solution. Besides which, we know that the code runs faster on dedicated Windows and Linux boxes with comparable Nehalem processors (Xeon/i7) when we disable hyperthreading. We're simply looking for how to do this on Mac OS X besides the two methods I mentioned above, which are only temporary and appear to be non-functioning when running the 64-bit kernel.
0
Martin Pace·
Imported from the Apple Support Forums via the Wayback Machine 🔗
Just a thought, why not modify your program to disable hyperthreading in OS X on launch? I know it doesn't help if the computer sleeps while the program is still running but otherwise it would work.
0
gglockner·
Imported from the Apple Support Forums via the Wayback Machine 🔗
Martin, I had the same idea. It's not a perfect solution but it's a possibility. The only catch is that the two methods I know to disable hyperthreading do not work with the 64-bit kernel.
0
Martin Pace·
Imported from the Apple Support Forums via the Wayback Machine 🔗
Well, I kind of doubt you'll get much better advice on these forums. Like Hatter said, maybe Intel can help or maybe try to contact an Apple engineer. Is there anyone where you work that has an ADC membership?
Intel works closely with, and has updated their compiler libraries but then it takes time to actually learn how to use, and I often get the feeling developers are being pulled away to work on the latest iGadget and iOS and a really optimized Mac OS X for Nehalem etc once Snow Leopard is put to bed - is further out and lower on priority.
0
Devin Crutcher·
Imported from the Apple Support Forums via the Wayback Machine 🔗
I discovered a way to do this a while back. In Leopard, there were two different ways to do this.