ItzhacLea
V2EX  ›  Apple

macOS 已在 10.3.2 修復 #KPTI bug

  •  
  •   ItzhacLea · Jan 4, 2018 · 4123 views
    This topic created in 3076 days ago, the information mentioned may be changed or developed.


    「 Double Map 」機制已在 macOS 10.3.2 中啓用。



    並且由於 PCID 的存在,最小化了補丁帶來的性能下降。

    ref: https://twitter.com/aionescu/status/948609809540046849
    Supplement 1  ·  Jan 4, 2018
    系統版本應為 10.13.2
    14 replies    2018-01-04 13:26:54 +08:00
    wyfyw
        1
    wyfyw  
       Jan 4, 2018
    谷歌了一下啥是 PCID。找到这个 http://ytliu.info/blog/2016/09/16/tlbde-na-xie-shi-er/ 学习了一下 PCID。
    Quote here, “
    PCID 的全称是 Process-Context Identifiers,如果没有 PCID,那么运行在处理器上的软件每次切换 CR3,都会造成整个处理器的地址翻译缓存信息(包括 TLB 和 paging-structure cache )被刷掉。而 PCID 则是优化了这一过程。可以这么说,每个进程有自己的一个 PCID,这使得进程间的切换不用刷掉处理器中对应的地址翻译缓存信息。
    cuebyte
        2
    cuebyte  
       Jan 4, 2018
    打死也不升级了……
    cuebyte
        3
    cuebyte  
       Jan 4, 2018
    楼主在德国工作?
    shutongxinq
        4
    shutongxinq  
       Jan 4, 2018
    @cuebyte 不升级,过段时间针对这个的木马就来了。。。分分钟 root,开开心心当肉鸡(仅仅是可以,还没看到用这个 flaw 搞 root 的论文 /报告 /code )。

    有了 PCID,worst case 也有 17%的下降(虽然他的 benchmark 还不是很科学)。pg-bench 上 avg case 也有 7%的下降。
    ref: https://www.postgresql.org/message-id/[email protected]

    Kernel intensive 的 workload 压力更大了,比如 webserver 之类的。

    看来下一代要实现 1.15/0.85 = 1.35 的性能提升了。
    qdwang
        5
    qdwang  
       Jan 4, 2018 via iPhone
    还留在上一个大版本的怎么办
    yopming
        6
    yopming  
       Jan 4, 2018
    看了下标题,瞬间有穿越的感觉
    yingjun424
        7
    yingjun424  
       Jan 4, 2018
    看标题我以为苹果未卜先知,早在 10.3 就知道这个 bug 并修复了😷
    Elephant696
        8
    Elephant696  
       Jan 4, 2018
    是 10.13.2

    楼主啊,
    xern
        9
    xern  
       Jan 4, 2018 via Android
    停留在 10.12.6
    vinsoncou
        10
    vinsoncou  
       Jan 4, 2018
    早知道不升级了
    ItzhacLea
        11
    ItzhacLea  
    OP
       Jan 4, 2018 via iPhone
    @cuebyte 沒有,本科是德語
    ItzhacLea
        12
    ItzhacLea  
    OP
       Jan 4, 2018 via iPhone
    @yopming
    @yingjun424
    @Elephant696

    抱歉昨晚寫論文寫得迷糊了,已 append
    chengzhoukun
        13
    chengzhoukun  
       Jan 4, 2018 via Android
    @yingjun424 去年 6 月各大厂家都知道了
    billion
        14
    billion  
       Jan 4, 2018
    @ItzhacLea #11 骨科是德国
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2442 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 74ms · UTC 16:00 · PVG 00:00 · LAX 09:00 · JFK 12:00
    ♥ Do have faith in what you're doing.