News for hackers. Stuff that matters.
Re:Bisected: The Unfortunate Reason Linux 4.20 Is Running Sl... by vbezhenar on Saturday November 17, 2018 @02:19PM (#18476914)
Probably you'll lose more performance.
Re:Bisected: The Unfortunate Reason Linux 4.20 Is Running Sl... by drb91 on Saturday November 17, 2018 @02:28PM (#18476945)
As always, this depends on your workload.
Re:Bisected: The Unfortunate Reason Linux 4.20 Is Running Sl... by azahk on Saturday November 17, 2018 @02:32PM (#18476957)
As of today still most of the software I use seems to get stuck in one core of my CPU when calculating stuff so I'd argue that by enabling HT I'm losing performance.
Re:Bisected: The Unfortunate Reason Linux 4.20 Is Running Sl... by vbezhenar on Saturday November 17, 2018 @02:46PM (#18477015)
That's not really clear from the article, but I suspect that performance drop is from multithreaded software. And sure, if you are observing performance degradation with hyper-threading, there's 0 reason to keep it enabled. OpenBSD guys suggest to turn it off after all.
Re:Bisected: The Unfortunate Reason Linux 4.20 Is Running Sl... by hermanradtke on Saturday November 17, 2018 @03:10PM (#18477124)
The article claims a 30% perf slowdown with PHP. The majority of PHP workloads are single threaded. That causes me to suspect this impacts single core workloads too.
Re:Bisected: The Unfortunate Reason Linux 4.20 Is Running Sl... by bonzini on Saturday November 17, 2018 @03:32PM (#18477235)
Yes, on some processors basically it's as if all userspace was recompiled to use retpolines. Enabling STIBP promises that one thread cannot influence the indirect branch predictor's operation when the sibling runs; on those processors the indirect branch predictor is completely disabled, which is an inefficient but valid way to implement STIBP semantics.
Re:Bisected: The Unfortunate Reason Linux 4.20 Is Running Sl... by monocasa on Sunday November 18, 2018 @12:29AM (#18479000)
That's interesting. 30% is generally the back of the envelope number for what hyperthreads get you in a OoOE core.