InfiniteMac OSx86

InfiniteMac OSx86 (http://infinitemac.com/forum.php)
-   10.X (http://infinitemac.com/forumdisplay.php?f=36)
-   -   AMD Dual-Core Optimizer for Snow Leopard (http://infinitemac.com/showthread.php?t=6820)

fumoboy007 12-24-2010 07:16 AM

AMD Dual-Core Optimizer for Snow Leopard
 
2 Attachment(s)
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.

markusthekiller 12-24-2010 11:37 AM

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

mindlessmissy 12-24-2010 01:47 PM

Will try this out ... Thanks !

RayFlower 12-25-2010 01:41 PM

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

scififan68 12-25-2010 03:06 PM

Quote:

Originally Posted by RayFlower (Post 51896)
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

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

RayFlower 12-25-2010 04:22 PM

Ah, okay, thanks for pointing that out:)

fxwizrd 12-26-2010 04:05 PM

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 :)

starwa314 12-31-2010 03:14 AM

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!

AVO-Electronics 01-05-2011 11:13 AM

[quote=fumoboy007;51881]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?

Code:


"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"


fumoboy007 01-06-2011 12:46 AM

Quote:

Originally Posted by AVO-Electronics (Post 52085)
Does the following bootflag not work? - maybe it syncs only at boot also?

Code:


"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"


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