hyperthreading with arm64

Hi,

I am curious about if hyperthreading is enabled/disabled on my macbook pro M1 or M4. Howto figure out?

I am using macOS 15.5.

Further, I develop a multi-threaded audio sequencer that creates threads per instrument. I use vector operations to increase performance.

I recognized lowering synchronization rate from 250 Hz to 60 Hz gives additional performance advantages.

Howto programmatically check if Hyperthreading is enabled/disabled and howto enable/disable it programmatically?

After some research I found sysctl() and nvram SMTDisable=%01.

https://support.apple.com/en-us/101870

Can anyone provide me an Objective C example?


regards, Joël

Accepted Answer

There is nothing like hyperthreading on current Apple Silicon chips.

If you haven’t already seen it, I highly recommend that you read through Apple Silicon CPU Optimization Guide. It’s full of extremely interesting info.

Oh, and it just got updated last month. Cool.

Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

hyperthreading with arm64
 
 
Q