Mac OS X on x86 Hardware 2008–2024 Technical Archive
InfiniteMac OSx86 › OSx86 Core & 10.X › AMD Dual-Core Optimizer for Snow Leopard
37,534 reads · 2010-12-24 – 2011-11-03
Dossier 10.X Core AMD OSx86

AMD Dual-Core Optimizer for Snow Leopard

History I have an AMD Athlon 64 X2 dual-core processor. If I boot into Snow Leopard as is, I get EXC_I386_DIV crashes across my entire system after a few hours. If I boot with the cpus=1 kernel flag, I do not receive the crashes but I lose…

Primary Author
@fumoboy007 Published 2010-12-24
Collection
OSx86 Core & 10.X
Archival Footprint
37,534 historical reads · 15 curated field notes (from 19 dispatches) · 2010-12-24 – 2011-11-03
Credited Voices (16)
@fumoboy007 (2)@RayFlower (2)@maya77 (2)@markusthekiller@mindlessmissy@scififan68@fxwizrd@starwa314@AVO-Electronics@drbawb@Lordadmiral Drake@luckycbn@gums@sunnybala@alittlelove@bingaling

History

I have an AMD Athlon 64 X2 dual-core processor. If I boot into Snow Leopard as is, I get EXC_I386_DIV crashes across my entire system after a few hours. If I boot with the cpus=1 kernel flag, I do not receive the crashes but I lose my second core, of course. When I booted with both cores enabled, I saw a message in my kernel log saying I had an unsynchronized TSC (time stamp counter) so I deduced that that was the cause of my crashes. And it made sense since only after a few hours could the TSC become so unsynchronized so as to cause crashes (I don't know the specifics.). After I discovered this, I found the VoodooTSCSync project (http://code.google.com/p/voodootscsync/ ↗). I tried it and it synchronized my TSC at boot but I still got crashes! Then I realized that I needed my TSC to be synchronized constantly, just like the AMD Dual-Core Optimizer does for Windows users. So I took the VoodooTSCSync project and turned it into VoodooTSCSyncAMD.

What it does

VoodooTSCSyncAMD is basically AMD Dual-Core Optimizer for the Mac OS. It synchronizes the TSC across all processor cores every 10 seconds. This is for Athlon 64 FX, Athlon 64 X2, Opteron (first-generation and second-generation), Sempron X2, and Turion 64 X2. VoodooTSCSyncAMD is essential to prevent EXC_I386_DIV crashes on these processors, as well as problems with Adobe Flash Player, and system lag after a few hours. I would like to thank the original creators of VoodooTSCSync for their efforts.

Author Updates & Technical Revisions

Follow-up dispatches by @fumoboy007

Author Update #1 @fumoboy007 2011-01-05 ↳ Re: @AVO-Electronics
@AVO-ElectronicsDoes the following bootflag not work? - maybe it syncs only at boot also? "tscsync= Certain multi-core CPUs suffer from a timestamp counter drift between the cores causing unpredictable timing behaviour or audio stutters. The kernel automatically accounts for this. Use this option to enable or disable this feature. Pass 0 (zero) to…

This is a feature of the Voodoo kernel for Leopard. On Snow Leopard, we need this kext until somebody integrates it into the kernel.

Synthesized Community Field Notes

15 technical responses curated from 19 original dispatches

Field Note #1 @markusthekiller 2010-12-24

works

reporting that it works on my AMD Athlon64 X2 5200+
no more ``EXC_I386_DIV`` crashes in console after 3+ hours so far :

Field Note #2 @RayFlower 2010-12-25

Sweet, any chance to get this working with other multi core processors?
I have a phenom II x4, i guess i could try and see if this works out of the box

Field Note #3 @scififan68 2010-12-25 ↳ Re: @RayFlower
@RayFlowerSweet, any chance to get this working with other multi core processors? I have a phenom II x4, i guess i could try and see if this works out of the box

Actually this isn't needed on the Phenom II's or Athlon II's, only older Amd x2's(not II X2's).

Field Note #4 @fxwizrd 2010-12-26

Thank you, fumoboy007, for the fix. I also have an older Athlon x2 64 CPU and experience similar random application and system crashes after some hours after start of the system.
Hopefully this kext will eliminate these sync issues altogether

Field Note #5 @starwa314 2010-12-31

You are my hero! It's been so aggravating having a system being so close to perfect except for one issue that ruins the experience. Now my computer's been running great without any crashing. Thank you so much!

Field Note #6 @AVO-Electronics 2011-01-05

History

I have an AMD Athlon 64 X2 dual-core processor. If I boot into Snow Leopard as is, I get EXC_I386_DIV crashes across my entire system after a few hours. If I boot with the cpus=1 kernel flag, I do not receive the crashes but I lose my second core, of course. When I booted with both cores enabled, I saw a message in my kernel log saying I had an unsynchronized TSC (time stamp counter) so I deduced that that was the cause of my crashes. And it made sense since only after a few hours could the TSC become so unsynchronized so as to cause crashes (I don't know the specifics.). After I discovered this, I found the VoodooTSCSync project (http://code.google.com/p/voodootscsync/ ↗). I tried it and it synchronized my TSC at boot but I still got crashes! Then I realized that I needed my TSC to be synchronized constantly, just like the AMD Dual-Core Optimizer does for Windows users. So I took the VoodooTSCSync project and turned it into VoodooTSCSyncAMD.

Does the following bootflag not work? - maybe it syncs only at boot also?

 
"tscsync=
Certain multi-core CPUs suffer from a timestamp counter drift between the cores
causing unpredictable timing behaviour or audio stutters. The kernel automatically
accounts for this. Use this option to enable or disable this feature. Pass 0 (zero) to 
disable or 1 (one) to enable tsc synchronization. Example: tscsync=0"
Field Note #7 @drbawb 2011-02-01

Just wanted to say I've been using this for about 4 hours and so far it's worked perfectly.

It took me a while to find this solution, thank you so much!

Field Note #8 @maya77 2011-04-06

This allows me to run my Phenom II X6 1090T without cpus=1.

OSX 10.6.7 / Legacy Kernel 10.7.0

Field Note #9 @Lordadmiral Drake 2011-05-03

Thanks for this kext. Had serious sound distortions before, making audio unusable.

However there are still minimal distortions. Do you think it would help to recompile with shorter sync intervals?

Field Note #10 @maya77 2011-05-04

If you decide to update this you may also wish to rename it to Multi-Core Optimizer, as it works with 6-core too.

Field Note #11 @luckycbn 2011-06-11

I read that it's NOT for the older Turion 64 X2's, if not these kexts then what will fix the panic while using Xcode on 10.6.7?

Field Note #12 @gums 2011-06-30

: : :
That's works 100% On Netbook Acer Aspire 722 AMD Dual Core C50

Field Note #13 @sunnybala 2011-07-13

a small issue

hey biggies out der... i wanna no wht do i do of this voodootsctncamd.. i downloaded it.. for my amd.. how do i go abt this.. i no i would sound really funny.. bt serizly im new to it... need sum help...

Field Note #14 @alittlelove 2011-07-19 ↳ Re: @gums

Would like info for Acer Aspire 722 AMD Dual Core C50

@gums: : : That's works 100% On Netbook Acer Aspire 722 AMD Dual Core C50

Hi There,
I just purchased one of these and would like to convert to OSX right away. I have not found a way to do it yet online at the HCL sites for the 722. Would you be so kind as to point me in the right direction.

Field Note #15 @bingaling 2011-11-03 ↳ Re: @gums
@gums: : : That's works 100% On Netbook Acer Aspire 722 AMD Dual Core C50

how did you get a hackintosh to run at all on a C50 processor? please help :'(

Corroborated & Participated: @mindlessmissy @RayFlower
Sources & Contributor Provenance (16 credited usernames · Thread #6820)
UsernameDossier ContributionDispatchesActive Window
@fumoboy007Primary Author22010-12-24 → 2011-01-05
@RayFlowerContributor22010-12-25
@maya77Contributor22011-04-06 → 2011-05-04
@markusthekillerContributor12010-12-24
@mindlessmissyContributor12010-12-24
@scififan68Contributor12010-12-25
@fxwizrdContributor12010-12-26
@starwa314Contributor12010-12-31
@AVO-ElectronicsContributor12011-01-05
@drbawbContributor12011-02-01
@Lordadmiral DrakeContributor12011-05-03
@luckycbnContributor12011-06-11
@gumsContributor12011-06-30
@sunnybalaContributor12011-07-13
@alittleloveContributor12011-07-19
@bingalingContributor12011-11-03