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?
watercast 4 hours ago [-]
They usually do if anyone proposes a better link.
altairprime 4 hours ago [-]
(And also emails them.)
j45 37 minutes ago [-]
That's a bot waiting to happen.
altairprime 32 minutes ago [-]
They would take offense at that, I think. Look up the thousand-comment “words written at HN should be handcrafted by humans” guideline change post and consider how poorly-received it could be for a non-human to be emailing them.
bfrog 4 hours ago [-]
What isn't AI slop now
JoshTriplett 4 hours ago [-]
Quite a lot of things.
bfrog 3 hours ago [-]
Unfortunately google only seems to find AI slop now, youtube seems to be a dumping ground of this stuff, and I see software and github have become overrun with bots sending PRs for a few over whelmed and ever decreasing number of humans to review due to corporate cuts from managers who feel AI will make things cheaper.
The best course of action seems to become more like the Amish. Technology that does not improve our lives should not be part of our lives. Unfortunately for all of us the internet and the content it holds has no way easy way of differentiating the two it seems so we are on a enshittification trajectory of the entire Internet.
vzmax 2 hours ago [-]
I've found that LLMs really prefer LLM writing over human writing. Companies using LLM rankings will end up promoting LLM writing.
gunalx 20 minutes ago [-]
Its lower perplexity. Makes sense.
allenrb 2 hours ago [-]
I find this increasingly true. As someone who grew up loving technology and the constant advance thereof, I never expected to look at the Amish and think they’re on to something.
Eddy_Viscosity2 3 hours ago [-]
While this is and will remain true. The number of AI slop things is growing at a far faster rate. The proportion is skewing to slop every day.
> when Hyper-Threading is enabled, one logical thread may experience delayed instruction execution. This delay occurs when the other thread on the same core executes long-latency instructions under certain microarchitectural conditions.
I thought the whole thing about hyperthreading was that the core could only be used if the needed functionality was actively unused. If the core is busy, then I don't see the bug. If anything, wouldn't this be a bad scheduler putting mismatched tasks together on the same core?
mahboi 1 hours ago [-]
The core isn't really busy, it's waiting on something else
hyperman1 3 hours ago [-]
I understand a long-latency instruction something like an uncached read. Hyperhread A starts the read, and while waiting on a result, Hyperthread B gets to control the core until the response arrives.
I think this mechanism fails under specific conditions, so B can't run while A sits twiddling its thumbs, and now nobody makes progress until the read is done.
This makes this report useless in practice: Everything depends on the specific conditions, and intel won't say what they are, so you don't know what to avoid.
dspillett 3 hours ago [-]
Some reports are making this out to be more serious than it seems to be, as if it is another of the long line of recent security issues, and Intel not releasing more details playa into this. Really, it seems to be a performance problem rather than a security one, unless the performance issue is only one of multiple side effects (perhaps the hung state somehow allowing inference of what the other processis working on? or allows cache corruption to push unexpected into the other thread's path?).
CoastalCoder 9 hours ago [-]
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.
adrian_b 5 hours ago [-]
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.
TacticalCoder 4 hours ago [-]
[dead]
dofm 8 hours ago [-]
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)
Almondsetat 8 hours ago [-]
Engineers in other fields use debacles and incidents from a century ago to avoid repeating them, why would making processors be any different?
Someone 6 hours ago [-]
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)
hnlmorg 8 hours ago [-]
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.
heisenbit 7 hours ago [-]
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.
mschuster91 7 hours ago [-]
> 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.
dofm 8 hours ago [-]
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
Sharlin 8 hours ago [-]
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.
dspillett 3 hours ago [-]
> 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
It hit the public notice so much largely because it was the first major CPU bug that was found after CPUs started being directly marketed at the general public, and it was something people could see easily & reliably with no special skills (just follow some instructions to run a calc in Excel).
atmavatar 2 hours ago [-]
It also had some catchy memes/jokes to go with it.
Don't divide, Intel inside
Q: Why didn't Intel call the Pentium the 586?
A: Because they added 486 and 100 on the first Pentium and got 585.999983605.
At Intel, Quality is Job 0.99989960954
We are Pentium of Borg.
Division is futile.
You will be approximated.
formerly_proven 7 hours ago [-]
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.
adrian_b 5 hours ago [-]
I remember very well gcc crashing Zen 1, because AMD made me loose with that almost EUR 1000.
I pre-ordered the best Ryzen, one of the best motherboards for it and 64 GB of ECC memory.
After discovering that under Linux the Ryzen was unusable garbage, I dumped it together with the motherboard and I bought an Intel Kaby Lake Xeon and a motherboard for it. From the Ryzen fiasco I could keep only the 64 GB of ECC memory, but at that time memory was cheap, unlike today.
Nonetheless, I did not keep a grunge against AMD for my financial loss, and after the launch of Zen 2 I had to buy only AMD CPUs, because after every launch of new Intel CPUs, they were never cheap enough to justify their inferior performance (my needs are biased towards high multi-threaded performance, where starting with Zen 2 AMD was always better).
AMD has never given an adequate explanation of the Zen 1 bug, even if eventually, after a lot of delays, they accepted to replace the CPUs upon request, but I did not attempt to use that, because sending the CPU from Europe to AMD was costly and there was no clear guarantee that the replacement CPU will not also be buggy.
guardiandemon 5 hours ago [-]
Considering the complexity at nanoscale I'm surprised they work at all!
bobmcnamara 4 hours ago [-]
I'd rather manufacturers take the time to do it well rather than the never ending stream of defects
chiph 5 hours ago [-]
It would be interesting to compare defect count against transistor count. Is the defect rate proportional?
adrian_b 4 hours ago [-]
Modern CPUs have slightly longer lists of bugs than old CPUs, but the difference is much less than it would be if the number of defects were proportional with the transistor counts.
Moreover, unlike with old CPUs, with new CPUs it is hard to know the real number of transistors per CPU core, because even when the manufacturer mentions a number, it usually includes the associated cache memories, which have many more transistors than the CPU core, while having much less defects per transistor, due to their simple and regular structure.
quotemstr 8 hours ago [-]
The energy in tech right now is anti-Kerckhoff, anti-liberal (lowercase l), and anti-candor.
dofm 8 hours ago [-]
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.
solyin 7 hours ago [-]
737 MAX not rate in your book? Therac 25 was in 1986!
dofm 5 hours ago [-]
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.
bonzini 2 hours ago [-]
737 MAX is not really a software failure. Boeing's attempt at hiding MCAS to ensure that the MAX shared type rating with previous 737s, for example by avoiding any mention in the manuals, is not related to software.
On top of that, they added injury to insult (sic) by not providing redundant AoA sensors; but even that is more related to bean counting than to software issues.
chuckadams 3 hours ago [-]
Theranos's issue was that their hardware never worked in the first place. And the worst it could have done was produce wrong test results -- which can certainly be dangerous, but it's not literal death rays like the Therac-25.
Blackthorn 4 hours ago [-]
Intel still owns me at least $75 for the 13th gen issue they refused to acknowledge, before finally releasing a microcode patch that turns my processor into one that cost $75 less. Candor about processor issues is a complete lie.
Incidentally, I've never purchased another Intel product since then.
5 hours ago [-]
bobmcnamara 4 hours ago [-]
Candor, now that Intel isn't accountable for defective product.
The real serious issues seem to start around page 17 -- these are necessary reading for anyone who is going to invest heavily in these CPU's, i.e., owners/investors of datacenters and tech CEO's that are heavily vested in cloud/datacenter infrastructures, etc., etc.
While some or even most of these issues may not be all that severe in their scope or implications -- what's scary about this document is the overwhelming quantity of issues that are flagged as "no fix" -- as it would take only one severe unfixed/unpatched one of them to lead to yet another future security "rabbit-hole" nightmare...
What's the old proverbial saying?
"A chain is only as strong as its weakest link..." ?
Anyway, a must-read for any datacenter/cloud CEO/owner/investor and a must read for any tech CEO whose products/services rely on datacenter/cloud infrastructures...
A very important document for early awareness of potential future problems!
bobmcnamara 4 hours ago [-]
> The flaw causes one logical thread to delay instruction execution on another thread sharing the same physical core when long-latency instructions are executed under certain microarchitectural conditions
I wonder if certain microarchitectural conditions is something terrible, like a delay occurs when my instruction's register shares a byte with the other core's crypto key regs. Intel has always been cagey about this stuff - time to find the errata.
EDIT: this is the text from the errata, so 50/50. Could be a few missing cycles or something awful like "nobody needs division to be accurate"
mgaunard 7 hours ago [-]
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?
adrian_b 4 hours ago [-]
Hyperthreading is a marketing term used by Intel instead of its traditional name, which is "Simultaneous Multi-Threading" (SMT).
Th "simultaneous" in the name means that in every clock cycle both threads are running.
The execution units and many other components are shared competitively, e.g. one integer multiplier is occupied in each clock cycle by a multiplication instruction coming from one of the two threads. This will stall the other thread only in the very unlikely event when only multiplication instructions are waiting to be executed and there is no other free integer multiplier.
The description of the bug implies that there are some instructions with a long execution duration, e.g. integer divisions, which stall the other thread even if the other thread is not waiting to execute that kind of instruction, but it could use other execution units.
As noted in TFA, there are no details about which are the circumstances when this can happen.
In any case, according to the description this is a benign bug, because its only effect should be that a program may be slower than expected, though probably with a specially crafted program the effect could be great. For instance, assuming that the offending instruction is an integer division, perhaps with a special program containing a long string of divisions you could block completely the progress of another process that is executed on the same core.
mrklol 7 hours ago [-]
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.
ajasmin 5 hours ago [-]
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...
pamcake 8 hours ago [-]
Mentioned affected series: Alder Lake (Gen12), Raptor Lake (Gen13), Meteor Lake (Intel Core Ultra Gen1), select Core Ultra 200U processors (ARL080).
moffkalast 7 hours ago [-]
"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."
happycube 5 hours ago [-]
It wasn't Alder Lake MAX's (original) fault. This time.
5 hours ago [-]
nukanse 2 hours ago [-]
There should be a cpu instruction for detecting a waiting state.
For example, you may have an expensive function that is tabulated, so you fetch the table from memory. So you make a loop and code "if idle, execute function, else read the lookup table"
gertop 14 minutes ago [-]
You're trying to project high level concepts onto how a cpu works internally. But a stall is at most nanoseconds long, it's utterly pointless to act on it from userspace.
And how would your hypothetical wait detection even run if the cpu is already waiting/blocking for something else to finish?
Detecting stalled program threads is useful and sounds like what you really want to do. Detecting stalled cpu threads is not.
amelius 1 hours ago [-]
Doesn't the multithreading machinery already do this? If one thread is waiting, another is woken up.
nukanse 43 minutes ago [-]
But the programmer can't detect and use it. The flag should exist, to be used for multi threading, but is not exposed to coders as an instruction.
Also there are different reasons for stallings. I'm interested on the "waiting for cache" one.
amelius 23 minutes ago [-]
But it sounds like it can also be used for side-channel attacks.
pjmlp 6 hours ago [-]
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.
gsliepen 6 hours ago [-]
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.
bob1029 41 minutes ago [-]
Waiting on memory is the #1 reason for this abstraction. You can execute hundreds of cycles before getting a single byte back from DRAM.
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.
toast0 4 hours ago [-]
Hyperthreading's effectiveness really depends on your workload.
Since 2010, a lot more workloads got better at running over more threads (better locking, better balancing across threads, some computations broken up across threads that weren't before) because core counts have gone way up.
CPUs have gotten better at it too, there's less fixed sharing and more dynamic sharing. Used to be if hyperthreading was enabled, L1 caches would be partitioned in half, even if there was only one thread running; same with some other resources. That's how you got really bad performance penalties for unsuitable workloads.
In my recollection, somewhere around 2015, I think it flipped from 'you probably don't want smt enabled (outside of single core), unless you've tested and it's better' to 'you probably want smt enabled, unless you've tested and it's worse'
There's always been workloads that are much better one way or the other, but most workloads are about the same or better with smt these days.
adrian_b 4 hours ago [-]
Whether an application gains or loses from SMT depends on what is does.
As a general rule, when there are multiple threads inside a single process, which do the same kind of thing, for example when they process some array and each thread works on some part of that array, enabling SMT frequently degrades the performance, because the threads compete for the same execution units and for the limited space in the cache memory.
On the other hand, when each hardware thread executes a distinct process, which does things uncorrelated with the others, enabling SMT frequently improves the performance.
Typical cases when SMT is beneficial are servers accessed simultaneously by many clients, and compiling a big software project, with hundreds or thousands of files.
For me, compiling big software projects is the main thing that is seriously accelerated by SMT, while some CAD/EDA simulations may be slowed down by SMT.
An interesting fact is that there is a traditional advice than says that when compiling on a multi-core or multi-threaded CPU with N threads, it is optimum to set the number of parallel compilation jobs to N+1.
I have verified that this old advice is correct for multi-core CPUs without SMT or with SMT disabled. On the other hand, if you enable SMT on a CPU with N cores, the optimum number of parallel compilation jobs becomes 2*N, not 2*N+1. For instance, on a 16-core CPU, the optimum number of parallel compilation jobs is 17 with SMT disabled and 32 with SMT enabled.
This result is not very surprising, because every additional parallel job introduces overhead, but without SMT an extra thread is useful, because whenever a running thread is stalled, typically waiting for a file to be read, the extra thread can start running instantly. On the other hand, with SMT enabled, there is no need for an extra thread, because whenever one thread is stalled, its sibling thread is accelerated instantly by using the whole core, instead of sharing it.
ls65536 5 hours ago [-]
It can often still be worthwhile to keep SMT enabled (if available), and very often it is for many general use cases, but it definitely depends on the workload.
Modern cores have become exceptionally good at extracting instruction-level parallelism from a single thread, so SMT becomes relatively less useful all else being equal. At the same time, modern cores also have much wider and more numerous internal resources where a single thread will be more likely to leave more of these resources idle (which could be useful to another simultaneously executing thread).
It seems that if you have two threads that tend to each saturate or bottleneck on the same internal CPU resources (execution resources, various buffers, caches, etc.), then SMT is more likely to reduce overall performance compared to just running a single thread at a time sequentially. But you need to measure to be sure.
As a fun anecdote, one of the best relative improvements I've seen in leaving SMT enabled (vs. disabled) was on one of the earliest (in-order!) Intel Atom CPUs. I suppose getting good ILP out of a single thread was simply not possible there, so even with the tiny execution resources available in that CPU there was still plenty to allow another thread to benefit from substantially.
swiftcoder 6 hours ago [-]
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.
ls65536 5 hours ago [-]
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.
whizzter 5 hours ago [-]
Doesn't HT help mask cache latencies if your code is very cache-unfriendly? Ie there is computing that can move forward whilst the memory system is waiting?
JoshTriplett 4 hours ago [-]
I'm less concerned about the performance impact of this, and more concerned about whether it's usable as a new side channel attack.
erdesigns 3 hours ago [-]
Exactly my thought - as LLM's get better and better at finding cracks, this could be a real security issue.
rrr_oh_man 4 hours ago [-]
That was my first thought as well
soleveloper 8 hours ago [-]
"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
rvba 6 hours ago [-]
it depends what fix this will be - and how much it impacts performance
for example disabling hyper-treading is a "fix"..
6 hours ago [-]
josteink 8 hours ago [-]
I also think we can suffix the title “, again”. ;)
j45 51 minutes ago [-]
It remains critically important to have a whole CPU to yourself.
giraffe455 6 hours ago [-]
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.
goalieca 6 hours ago [-]
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.
theandrewbailey 6 hours ago [-]
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.
bartwe 6 hours ago [-]
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.
quotemstr 8 hours ago [-]
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?
pocksuppet 8 hours ago [-]
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.
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.
quotemstr 8 hours ago [-]
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
> 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.
mort96 8 hours ago [-]
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?
Doesn't matter for single-user machines, but cloud providers might care a bit.
nraynaud 8 hours ago [-]
I wonder if that would leak crypto keys from one thread to the other.
mgaunard 7 hours ago [-]
Most of these are just slow and contended I/O.
Disappointing.
jart 5 hours ago [-]
You got an assembly instruction to take a whole minute. Wow.
9029 7 hours ago [-]
Intel says "Due to this erratum, system software may not behave as expected"
vardump 6 hours ago [-]
That's handy. You can in fact describe almost every erratum with the exact same sentence!
angry_octet 4 hours ago [-]
Anyone who relies on inter-thread isolation on hyperthreaded cores for security is living in cloud cuckoo land. If you're scheduling you should do it at the physical core level, and even then the side channels are gigabit/s.
FartyMcFarter 5 hours ago [-]
> 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?
bfrog 4 hours ago [-]
Intel as an organization is sick, very sick. What we keep seeing in the public is all the symptoms.
a012 6 hours ago [-]
After Meltdown Intel CPUs were already taking a big hit, and now this one. They deserve their downfall.
sabas123 6 hours ago [-]
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.
frou_dh 5 hours ago [-]
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!
sylware 4 hours ago [-]
Zen2 can still become stuck at low GHz, no way to unlock it unless rebooting/poweroff until it unlocks its frequencies. I suspect some buggy relationship with the temperature sensor at it happens more frequently during summer.
skullone 21 minutes ago [-]
What in the AI slop is this trash "article"
zerof1l 5 hours ago [-]
Over the last years, there have been so many software mitigations for different CPU bugs, almost all of which negatively impact performance. Makes me question the benchmarks when the new CPU comes out. Yeah, it is faster by X% on the day it is released, but in a couple of years you're lucky to get the previous generation's performance.
crostlybostly 4 hours ago [-]
At least they released that cool font a few weeks back though!
rootnod3 4 hours ago [-]
One more reason why OpenBSD disables that by default.
7 hours ago [-]
chmorgan_ 2 hours ago [-]
[dead]
lolmfaoa 8 hours ago [-]
[dead]
bdnsn 9 hours ago [-]
I doubt this is that important when it's taken them years just to find the issue.
alanfranz 8 hours ago [-]
Unless this can trigger a dos in shared environments, eg clouds.
Or unless it can be used as a covert comm channel.
thijsr 8 hours ago [-]
A shared cloud environment should run their client workloads with core scheduling enabled [1]. Otherwise, this can indeed impact other users.
Not sure because hard to find doesn't mean not important. It likely happens in corner-case situations
BlackRabbit1 8 hours ago [-]
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.
gmokki 6 hours ago [-]
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.
mort96 8 hours ago [-]
The AVX512 FUD really needs to stop.
formerly_proven 6 hours ago [-]
"fixed with new latest generation"... like anything newer than Skylake-X (~2016).
adrian_b 4 hours ago [-]
Skylake X was followed by Cascade Lake (launched in Q2 2019) and Cooper Lake (launched in Q2 2020), which had little changes, except extra instructions for AI inference, so they were affected by the same problems.
AVX-512 was fixed, or more correctly the CPU power management was fixed, because the problem never had anything to do with AVX-512, but only with the poor Intel power management which could react only too slowly to changes in power consumption, in Ice Lake (client CPU launched in Q3 2019, server CPU launched in Q2 2021).
In any AMD CPU that supports it, AVX-512 has always been a very big win, despite the fact that in AMD CPUs, unlike in Intel CPUs, 256-bit instructions and 512-bit instructions use the same execution units (because AVX-512 is a better instruction set than AVX; in the older Intel CPUs the 512-bit instructions can use additional execution units, which stay idle when 256-bit instructions are executed).
mort96 5 hours ago [-]
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.
ethin 3 hours ago [-]
This is what I see on my TigerLake processor, AVX-512 is always faster when I profile than AVX-2. And a lot of the code in one of my projects is complex audio DSP so is sensitive to performance quirks and stuff (which I've done my best to minimize but given what that project is trying to do that turns out to be incredible difficult without losing quality).
Should mods replace these kinds of links?
The best course of action seems to become more like the Amish. Technology that does not improve our lives should not be part of our lives. Unfortunately for all of us the internet and the content it holds has no way easy way of differentiating the two it seems so we are on a enshittification trajectory of the entire Internet.
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...
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-...
I thought the whole thing about hyperthreading was that the core could only be used if the needed functionality was actively unused. If the core is busy, then I don't see the bug. If anything, wouldn't this be a bad scheduler putting mismatched tasks together on the same core?
I think this mechanism fails under specific conditions, so B can't run while A sits twiddling its thumbs, and now nobody makes progress until the read is done.
This makes this report useless in practice: Everything depends on the specific conditions, and intel won't say what they are, so you don't know what to avoid.
This seems at odds with that.
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.
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)
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)
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.
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.
Watch some Cy Porter on Youtube. Holy shit it's insane what builders try to get away with it.
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
It hit the public notice so much largely because it was the first major CPU bug that was found after CPUs started being directly marketed at the general public, and it was something people could see easily & reliably with no special skills (just follow some instructions to run a calc in Excel).
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.
I pre-ordered the best Ryzen, one of the best motherboards for it and 64 GB of ECC memory.
After discovering that under Linux the Ryzen was unusable garbage, I dumped it together with the motherboard and I bought an Intel Kaby Lake Xeon and a motherboard for it. From the Ryzen fiasco I could keep only the 64 GB of ECC memory, but at that time memory was cheap, unlike today.
Nonetheless, I did not keep a grunge against AMD for my financial loss, and after the launch of Zen 2 I had to buy only AMD CPUs, because after every launch of new Intel CPUs, they were never cheap enough to justify their inferior performance (my needs are biased towards high multi-threaded performance, where starting with Zen 2 AMD was always better).
AMD has never given an adequate explanation of the Zen 1 bug, even if eventually, after a lot of delays, they accepted to replace the CPUs upon request, but I did not attempt to use that, because sending the CPU from Europe to AMD was costly and there was no clear guarantee that the replacement CPU will not also be buggy.
Moreover, unlike with old CPUs, with new CPUs it is hard to know the real number of transistors per CPU core, because even when the manufacturer mentions a number, it usually includes the associated cache memories, which have many more transistors than the CPU core, while having much less defects per transistor, due to their simple and regular structure.
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.
On top of that, they added injury to insult (sic) by not providing redundant AoA sensors; but even that is more related to bean counting than to software issues.
Incidentally, I've never purchased another Intel product since then.
The real serious issues seem to start around page 17 -- these are necessary reading for anyone who is going to invest heavily in these CPU's, i.e., owners/investors of datacenters and tech CEO's that are heavily vested in cloud/datacenter infrastructures, etc., etc.
While some or even most of these issues may not be all that severe in their scope or implications -- what's scary about this document is the overwhelming quantity of issues that are flagged as "no fix" -- as it would take only one severe unfixed/unpatched one of them to lead to yet another future security "rabbit-hole" nightmare...
What's the old proverbial saying?
"A chain is only as strong as its weakest link..." ?
Anyway, a must-read for any datacenter/cloud CEO/owner/investor and a must read for any tech CEO whose products/services rely on datacenter/cloud infrastructures...
A very important document for early awareness of potential future problems!
I wonder if certain microarchitectural conditions is something terrible, like a delay occurs when my instruction's register shares a byte with the other core's crypto key regs. Intel has always been cagey about this stuff - time to find the errata.
EDIT: this is the text from the errata, so 50/50. Could be a few missing cycles or something awful like "nobody needs division to be accurate"
Do they mean they delay it even if suitable execution ports are actually available?
Th "simultaneous" in the name means that in every clock cycle both threads are running.
The execution units and many other components are shared competitively, e.g. one integer multiplier is occupied in each clock cycle by a multiplication instruction coming from one of the two threads. This will stall the other thread only in the very unlikely event when only multiplication instructions are waiting to be executed and there is no other free integer multiplier.
The description of the bug implies that there are some instructions with a long execution duration, e.g. integer divisions, which stall the other thread even if the other thread is not waiting to execute that kind of instruction, but it could use other execution units.
As noted in TFA, there are no details about which are the circumstances when this can happen.
In any case, according to the description this is a benign bug, because its only effect should be that a program may be slower than expected, though probably with a specially crafted program the effect could be great. For instance, assuming that the offending instruction is an integer division, perhaps with a special program containing a long string of divisions you could block completely the progress of another process that is executed on the same core.
I would have tough it normal that one thread can stale another...
Raptor Lake: "Believe me, I've been asking myself the same question for four years."
For example, you may have an expensive function that is tabulated, so you fetch the table from memory. So you make a loop and code "if idle, execute function, else read the lookup table"
And how would your hypothetical wait detection even run if the cpu is already waiting/blocking for something else to finish?
Detecting stalled program threads is useful and sounds like what you really want to do. Detecting stalled cpu threads is not.
Also there are different reasons for stallings. I'm interested on the "waiting for cache" one.
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.
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.
IBM Power9 systems have SMT8 capability.
https://developer.ibm.com/articles/power9-and-smt-perf-for-d...
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.
Since 2010, a lot more workloads got better at running over more threads (better locking, better balancing across threads, some computations broken up across threads that weren't before) because core counts have gone way up.
CPUs have gotten better at it too, there's less fixed sharing and more dynamic sharing. Used to be if hyperthreading was enabled, L1 caches would be partitioned in half, even if there was only one thread running; same with some other resources. That's how you got really bad performance penalties for unsuitable workloads.
In my recollection, somewhere around 2015, I think it flipped from 'you probably don't want smt enabled (outside of single core), unless you've tested and it's better' to 'you probably want smt enabled, unless you've tested and it's worse'
There's always been workloads that are much better one way or the other, but most workloads are about the same or better with smt these days.
As a general rule, when there are multiple threads inside a single process, which do the same kind of thing, for example when they process some array and each thread works on some part of that array, enabling SMT frequently degrades the performance, because the threads compete for the same execution units and for the limited space in the cache memory.
On the other hand, when each hardware thread executes a distinct process, which does things uncorrelated with the others, enabling SMT frequently improves the performance.
Typical cases when SMT is beneficial are servers accessed simultaneously by many clients, and compiling a big software project, with hundreds or thousands of files.
For me, compiling big software projects is the main thing that is seriously accelerated by SMT, while some CAD/EDA simulations may be slowed down by SMT.
An interesting fact is that there is a traditional advice than says that when compiling on a multi-core or multi-threaded CPU with N threads, it is optimum to set the number of parallel compilation jobs to N+1.
I have verified that this old advice is correct for multi-core CPUs without SMT or with SMT disabled. On the other hand, if you enable SMT on a CPU with N cores, the optimum number of parallel compilation jobs becomes 2*N, not 2*N+1. For instance, on a 16-core CPU, the optimum number of parallel compilation jobs is 17 with SMT disabled and 32 with SMT enabled.
This result is not very surprising, because every additional parallel job introduces overhead, but without SMT an extra thread is useful, because whenever a running thread is stalled, typically waiting for a file to be read, the extra thread can start running instantly. On the other hand, with SMT enabled, there is no need for an extra thread, because whenever one thread is stalled, its sibling thread is accelerated instantly by using the whole core, instead of sharing it.
Modern cores have become exceptionally good at extracting instruction-level parallelism from a single thread, so SMT becomes relatively less useful all else being equal. At the same time, modern cores also have much wider and more numerous internal resources where a single thread will be more likely to leave more of these resources idle (which could be useful to another simultaneously executing thread).
It seems that if you have two threads that tend to each saturate or bottleneck on the same internal CPU resources (execution resources, various buffers, caches, etc.), then SMT is more likely to reduce overall performance compared to just running a single thread at a time sequentially. But you need to measure to be sure.
As a fun anecdote, one of the best relative improvements I've seen in leaving SMT enabled (vs. disabled) was on one of the earliest (in-order!) Intel Atom CPUs. I suppose getting good ILP out of a single thread was simply not possible there, so even with the tiny execution resources available in that CPU there was still plenty to allow another thread to benefit from substantially.
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.
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.
edit: Original title was:
> Intel confirms unfixable Hyper-Threading flaw in several CPUs
for example disabling hyper-treading is a "fix"..
Is this that? If so, this is a SMI break, yes?
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.
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.
But the article makes no attempt what so ever to describe the impact. What's up with that?
Doesn't matter for single-user machines, but cloud providers might care a bit.
Disappointing.
Hah. Can you imagine cloud providers instantly losing half their advertised CPU "cores" on every Intel machine?
Making fast CPUs is hard, let alone secure ones.
Or unless it can be used as a covert comm channel.
https://www.kernel.org/doc/html/latest/admin-guide/hw-vuln/c...
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.
The transfer of data from memory to CPU on the other hand caused the CPU to throttle.
AVX-512 was fixed, or more correctly the CPU power management was fixed, because the problem never had anything to do with AVX-512, but only with the poor Intel power management which could react only too slowly to changes in power consumption, in Ice Lake (client CPU launched in Q3 2019, server CPU launched in Q2 2021).
In any AMD CPU that supports it, AVX-512 has always been a very big win, despite the fact that in AMD CPUs, unlike in Intel CPUs, 256-bit instructions and 512-bit instructions use the same execution units (because AVX-512 is a better instruction set than AVX; in the older Intel CPUs the 512-bit instructions can use additional execution units, which stay idle when 256-bit instructions are executed).
Today, a 512-bit version of an algorithm will typically be significantly faster than the 256-bit version of the algorithm.