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

来源: 投稿
作者: 王练
2018-11-21 08:17:04

之前我们曾报道过,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 说我们的立场也是如此。”

展开阅读全文
点击加入讨论🔥(16) 发布并加入讨论🔥
本篇精彩评论
缺了大神Linus Torvalds,还真是一棒子乌合之众。
大神Linus Torvalds一定要继续把控方向。
2018-11-21 09:08
21
举报
也许 linus 最后实现里一个 ai ,固化了他的人格,继续管理代码。
2018-11-21 09:25
12
举报
linux一开始就不是为了安全来设计的,这也是我一直不喜欢linux,对于操作系统更倾向于 BSD 的原因。
2018-11-21 10:51
3
举报
Linus Torvalds:继(去)续(你)努(大)力(爷)
2018-11-21 08:41
3
举报

引用来自“猪头哒哒”的评论

缺了大神Linus Torvalds,还真是一棒子乌合之众。
大神Linus Torvalds一定要继续把控方向。
大哥你去了解下Linux社区啊,还真不是乌合之众。大佬太多了,都是神,只不过没有玉皇大帝这种级别的人领导而已。
2018-11-21 12:38
2
举报
16 评论
8 收藏
分享
返回顶部
顶部