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.