Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

WonderSausage

macrumors member
Original poster
Jul 3, 2008
74
3
Any updated CHUD that works on the 2009 Mac Pro to disable Hyperthreading? My encoder only supports 8 CPUs and I think I could get 10-20% better performance without HT.

It's very difficult to query the ADC site for CHUD, they've really buried it. Perhaps we have to wait for the 10.6 SDK?

thanks,

WS
 

2002cbr600f4i

macrumors 6502
Jun 21, 2008
489
0
Install XCode off your OS install DVDs. Then I forget where in there you have to go, but in the directories where XCode gets installed, there's a prefs panel executeable that adds a Processor prefs panel. In there you can toggle the HT settings.

Note: you have to reboot for the changes to take effect.
 

VirtualRain

macrumors 603
Aug 1, 2008
6,304
118
Vancouver, BC
Any updated CHUD that works on the 2009 Mac Pro to disable Hyperthreading? My encoder only supports 8 CPUs and I think I could get 10-20% better performance without HT.

It's very difficult to query the ADC site for CHUD, they've really buried it. Perhaps we have to wait for the 10.6 SDK?

thanks,

WS

Let us know if turning off HT helps. Hopefully it doesn't make any difference. I recall reading somewhere that the task schedular can have sufficient insights into the physical core structure to be able to make smarter decisions about where to assign tasks... eg. to physical cores and not logical ones. Not sure though if this was Windows or OSX. :confused:
 

WonderSausage

macrumors member
Original poster
Jul 3, 2008
74
3
Install XCode off your OS install DVDs. Then I forget where in there you have to go, but in the directories where XCode gets installed, there's a prefs panel executeable that adds a Processor prefs panel. In there you can toggle the HT settings.

Note: you have to reboot for the changes to take effect.

No, that's the same Processor prefs that's part of CHUD. It does NOT, repeat does not, affect Hyperthreading on the 2009 Mac Pro. It can only disable physical cores.
 

Tesselator

macrumors 601
Jan 9, 2008
4,601
6
Japan
No, that's the same Processor prefs that's part of CHUD. It does NOT, repeat does not, affect Hyperthreading on the 2009 Mac Pro. It can only disable physical cores.

Get the newer one I linked you to. Another user here says that there's a "HT Off" menu selection in it when run on HT capable intels.
Screen shots of it show it listing 16 cores available for disablement as I recall.
 

WonderSausage

macrumors member
Original poster
Jul 3, 2008
74
3
Get the newer one I linked you to. Another user here says that there's a "HT Off" menu selection in it when run on HT capable intels.
Screen shots of it show it listing 16 cores available for disablement as I recall.

Nope... the Processor.prefPane included with Xcode 3.1.3 has not been updated. It's still version 4.7.0 which came out in 2008 (though the created date has been changed to April 2009). Yes, it includes a "Hyper-Threading" checkbox but it does NOT have any effect whatsoever on the 2009 Mac Pro. Activity Monitor still shows 16 CPUs.

WS
 

Tesselator

macrumors 601
Jan 9, 2008
4,601
6
Japan
Nope... the Processor.prefPane included with Xcode 3.1.3 has not been updated. It's still version 4.7.0 which came out in 2008 (though the created date has been changed to April 2009). Yes, it includes a "Hyper-Threading" checkbox but it does NOT have any effect whatsoever on the 2009 Mac Pro. Activity Monitor still shows 16 CPUs.

WS

OK, so the noob here that was saying it had that feature was taking the pizz. Sorry about that man.
 

Abidubi

macrumors 6502
Feb 13, 2009
329
0
Montreal
Nope... the Processor.prefPane included with Xcode 3.1.3 has not been updated. It's still version 4.7.0 which came out in 2008 (though the created date has been changed to April 2009). Yes, it includes a "Hyper-Threading" checkbox but it does NOT have any effect whatsoever on the 2009 Mac Pro. Activity Monitor still shows 16 CPUs.

WS

