This is the original article https://www.techpowerup.com/355512/intel-confirms-hyper-thre...
Indeed, what's with the recent trend of linking to zero-value AI slop summaries/regurgitations on HN when original sources are easily available?
Should mods replace these kinds of links?
Intel errata links:
https://edc.intel.com/content/www/us/en/design/ipla/software...
https://edc.intel.com/content/www/us/en/design/products/plat...
https://edc.intel.com/content/www/us/en/design/products/plat...
https://edc.intel.com/content/www/us/en/design/products/plat...
The same errata wording was previously published for these Xeon processors (earliest was June 2024):
https://edc.intel.com/content/www/us/en/design/products-and-...
https://edc.intel.com/content/www/us/en/design/products-and-...
https://edc.intel.com/content/www/us/en/design/products-and-...
IIRC, Intel's onboarding video strongly emphasized the importance of candor about processor issues, using the FDIV debacle as a case study.
This seems at odds with that.
Every Intel CPU, like every CPU made by any other company, has dozens or even hundreds of errata.
So it makes sense that they do not have a press release for each one of them.
Intel has the euphemistically named documents "Specification Update", which contain the list of bugs and workarounds. The corresponding lists of AMD bugs have also an euphemistic name: "Revision Guide".
Any developer facing low-level problems, like compiler writers, device driver writers, operating system contributors, must search and read Intel's "Specification Update" documents and AMD's "Revision Guide" documents.
Unfortunately the quality of technical documentation at all companies has been steadily degrading for more than a quarter of century, so nowadays these lists of bugs and workarounds, at least in their public versions, i.e. available without an NDA, are much more frequently incomplete or not up-to-date, than in the past.
FDIV is getting on for one entire chip developer career ago, I think?
The Pentium project started in 1989; there cannot be that many current Intel employees who were designing silicon then who are involved with silicon design now.
So most people are working from the war story, rather than the shared experience.
People begin to forget, but Chesterton's Fence pops up everywhere.
(FDIV was interesting — it seemed like everyone knew all of a sudden computers could be fallible at maths. Really random people who you would not expect to know would joke "I hope a Pentium didn't come up with these numbers!" Real tabloid stuff, first of its kind)
Engineers in other fields use debacles and incidents from a century ago to avoid repeating them, why would making processors be any different?
Other engineering projects have design errors, too. Differences with CPUs are that they often are easier to fix in the field. Cars get recalls, for example, and bridges get fixes to prevent excessive rusting or excessive vibration.
CPUs also typically are made in quantities that are rarely seen in other complex long-lived products (yes, nails and screws are made by the billions, too, but those are simpler than CPUs)
They also repeat mistakes learned recently too.
There’s a reason building regulations are often very strict: it’s because you can’t always trust businesses to do the right thing when it comes to human safety.
Repeatability is the hallmark of mature development processes.
A lot of our work is actually dealing with exceptions and corner cases and processes do have tremendous value but management often falls for the safety illusion it provides.
> There’s a reason building regulations are often very strict: it’s because you can’t always trust businesses to do the right thing when it comes to human safety.
Watch some Cy Porter on Youtube. Holy shit it's insane what builders try to get away with it.
Money and discipline. Engineers in other fields
1) are actual trained, qualified engineers, usually with liability
2) do not become billionaires six months after dropping out of their degree with a business plan sketched on the back of someone's "HAVE YOU SEEN MY DOG" flyer
To be fair I’m pretty sure Intel still employs chip designers with actual digital electronics engineering degrees, probably PhDs, even though chip design is much more like programming than it was in Pentium’s days.
CPUs have had so many issues over the past decade, from both AMD and Intel, it's not likely they've forgotten what a disaster is.
Just from the top of my head, I'm probably missing half their failures.
Intel: Intel 13th/14th gen (RPL) self-cooking CPUs (Vmin, eTVB, ...), RPL instability, RPL manufacturing defects, Atom C3000 manufacturing defect causing mass field failures, TSX being completely broken and largely removed, the Skylake Prime95 bug, Somethinglake crashing when HT is enabled, the general P/E-core compatibility fiasco and subsequent AVX512 removal from consumer lines, ...
AMD: AMD AM5 exploding CPUs and the 9000X3D fiasco, AMD SoCs with self-degrading kinks (yes daddy AXMP punish me with 1.4 V), all the Zen 1 bugs (remember GCC crashing Zen 1?), Zen 2 never managing advertised clocks/performance before being replaced with Zen 3, AM4 never having reliable USB, X570/B550 PCIe 4.0 being completely bug-ridden, the AM4 APU failures, ...
And both have a nearly infinite list of CPU security vulnerabilities, Meltdown, Spectre, then ten years of Meltdown-and-Spectre-Variations, VM escapes, though Intel is definitely leading there. Which could be because Intel gets more research attention or AMD does a better job. Anyway, in either case the fixes are usually microcode updates or kernel workarounds which usually slightly degrade performance, but the cumulative effect of slightly degrading performance 30 times in a row is a substantial degradation.
The energy in tech right now is anti-Kerckhoff, anti-liberal (lowercase l), and anti-candor.
This goes in cycles, though. We're about due another Therac-25 (which is now fully outside of a single developer career duration). Had they not been caught, perhaps Theranos would have been that scandal.
737 MAX not rate in your book? Therac 25 was in 1986!
Therac-25 was released in late 1982, and its development was from the mid-1970s onwards.
It is outside any developer's working lifetime, realistically. Even the office junior in 1982 would be in their sixties.
I imagine most of the Therac team are either long retired or no longer with us.
Isn't it what hyperthreading does by definition? Delaying the thread that shares the same core.
Do they mean they delay it even if suitable execution ports are actually available?
That is my rough understanding as well i.e. hyperthreading is feeding the execution pipeline from two threads so as to more effectively use the ALU.
I would have tough it normal that one thread can stale another...
Afaik, no. Should be using the idle ports which is rarely not the case. And if that is delayed / blocked it’s getting way slower.
actual source: https://edc.intel.com/output/DownloadPdfDocument?id=11862
Based on my experience, hyper threading was anyway a workaround until multicore became widely available, not sure how much it is still worthwhile, given the impact in shared units across the CPU.
Usually having hyperthreads killing each other's cache entries, is much worse that splitting the work across multiple real cores, with a few synchronisation points.
Hyperthreading was also a workaround for software that did all its networking by leaving hundreds (or even thousands) of OS threads blocked on IO.
As epoll/kqueue/iocp/io_uring et al have become more widely adopted, and we offload a lot more of this IO multiplexing into userspace, the value proposition gets hazier.
A thread blocked on IO gets taken off the CPU by the operating system though, so it isn't "running" as a thread on the CPU, and it isn't using up any resources in this context that might be contending with another SMT thread (other than maybe things like leftover TLB entries or cache lines that become much more likely to just get evicted soon anyway).
In some sense you can think of SMT as a lower-level resource sharing capability (of execution units and various buffers and such) inside the CPU core, which is somewhat analogous to how the operating system shares the higher-level logical CPU by timeslicing access to it across different runnable threads. The latter capability also layers on top of the former, which makes for some interesting performance implications from an operating system scheduler's point of view, but they're still different things.
Hyper-threading is a way to make better use of the execution engines of a CPU core. Some instructions stall (for example, because they need to wait for memory), so you want to run something else in the mean time. Instruction reordering and speculative execution only goes so far. If you have a completely separate thread available that can do some useful work, then you improve the overal efficiency.
Note that GPUs basically are hyper-threaded CPUs that not have just 2 or 4 threads per core, but thousands. This approach avoids needing all the complicated out-of-order circuitry, but it only works if you really have thousands of threads, which for a GPU is actually the case.
Back in 2010 I disabled hyperthreading on development machines, due to decrease in performance on Java and .NET application servers.
They were much faster using only real cores.
So maybe my experience is tainted due to the runtimes not being written in a way that they could take advantage of hyperthreading, however I have my doubts it has improved since then, unless the code is aware of being executed in hypethreads and act accordingly.
Mentioned affected series: Alder Lake (Gen12), Raptor Lake (Gen13), Meteor Lake (Intel Core Ultra Gen1), select Core Ultra 200U processors (ARL080).
"Why is it when something happens, it is always you?"
Raptor Lake: "Believe me, I've been asking myself the same question for four years."
It wasn't Alder Lake MAX's (original) fault. This time.
"Unfixable" is misleading here; a microcode update will likely mitigate it, just like most other silicon bugs.
edit: Original title was:
> Intel confirms unfixable Hyper-Threading flaw in several CPUs
it depends what fix this will be - and how much it impacts performance
for example disabling hyper-treading is a "fix"..
I also think we can suffix the title “, again”. ;)
ISTR a problem from a few months ago in which the processor could time out entering SMI across a core, allowing one thread on a core to be in SMI while the other runs user code, allowing that user thread (via other shenanigans) to explore and mutate SMI state.
Is this that? If so, this is a SMI break, yes?
To find the YouTube conference presentation I had to jump through some hoops because most attempts to Google or YouTube this bring up nothing but AI slopcopies. Here it is thanks to some random YouTube user's public playlist. https://www.youtube.com/watch?v=O43cvXUmQ80
This is Christopher Domas's talk about using slow instructions to break SMM transitions. It's more about the BIOS than the processor though. This is the same person who brought us Sandsifter, MOVfuscator, the hidden RISC mode in some obscure CPU, and the SMM memory sinkhole. I'm just noticing his slides are partially AI.
And the GitHub slow instructions list: https://github.com/xoreaxeaxeax/asm-hall-of-shame
The winning instruction took 62 seconds to execute. As far as any software can possibly tell, like the BIOS or operating system, that processor core has completely hung, disappeared, or exploded, until it suddenly and unexpectedly wakes up again a minute later.
Thanks for digging that up! And yes, I'm wondering whether the vagueness in the linked articles is about trying to dance around an unfixable SMM break
Is this site an AI generated summaries of google news and just ripping off https://www.techpowerup.com/355512/intel-confirms-hyper-thre... in this case?
Anyways both it and the techpowerup:
> The issue only affects systems with Hyper-Threading enabled; disabling Hyper-Threading is not listed as an official workaround but is suggested by some commentators as a potential mitigation.
Is an strange reading - Intel literally says it only affects systems with HT enabled.
> Although Intel does not list disabling HT as an official workaround, it seems to be the best approach to address this problem.
Hah. Can you imagine cloud providers instantly losing half their advertised CPU "cores" on every Intel machine?
Okay is this just a minor performance bug where some workloads become a tiny bit slower than they normally would? This really doesn't seem like a big deal.
But the article makes no attempt what so ever to describe the impact. What's up with that?
It's probably not "a tiny bit slower", but something like doing an instruction that locks up the sibling thread for 200 billion cycles like in https://github.com/xoreaxeaxeax/asm-hall-of-shame.
Doesn't matter for single-user machines, but cloud providers might care a bit.
I wonder if that would leak crypto keys from one thread to the other.
Most of these are just slow and contended I/O.
Disappointing.
You got an assembly instruction to take a whole minute. Wow.
Intel says "Due to this erratum, system software may not behave as expected"
That's handy. You can in fact describe almost every errata with the exact same sentence!
After Meltdown Intel CPUs were already taking a big hit, and now this one. They deserve their downfall.
Compared to which other vendor? Its not like every other x64 vendor has crazy shit in at least a couple generations.
Making fast CPUs is hard, let alone secure ones.
Yeah, the 1st generation of AMD Ryzen were defective in the initial retail batches - under heavy load they actually caused programs to segfault (https://www.phoronix.com/review/new-ryzen-fixed). I had one!
HT was always a hack and it might have had a point in early mono-core or dual-core processors, but today it is not justified as we have plenty of actual cores to spare. We have more cores than the OS or the average program can take advantage of. These hacks only add complexity and security issues now.
It was useful for not stalling the pipeline on things like a cache miss. It was more about just doing more work and keeping everything moving. This is complicated though and can slow things down when done wrong which actually leads to timing attacks and things.
IBM and Oracle CPUs do the same thing, where it's called symmetrical multi-threading. They take security very seriously, as do their users. Instead of two threads per CPU, they do like, eight. It could be a security through obscurity thing, but I think that if running multiple threads on one CPU core was inherently a security issue, of all people, they would have noticed it by now.
HT has its place, it is a handy way to process more work when waiting on more data for ram but more slots for queries remain on the memory controller. One of the ways that make gpu workloads less sensitive to ram latency.
I doubt this is that important when it's taken them years just to find the issue.
Unless this can trigger a dos in shared environments, eg clouds.
Or unless it can be used as a covert comm channel.
A shared cloud environment should run their client workloads with core scheduling enabled [1]. Otherwise, this can indeed impact other users.
https://www.kernel.org/doc/html/latest/admin-guide/hw-vuln/c...
Not sure because hard to find doesn't mean not important. It likely happens in corner-case situations
Depends.
AVX512 was also a great invention until they found out that the CPU heats up too much while using and clocking its core down because of it. Rendering other - theoretically slower calculation paths - more efficient.
Issue is fixed with new latest generation of CPUs. But back then it needed a Compiler fix avoiding these instructions.
I think it was chipsandcheese article that showed that modern AMD processors can not be overheated with avx512 instructions.
The transfer of data from memory to CPU on the other hand caused the CPU to throttle.
The AVX512 FUD really needs to stop.
"fixed with new latest generation"... like anything newer than Skylake-X (~2016).
I mean we're talking about one architecture from a decade ago where there were some workloads which got slower from AVX-512, right?
Today, a 512-bit version of an algorithm will typically be significantly faster than the 256-bit version of the algorithm.