设为首页收藏本站

LUPA开源社区

 找回密码
 注册
文章 帖子 博客
LUPA开源社区 首页 业界资讯 开源资讯 查看内容

Linus Torvalds不满Linux Kernel 4.20出现性能下降

2018-11-21 12:49| 发布者: joejoe0332| 查看: 996| 评论: 0|原作者: oschina|来自: oschina

摘要: 之前我们曾报道过,Phoronix 近日测试发现,在几乎所有低中高端英特尔处理器上,最新测试版内核 Linux 4.20 的表现比最新稳定版 4.19 有显著的下降,而 AMD 的处理器不受影响。 ...

之前我们曾报道过,Phoronix 近日测试发现,在几乎所有低中高端英特尔处理器上,最新测试版内核 Linux 4.20 的表现比最新稳定版 4.19 有显著的下降,而 AMD 的处理器不受影响。出现性能下降的原因与英特尔处理器漏洞修补有关,4.20 的主要改变是对英特尔支持超线程的处理器默认启用了 STIBP,防止间接分支预测器的跨线程控制。

针对此事,Linus Torvalds 感到惊讶,他在邮件列表中表示自己在讨论列表中居然没有看到任何关于会影响性能的字眼。当在某些负载下性能下降 50% 时,应该先反问是否值得,而不是不管不顾。

This was marked for stable, and honestly, nowhere in the discussion did I see any mention of just *how* bad the performance impact of this was.

When performance goes down by 50% on some loads, people need to start asking themselves whether it was worth it. It's apparently better to just disable SMT entirely, which is what security-conscious people do anyway.

So why do that STIBP slow-down by default when the people who *really* care already disabled SMT?

I think we should use the same logic as for L1TF: we default to something that doesn't kill performance. Warn once about it, and let the crazy people say "I'd rather take a 50% performance hit than worry about a theoretical issue".

—— Linus

他补充道,“我不认为代码需要还原,但是无条件启用 STIBP 的‘行为’需要更正。因为这付出的代价显然比你们之前告知的更大。 ” 

来自 Intel 的 Linux 资深人士 Arjan van de Ven 也表示,“在文档中,AMD 官方已有建议不要默认这样做,我可以代表 Intel 说我们的立场也是如此。”

相关链接


酷毙

雷人

鲜花

鸡蛋

漂亮
  • 快毕业了,没工作经验,
    找份工作好难啊?
    赶紧去人才芯片公司磨练吧!!

最新评论

关于LUPA|人才芯片工程|人才招聘|LUPA认证|LUPA教育|LUPA开源社区 ( 浙B2-20090187 浙公网安备 33010602006705号   

返回顶部