Activity monitor will still show you 2X the number of bars, but only half of them are active. Yes you can disable HT on the 2009s. And yes it makes a difference. It makes some things actually run faster. Disabling it brings up the fps 5-10% in some games (effect is instantaneous and measurable), and running HD flash movies in safari is also significantly smoother when running 3 or more at a time on my quad core. Of course, 99% of the time I keep HT on since it doesn't make a noticeable difference in normal use.

Most non-multiCPU friendly programs will probably run better with HT off until 10.6 with grand central is released.

Maybe you should actually get your hands on the machine and test instead of assuming.
 

Abidubi

macrumors 6502
Feb 13, 2009
329
0
Montreal
LOL! All that and you don't say how. TeeHeeHee...

You click the button in the processor prefs.

picture18f.png


Unclicking it clearly stops hyperthreading.

picture19b.png
 

WonderSausage

macrumors member
Original poster
Jul 3, 2008
74
3
Maybe you should actually get your hands on the machine and test instead of assuming.

https://forums.macrumors.com/threads/664724/

Maybe you should read someone's post history before being so rude. Or better yet, just don't be so rude, in general.

There is no credible evidence that HT is disabled, the processor palette that comes with the prefs shows it disabled but that prefs applet appears to be delusional because there is no performance difference in HandBrake, it does NOT persist across reboots or in Windows (where I really need HT disabled because of some Windows app compatibility), and no other utility confirms HT disabled.

Here are shots clearly showing both Activity Monitor and iStat Pro indicating 16 cores with the checkbox disabled. iStat Pro is pretty respected.

Activity monitor will still show you 2X the number of bars, but only half of them are active.

This statement conflicts with your second screenshot which shows 8 cores in Activity Monitor. And you don't have both the processor prefs and Activity Monitor in the same screenshot. Shenanigans.

HTshot1.jpg

HTshot2.jpg


WS
 

Tesselator

macrumors 601
Jan 9, 2008
4,601
6
Japan
Easy enough to find out for sure Mr. Sausage.

  1. Start Handbreak doing it's thing.
  2. Look at any 16-bar CPU meter to make sure all 16 are going.
  3. Then flip the HT switch and watch the CPU meters.

Happiness is knowing in three steps or less. :)

But his does show that it works here:
picture19b.png



EDIT: Thanks Abidubi! And if you're the guy who showed this before I apologize for falsely presuming sneaky noobishness. :)
 

Abidubi

macrumors 6502
Feb 13, 2009
329
0
Montreal
Maybe you should read someone's post history before being so rude. Or better yet, just don't be so rude, in general.

I have about as much time to read through every post you ever wrote as you do to properly test something before making assumptions and announcing them to the world as fact.

There is no credible evidence that HT is disabled, the processor palette that comes with the prefs shows it disabled but that prefs applet appears to be delusional because there is no performance difference in HandBrake

I can't speak for handbrake performance, but it clearly does disable hyper-threading.

Look at my screenshot again. Notice only 4 of the 8 bars are doing anything. Thats with HT off.

Here are shots clearly showing both Activity Monitor and iStat Pro indicating 16 cores with the checkbox disabled. iStat Pro is pretty respected.

This statement conflicts with your second screenshot which shows 8 cores in Activity Monitor. And you don't have both the processor prefs and Activity Monitor in the same screenshot. Shenanigans.

When you set your computer to single CPU what is handbrake's performance like? Open activity monitor... does it show just 1 single bar? Oh wait, it shows exactly the same number as before, therefore it MUST not be working:rolleyes:. Hmmm, why is everything slower then?

Ever thought that maybe the # of processors is determined at startup, and therefore the information activity monitor uses to report the number of CPUs is what was known at boot time?
 

Inconsequential

macrumors 68000
Sep 12, 2007
1,978
1
It does turn it off.

On my quad Mac Pro here temperatures DROP by 3-5C when HT is off.

So go and install the processor pane as it does work.

And trust me, I have been fiddling with that pane since launch. I can confirm from the change in chip temperatures that it does infact, work.
 

LPZ

macrumors 65816
Jul 11, 2006
1,221
2
Regarding a 2009 Mac Pro running Snow Leopard (10.6.2):

1) Can hyper-threading be toggled on-off from the command line?

2) Can current hyper-threading on-off status be determined from the command line?

