Phoronix 近日測(cè)試發(fā)現(xiàn),在幾乎所有低中高端英特爾處理器上,最新測(cè)試版內(nèi)核 Linux 4.20 的表現(xiàn)比最新穩(wěn)定版 4.19 有顯著的下降,而 AMD 的處理器不受影響。出現(xiàn)性能下降的原因與英特爾處理器漏洞修補(bǔ)有關(guān),4.20 的主要改變是對(duì)英特爾支持超線程的處理器默認(rèn)啟用了 STIBP,防止間接分支預(yù)測(cè)器的跨線程控制。
針對(duì)此事,Linus Torvalds 感到驚訝,他在郵件列表中表示自己在討論列表中居然沒(méi)有看到任何關(guān)于會(huì)影響性能的字眼。當(dāng)在某些負(fù)載下性能下降 50% 時(shí),應(yīng)該先反問(wèn)是否值得,而不是不管不顧。
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
他補(bǔ)充道,“我不認(rèn)為代碼需要還原,但是無(wú)條件啟用 STIBP 的‘行為’需要更正。因?yàn)檫@付出的代價(jià)顯然比你們之前告知的更大。 ”
來(lái)自 Intel 的 Linux 資深人士 Arjan van de Ven 也表示,“在文檔中,AMD 官方已有建議不要默認(rèn)這樣做,我可以代表 Intel 說(shuō)我們的立場(chǎng)也是如此。”
-
英特爾
+關(guān)注
關(guān)注
61文章
10213瀏覽量
175484 -
內(nèi)核
+關(guān)注
關(guān)注
3文章
1422瀏覽量
41655 -
Linux
+關(guān)注
關(guān)注
88文章
11535瀏覽量
214890
原文標(biāo)題:Linus 不滿內(nèi)核 4.20 性能下降
文章出處:【微信號(hào):LinuxHub,微信公眾號(hào):Linux愛(ài)好者】歡迎添加關(guān)注!文章轉(zhuǎn)載請(qǐng)注明出處。
發(fā)布評(píng)論請(qǐng)先 登錄
Linux內(nèi)核參數(shù)調(diào)優(yōu)方案
如何配置和驗(yàn)證Linux內(nèi)核參數(shù)
Linux內(nèi)核編譯失敗?移動(dòng)硬盤(pán)和虛擬機(jī)的那些事兒

樹(shù)莓派4 性能大比拼:標(biāo)準(zhǔn)Linux與實(shí)時(shí)Linux 4.19內(nèi)核的延遲測(cè)試

基于OpenSBI的linux nommu實(shí)現(xiàn)

騰訊云內(nèi)核團(tuán)隊(duì)修復(fù)Linux關(guān)鍵Bug
嵌入式學(xué)習(xí)-飛凌嵌入式ElfBoard ELF 1板卡-Linux內(nèi)核移植之內(nèi)核簡(jiǎn)介
飛凌嵌入式ElfBoard ELF 1板卡-Linux內(nèi)核移植之內(nèi)核簡(jiǎn)介
嵌入式工程師都在找的【Linux內(nèi)核調(diào)試技術(shù)】建議收藏!
Linux系統(tǒng)中shell命令解析
deepin社區(qū)亮相第19屆中國(guó)Linux內(nèi)核開(kāi)發(fā)者大會(huì)
linux內(nèi)核中通用HID觸摸驅(qū)動(dòng)

評(píng)論