cbctech 发表于 2019-5-16 22:13

部分黑果睡眠唤醒后 CPU TSC 同步问题引起卡顿的解决方法

自己的老台式机 睡眠唤醒 后 卡顿的问题,一直以为是显卡的原因,无意间看到一帖子 分享 Skylake-X使用 VOODOOTSCSync / TSCAdjustReset.kext 来解决
TSC 同步问题, 最后无意间发现 使用 同一原理的 TSCAdjustReset.kext竟然解决了睡眠唤醒后卡顿的老毛病,

是否有可能进一步 改为 kernel patch 呢 ?呼唤大神。{:5_269:}

TSCAdjustReset.kext原帖介绍:

This kernel extension fixes the consenquences of unsyncronised TSC when booting Mac OS on an X299 board with Skylake-X CPUs.This kext is based on VoodooTSCSync. That kext writes the same TSC value to all cores, and while that works, the end result is that all cores are adjusted. And it does that multiple times.On x299 and Skylake-X, the CPU has an invariant TSC, meaning it will NOT get out of sync. The problem with x299/Sklylake-X is that something (probably the BIOS, or even the CPU itself) writes to the TSC of some of the cores, and thus the TSCs are not in sync upon cold or warm boot. The IA32_TSC_ADJUST MSR holds the value of how much each core was adjusted. Writing 0 this register rolls back any previous changes. So TSCAdjustReset.kext does exactly that. It can even be unloaded after it did its job.



这里分享 该 kext 的GitHub 链接: github.com/interferenc/TSCAdjustReset   有xcode 的可以自己编译下,

经测试 ,最新的 voodootscsync 无法进入睡眠, 唯有 这个 TSCAdjustRest 可以。

有该问题的朋友可以测试下, 看看能不能解决。{:5_292:}

a6360280 发表于 2019-5-17 07:47

刚好遇到了偶尔唤醒后鼠标卡卡的 重启后就好了

a6360280 发表于 2019-5-17 08:02

请教下楼主 这个补丁怎么用。


mrmg 发表于 2019-5-17 08:10

a6360280 发表于 2019-5-17 08:02 https://www.pcbeta.com/static/image/common/back.gif
请教下楼主 这个补丁怎么用。





用编辑器打开,找到红圈处,修改至为你的CPU的线程总数-1的数字
如图,我的是14核心28线程,那么就是填写27这个数字,因为是0起步计数
比如4核心8线程,那么就改成7
8核心16线程,就改成15
4核心4线程就改成3

话说,这货一般都用在核心数比较多的cpu上。
管用就好。祝黑的愉快。

huagehuage 发表于 2019-5-20 13:02

66666666,试试,谢谢

zoly1791 发表于 2019-5-25 11:36

正好是这个问题试试看

嘿嘿苹果。 发表于 2019-5-25 12:10

试试,谢谢

yanyuquan99 发表于 2019-5-25 12:56

打算弄个黑苹果,先攒攒经验

黄增光 发表于 2019-5-25 18:47

谢谢分享支持

nomcoych 发表于 2019-6-10 12:14

nomcoych 发表于 2019-6-10 17:57

四二〇 发表于 2019-7-1 19:32

感谢分享,我去试试

rs4 发表于 2019-7-28 22:21

真的有用 感谢楼主解决我多年问题{:5_265:}

jowely- 发表于 2019-7-29 07:30

我的也是,有时候睡眠唤醒后很卡,重启后就提示电脑出现了问题,然后又正常了,不知道是不是这个原因?

覃小兵 发表于 2019-8-6 21:24

我是台式机x3440 cpu,现在基本能用,就是睡眠出现问题,睡过去 主板断电之后再开机就重启了,另外前置面板usb不能用。楼主这个能解决吗?谢谢先去试试

wp128 发表于 2019-8-7 11:15

对笔记本有用吗?

qq18463435 发表于 2019-8-7 12:07

这个驱动起码1~2代时期的东西了

wanglei2999 发表于 2019-8-7 22:23

mrmg 发表于 2019-5-17 08:10 https://www.pcbeta.com/static/image/common/back.gif
用编辑器打开,找到红圈处,修改至为你的CPU的线程总数-1的数字
如图,我的是14核心28线程,那么 ...

好东西,谢谢楼主

oofyuan 发表于 2019-8-30 22:54

感谢分享!!!!!

oofyuan 发表于 2019-8-30 22:56

希望有所帮助!!
页: [1] 2 3
查看完整版本: 部分黑果睡眠唤醒后 CPU TSC 同步问题引起卡顿的解决方法