3) How can I set my machine so that hyper-threading-off is the default after a reboot? Currently hyper-threading is always turned on when I reboot, even if I have the appropriate box unchecked in the Processor preference pane.

Thanks.

Code:
  Model Name:	Mac Pro
  Model Identifier:	MacPro4,1
  Processor Name:	Quad-Core Intel Xeon
  Processor Speed:	2.26 GHz
  Number Of Processors:	2
  Total Number Of Cores:	8
  L2 Cache (per core):	256 KB
  L3 Cache (per processor):	8 MB
  Memory:	6 GB
  Processor Interconnect Speed:	5.86 GT/s
  Boot ROM Version:	MP41.0081.B03
 

SatyMahajan

macrumors regular
Apr 26, 2009
233
0
Cambridge, MA
Assuming you have CHUD installed.

You can disable HT from Terminal using this command:

hwprefs cpu_ht=false

And enable it using this command:

hwprefs cpu_ht=true

You could create an AppleScript that does this and launch it every time you boot, but every time you wake from sleep you'll see that OS X will again re-enable Hyperthreading.
 

LPZ

macrumors 65816
Jul 11, 2006
1,221
2
Assuming you have CHUD installed.

You can disable HT from Terminal using this command:

hwprefs cpu_ht=false

And enable it using this command:

hwprefs cpu_ht=true

You could create an AppleScript that does this and launch it every time you boot, but every time you wake from sleep you'll see that OS X will again re-enable Hyperthreading.

Thanks. But now I'm even more puzzled!

First, I have XCode 3.2.1 and CHUD.

I am now fairly certain that neither the Processor pref pane nor the command line method actually disable hyper-threading on 10.6 (using either 32 or 64-bit kernels). A check can be placed or removed, or cpu_ht can be set 1 or 0, but it seems to me hyper-threading is always enabled. Here's why I think so.

I have both a 10.5.8 and a 10.6.2 system on my Mac Pro 4,1. On each system I have identically compiled versions of the chess program Crafty.

When set to use 8 threads, Crafty is quite sensitive to hyper-threading status. It is measurably slower when hyper-threading is enabled.

When I run Crafty on the 10.5.8 system, toggling the hyper-threading status in the Processor pane has an immediate effect on Crafty's speed with 8 threads.

When I do the same thing on the 10.6.2 system, toggling the hyper-threading status in the Processor pane (or from the command line) has no effect on Crafty whatsoever. Speed is slow in both cases.

I wonder how we can get a definitive answer from Apple.
 

LPZ

macrumors 65816
Jul 11, 2006
1,221
2
Upon further testing I am convinced that hyper-threading cannot currently be disabled using the Processor pref pane on my 10.6.2 Mac Pro 4,1.

Is there any way to do this?
 

wbsimey

macrumors newbie
Jan 21, 2010
4
0
I too, cannot disable Hyper-threading

we are running an Xserve cluster (OS X 10.6.1) with Nehalem processors (2x2.8 Quad intel Xeon) and performance is suffering with hyper-threading enabled. I can uncheck the hyper-thread checkbox in the Processor pane, but as soon as I reopen the pane it is checked again. A restart does not work either. I have tried to talk to Apple folks and I don't think they are aware that this is a real problem.
 

Attachments

  • Picture 2.png
    Picture 2.png
    510.7 KB · Views: 308

wbsimey

macrumors newbie
Jan 21, 2010
4
0
Apple xserve tech suggestion

An Apple xserve tech suggested I try setting the NVRAM to 0 with

NVRAM SMT=0

then restart OS

this eliminated the hyper-threading checkbox from the processor preferences pane, but it appears that 16 cores are still available instead of 8, which is what we want. Will test performance later today.
 

gglockner

macrumors 6502
Nov 25, 2007
412
48
Bellevue, WA
An Apple xserve tech suggested I try setting the NVRAM to 0 with

NVRAM SMT=0

then restart OS

this eliminated the hyper-threading checkbox from the processor preferences pane, but it appears that 16 cores are still available instead of 8, which is what we want. Will test performance later today.

This has to be run as root:

sudo nvram SMT=0

Otherwise, this is exactly what's needed. Even works with the 64-bit kernel.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.