210 points · by flipbrad · 4y ago · 205 comments
"You're a consumer, you don't need error correcting memory! Only the upper class, I mean... your superiors... err.. sorry, enterprise customers need that feature. It's reserved for them, it is not for the likes of you."
Meanwhile AMD basically sells silicon by unit area. It's like buying gelato at the ice cream shop. You can ask for one scoop, two scoops, or three. You get to decide how hungry you are, that's it. There isn't a flavour with broken glass in it[1] served only to the working class stiffs, and with the glass-free gelato reserved only for the gentry.
[1] This is pretty much what a CPU without ECC is. It randomly crashes and corrupts your data. Look. Not every bite of ice cream has glass in it! There's very little glass in the ice cream. It's super rare, and Intel Pty Ltd tells you that this is an acceptable amount of risk for you to take, because you aren't as important as other people.
I use ECC RAM in systems with error counters.
Error correction is an extremely rare event, if it happens at all. This idea that non-ECC computers are crashing all the time due to memory errors isn’t true. I've also had unstable systems with ECC RAM and no error correction events, so it's not a magic bullet.
You can run something like memtest86 for days on end. You shouldn’t see any errors at all, unless your memory is bad.
The reality is that the average consumer doesn’t really want to pay the extra amount for ECC RAM. As you said, ECC has been available on AMD consumer platforms for a long time and there’s barely any uptake outside of people building servers and workstations with consumer-grade AMD CPUs.
The AMD (Consumer) ECC story isn’t perfect, either. It’s not officially supported so there’s a lot of debate around whether or not it’s actually working on certain consumer motherboards. It’s definitely not equivalent to the official ECC support of their higher-end parts.
Intel, on the other hand, actually did roll out a lot of i3 processors with full, official ECC support. These are (or were) a favorite for low-cost servers for this reason. It worked well and the support was great.
The extra cost for ECC is basically noise in the cost of a desktop system. I buy unbuffered ECC DIMMs for my AMD systems and they're basically maybe 5-10% more than a non-ECC DIMM. The SSD premium is more than that. Registered DIMMs have a higher premium mostly because they need to have additional ICs on the DIMM to handle the higher memory capacities that servers tend to support.
I really wish CPU vendors would just flat out require ECC on every system shipped. Knowing that main memory is failing would save so much time speaking as someone who has encountered DIMM failures in otherwise stable systems. Days of debugging what turns out to be a hardware issue is no fun.
I'm going to claim it wasn't entirely my fault. ARCnet did automatic resends for you so if fixed what the CRC detected, and silently what it didn't detect through. I had no idea the errors were happening.
ECC is nice, but as you say I don't need fancy hardware to correct a malfunctioning RAM chip. I can do that perfectly well with a hammer. What I need is the hardware to tell when and where to deploy the hammer. Things were actually better 30 years ago - back then PC RAM had parity. It's cheap, fast and effective enough. I have no idea what went wrong.
The likelihood that a RAM error is corrupting data silently is slim, given the same corruption could affect the RAM storing the OS kernel or your application stack.
If you have bad non-ECC RAM, you will notice issues that warrant further investigation (i.e. memtest). But that assumes you're savvy enough to understand what failing memory looks like.
Where? Are you talking DDR4-3200? These are 40-50% higher than non-ECC UDIMMs. It usually gets worse as capacity increases. Additionally, there are only one or two models of 1x32GB UDIMM in production. These sticks are quite rare. You don't just go to Newegg or Amazon unless you want to pay out the arse for them. And in addition to that, ECC has worse timings which are important for Ryzen.
> Registered DIMMs have a higher premium
You have this backwards. RDIMM are common and cheaper because that's what servers generally use. UDIMM ECC cost more because, well, they barely exist as a thing.
"Studies by IBM in the 1990s suggest that computers typically experience about one cosmic-ray-induced error per 256 megabytes of RAM per month"
https://en.wikipedia.org/wiki/Cosmic_ray#Effect_on_electroni...
But these weren't just cosmic-ray-induced errors. The DIMMs with errors were far more likely to have more errors in the future, pointing to faulty memory cells.
The parent comment saying that they never see ECC errors in the wild is missing a few things:
- Server memory tends to be clocked lower than consumer memory, so errors are less frequent to begin with.
- The errors are not evenly distributed. Some memory sticks have a high error rate, others are virtually zero. There's batch-to-batch variations.
- I've done my own tests on hundreds of servers. We run burn-in tests for about 24-48 hours. About 95% have zero errors of any kind, but 5% have a high enough rate that putting them into production would be a mistake. ECC allows us to catch those bit errors instead of silently accepting them and allowing data corruption to creep in.
- I've personally had 3 different personal computers experience high memory error rates, to the point of multiple BSODs per day and data corruption. They all started off "good" and slowly turned "bad". The only reason I knew to look for memory corruption as the root cause is because of my extensive industry experience. A grandma using the same PC would have just blamed Windows for being unstable.
- Vendors like Microsoft simply ignore all crash error reports sent back by telemetry with only 1 or 2 samples, because those are virtually guaranteed to be caused by memory corruption, not programmer error. I've done similar memory dump collection and found that easily 30% of all crashes were unique in this way, suggesting that ECC memory could improve PC stability significantly.
- Suggesting that ECC memory is not needed because "good" memory doesn't need it and only "bad" memory is a problem is missing the point. All memory is bad, it's just that the bit error rates are different!
It's true that ECC will catch errors caused by cosmic rays, but in practice most memory errors are just from faulty memory. Large studies in Google datacenters showed that the errors were heavily concentrated in a small number of DIMMs: http://www.cs.toronto.edu/~bianca/papers/sigmetrics09.pdf
The catch is that you don't really know if you have one of these faulty memory sticks. I always run memtest86 overnight to check for obviously faulty memory, but some of these errors could take months to manifest.
I had a laptop with a RAM cell that failed. It would show up in memtest86 in a matter of minutes, yet surprisingly I didn't notice the issue for a very long time in day to day usage. I always wonder if there were random bit flips in anything I worked with during that period, but I'll never know.
With ECC, it's just one less thing to worry about.
Without ECC any of the above will crash an app, or even the entire machine. With ECC you'll get a log message, and if it's a single bit error it will be automatically repaired. If it's not fixable and it's in userspace that application is killed (and the kernel logs the error), if it's in kernel space the kernel will panic.
So generally it makes your machine more reliable, and easier to debug. Generally repeated errors are a fault of some kind and you can easily tell which dimm it is. Without ECC you end up troubleshooting all causes of crashes, and even if you know it's memory, you can't be sure which dimm it is.
So I think it's well worth the minimal premium to make your machine more reliable, and if it's unreliable it's much easier to track and fix the problem.
Amusingly without ECC heavy CPU use with parallel gcc compiles causes a particular error. Not sure if it's in the FAQ, but it's well know that the particular error means you have a CPU/RAM problem, common with memory errors, CPUs that are too hot, or overclocked CPUs.
There are some bugs that get raised on linux once every few years that are so obscure they are suspected to be random memory errors.
your systems must all be running at sea level.
Just about every company in the world that sells things (including AMD) engages in market segmentation.
A classic - https://www.joelonsoftware.com/2004/12/15/camels-and-rubber-...
It has nothing to do with the "class of person" -- that whole notion seems pejorative in this context -- but maximizing how much you can extract in the aggregate.
In the case of Intel, for years (decades?) they were their own primary competitor. They wanted to be sure that for a given customer they could extract the maximum amount possible, and they did this by gating some features (ECC, AVX, etc) to try to avoid business customers deciding to get by on "lesser" processors. And the simple truth is that the overwhelming bulk of consumer products will never, ever have an ECC relevant error event, which is how businesses managed to get by without it.
AMD does the same thing too. Ryzen APUs don't have (even unofficial) ECC support, except if you pony up for a Ryzen Pro one.
(and so do many other SoC providers...)
I've been expecting them to just simplify to a core count/memory channel/socket matrix for a while because they are so close. There really isn't any reason these days to segment by frequency beyond maybe a couple golden parts where all the cores run at the peak frequency.
For Ryzen CPUs (ones without an iGPU), they don't fuse it off, and as such it can unofficially work.
For Ryzen APUs (parts with an iGPU), they fuse it off, and as such it will never work there.
My PC doesn't have ECC memory and it isn't crashing and corrupting my data. I think you are vastly over exaggerating.
Generally by the time you see actual program crashes or notice data corruption your system is really good and screwed. That is part of why people in the know are so afraid of RAM corruption. It can be persisted and exist silently for a very long time before someone tries reading some file/transaction that was corrupted during a write years back, or the database suddenly starts crashing after it updates some index as part of a GC pass/whatever, while the actual bug/HW failure will never be reproduced.
Problem is if you start having unreliable hardware it could be any component of your system. ECC memory helps track down a class of errors that could be in the ram chip, dimm, dimm socket, motherboard, CPU socket, or CPU.
My desktop cost another $100 or so because I got a E3-1230 xeon instead of the similar clocked i7. I bought it in 2015 and it's been fast, and reliable. Sure I might manage 6 month uptimes anyways, but I also might track down a dimm problem in hours instead of weeks.
https://nyctomachia.wordpress.com/2018/09/02/riglol-unlock-e...
https://www.makermatrix.com/blog/hacking-the-siglent-1104x-e...
..etc.
For the more common story of IBM enabling present but disabled memory, they couldn't magically teleport a new memory board into your mainframe. But they could ship your mainframe with extra, verified but disabled memory.
Customer UX for memory upgrades then changes from "Wait for it to ship, etc" to "We'll have it done tonight."
I used to run b2c teams which dealt with big banks. One bank's IT department used to bill internally for data center costs using RAM as a proxy for energy usage. A big spark cluster was purchased for the project I worked on and the minimum RAM for the spec of machine that was "standard" was 128MB, so to "save costs" they had the data center guy take out half the memory in every machine before racking it up. :-(
The batteries are backed by a warranty, which in turn is part of the cost of the car. It makes perfect sense to derate the batteries in order to lower warranty costs. Of course, we can debate whether the consumer ever saw the benefit of those lower warranty costs, but the core idea is sound enough.
As for "legal title," you have "legal title" to whatever the sales contract promised. If access to full battery capacity at the expense of service life wasn't in the contract, then you're not entitled to it.
That's definitely not how physical property works.
You bought a 60 kWh car. If it performs as advertised, you not entitled for more, no matter what hardware is inside. And if you find a way to exploit the full capacity of the battery, you can, it's yours, but don't count on Tesla to support it.
I have no problem with market segmentation. It allows more people to have access to a product while protecting the margins of the manufacturer. Because, without margins, there is no product.
And in fact, I am happy when I am traveling and the student next to me paid half of what I paid, I could afford the higher price ticket in exchange for more convenience, so no problem for me, but if the student had to pay the same price as I did, he wouldn't have been able to travel at all. I was like him years ago, and our children will probably be too.
I understand in case of Tesla you don't like the idea of hauling those extra unused cells around. But you are buying a car model with a specific mass, acceleration and range. It makes no difference whether how exactly the producer fit into those parameters.
I mean... this seems like a very good point, but from the rest of the article, and the previous one, it sounds like the patch was approved?
Why was this allowed into the kernel? looks like drivers/platform/x86/intel/* mostly. Does intel just "own" that section of code? who accepts these patches?
I'm not particularly familiar with this stuff so would appreciate someone filling me in on this.
Intel actually said, in a short snippet where The Register refers to them as "Chipzilla", "If we plan to implement these updates in future products we will provide a deeper explanation of how they are implemented at that time.". One interpretation could be they are saying they haven't figured out if they are going to implement this in anything so they just added it for fun... I'd call that the "makes a good article" interpretation. The other interpretation is they plan to use the feature but have not yet finished planning which products will use it to unlock what and will talk about it in more detailed once planned, I'd call that the "corporatespeak decoded version". If you were a literal interpretation bot I would still say the corporatespeak version fits better than the article filler version hence why the extrapolations with that version don't match up to what is happening.
> Why was this allowed into the kernel? looks like drivers/platform/x86/intel/* mostly. Does intel just "own" that section of code? who accepts these patches?
I didn't look if it was actually accepted yet or just a proposed patchset but generally Intel will be the maintainers for Intel code (but not always) and they are one of the larger contributors to the kernel overall. You can see more details about maintainers and reviewers (as well as maintainers for sections of code) here https://www.kernel.org/doc/linux/MAINTAINERS#:~:text=One%20j....
It seems that a lot of the changes in the patchset are in the intel pmt driver, which is maintained by the author of the patch, so that makes sense why the maintainer included it.
And you can search the mailing list[2] by commit hash/author name/etc and look at relevant discussion trees to see lively patch discussion and criticism/final pull requests/etc.
I don't believe the changes in question have been merged.
[1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/lin...
It could run in slow-mode or fast-mode. Always-on fast-mode cost more per month than slow-mode. (Yes, these machines were leased, not sold.) However, you could get "fast-mode" on an as-needed/hourly-basis, for a "small" fee of course.
ACPI allows random x86 board vendors to literally have hundreds of products themselves that not only boot linux, but a pile of other OS's because they aren't wasting their time writing drivers for every single board and voltage regulator.
So, call it shitty, but understand that its the reason you can boot a single linux image on everything from an atomicPi, to HP superdome flex, and the thousands of desktops/etc being customized by people in their bedrooms.
Its also largely the reason why linux works on 20 year old PC's that no one is actually testing on anymore.
The alternative is a monoculture where the HW is basically provided by a single vendor that doesn't change much and provides a half dozen supported configurations. I would point to the zseries here because that is effectively how it works, but it also has a huge hw/firmware abstract machine that allows IBM to change the underlying HW details without having to rewrite all this low value garbage.
There's literally tens of thousands of devices for the PC platform and Linux has no problem supporting them if the hardware can be documented. Why can't the vendor document that instead of hiding this stuff behind opaque binary blobs that can have security vulnerabilities? Whether this is ARM or x86 doesn't matter.
> ACPI OTOH allows random x86 board vendors to literally have hundreds of products themselves that not only boot linux, but a pile of other OS's because they aren't wasting their time writing drivers for every single board and voltage regulator.
I'm parsing this as "ACPI OTOH allows random x86 board vendors to develop shitty hardware, cut corners on documenting it, and not care as long as Microsoft OS's boot on it."
> they aren't wasting their time writing drivers for every single board and voltage regulator.
Document the damn registers and hardware interfaces and then someone out there will write it for them.
> Its also largely the reason why linux works on 20 year old PC's that no one is actually testing on anymore.
Well Linux still supports hardware that predates ACPI, like floppy drives, so this is making a connection where there is none.
> The alternative is a monoculture where the HW is basically provided by a single vendor that doesn't change much and provides a half dozen supported configurations.
Wrong. Before ACPI, for example, there were many chipset vendors--Opti, VIA, etc. ACPI didn't kill these off but there wasn't a monoculture before ACPI.
> I would point to the zseries here
So ... do we want an IBM-mainframe like monoculture where you have to depend on IBM when the hardware changes?
> allows IBM to change the underlying HW details
The job of abstracting the hardware details is the operating system and operating system drivers. Literally that's 50% of the reason why you have an OS in the first place is to abstract I/O into things like open(), read(), write() or other interfaces that are portable because of underlying drivers. If the hardware is so different that existing I/O calls can't handle it, you need to develop new ones - that's what happened with Berkely sockets - NICs are not block or character devices.
If the drivers are open source then they are bug-correctable and useable even well after the hardware manufacturer goes away. Embedding that in closed-source platform-firmware makes you dependent on that platform manufacturer. A strong contributor to the Wintel monopoly.
Intel Software Defined Silicon: additional CPU features after license activation
TPM and SecureBoot came directly from large customers requesting exactly that.
HN (and more broadly, PC users) aren't all of the market for CPUs.
Secure boot was mostly just a toy until Google implemented it in Chromebooks and the large customers you speak of pointed and said "I want that!"
I do not really believe this is their intent thought: people are way too much continuing to act like mean 5% better perf on arbitrary benchmarks has any significance (even regardless of power consumption). So Intel will likely continue to ship broken but allegedly fast processors, and will continue to kill the perfs to remove the bugs once they sold enough.
Plus, in a competitive market, it would be an equilibrium hard to achieve if competitors are not making pay for their own deferred enablement.
Hmmm. Intel has built whole ISAs that no one asked for and didn’t want.
Some good ideas work. Some good ideas don't. Doesn't mean they were bad ideas, only that unknown at the time factors or future developments made them bad ideas.
This was never popular with the Free Software crowd, who believe in the principle that the owner of the hardware has the right to do whatever they like with it. They would say you have the right to flip the secret switch yourself.
This is the same idea, but updated for the 21st century. My laptop came with hardware support for virtual machines - In a few years time, perhaps features like hardware-accelerated virtual machine support will be separately licensed premium features, instead of being stock features.
Some companies already do this - for example, some Teslas have autopilot and long range batteries, but they're disabled in software. And if you buy a Tesla with those features second-hand, Tesla can disable them until you pay them.
Everything I've seen says this is not the case. As I understand it, the story in the news about "something like this" was misleading. The car went through a dealer and was sold certified pre-owned; and it was sold as not having those features. It turns out they forgot the disable those features. I you buy one from a third party that already paid for the feature, it stays with the car.
At least, that's the understanding I was left with.
Was the car sold to its original owner with those features enabled? If so, it's effectively the same as the original story reported, meaning that Tesla expected to be paid twice for the feature.
So what prevented you from finding and flipping the secret switch yourself? Or is it that merely being a business you couldn't afford to take this risk and lose IBM support?
You don't want to get letters from Oracle, IBM, Intel and Co. because you infringed some of their EULAs. They may be invalid, but it will be a very costly decade long court case. And the other part will pump thousands of times more money into it than you can afford, because when they loose they will loose a big income stream in the future.
It's the opposite of being capable - it's silicon that refuses to play to it's full capacity lest you buy an additional license.
It's like we are going backward in progress.
Somehow nobody shed a tear for the poor enterprise customers until miners came along. But that's what it is, miners are enterprise customers, they use them to make a profit.
Similarly, almost all R5 consumer processors are made by artificially disabling fully functional cores on R7 chiplets. AMD already had nearly 80% of the chips coming off the line with 8 functional cores at Zen2 launch, and numbers have only gotten better since there. Yeah, maybe a few fail clock bins or other things, but those bins are chosen very loosely such that they're not throwing away any significant amount of chips anyway. The overwhelming majority of R5s are perfectly good chips being gimped and sold as lower chips, because the availability and demand are exactly opposite of each other - they have the highest availability of 8-core chiplets and the highest demand for 4- and 6-core chiplets. How do you square the two? Not by lowering prices of your high-margin products - you keep those high to extract the maximum price from price-insensitive consumers, and you artificially gimp a bunch of them for the rest of the market to protect your profits in the higher segment.
https://en.wikipedia.org/wiki/Price_discrimination
The thing to remember is that home users are almost always the beneficiary of market segmentation, because we are the most price sensitive. The alternative to Core-vs-Xeon-E segmentation isn't that everyone gets Xeons at i5 pricing, it's that the i5 now costs almost as much as a Xeon. The R&D has to be paid back one way or another, or else R&D will be significantly reduced (most likely meaning much longer product generations and slower moves to new nodes, etc). Price discrimination means enterprise customers pay more than their share and home customers pay less than their share, so if market segmentation goes away and those equalize then home customers will have to bear more of their fair share of the product cost.
Again, who wants to race to pay more for their gaming graphics card so that Boeing and cryptominers can pay less? It would be great if everything were free, or priced at its true cost, but in the real world R&D needs to be paid for somehow.
Oh, and the other thing is Enterprise customers actually love this, it's called Capacity on Demand and I'm sure the reason Intel is doing this is because their customers keep asking for it. Sun, Oracle, Fujitsu, IBM - all the big enteprise vendors will sell you a machine with a bunch of cpu and memory that you're not allowed to use or touch! But if your workload scales up, instead of having to shut down your mainframe to upgrade it, you can just pay money and turn the cores on! And sure, it would be nice if all software were just microservices that you could re-instantiate onto another machine, but some stuff (like databases) can't be trivially scaled and partitioning (read: stale data reads) can't be tolerated. The only surefire answer to CAP theorem is One Big Machine such that you never have to deal with splits in the first plac, and that's what some situations need, and they love this.
Someone cracked it and enabled them with custom driver. (And of course nvidia patched it out in the latest vbios to make the bypass impossible).
There is the story of this on HN few month a go.
You mean, completely anonymously, and without any association of a machine to an owner?
I install software through `adb install software.apk`, or through `make`, or similar, of packages stored on drive...
I am not sure this can be the model, for this new "unlocking hardware features" scheme. Many will just say, "No "thank" you" - and I am not sure about all the practical consequences. I am even more concerned that this facilitates preparing the way for taking for granted some practice like "register after purchase to be enabled for using the product", which I am informed some already attempted.
It's really stupid that other vendors can't just do the same.
I assume you meant to be a help by assuring people their computers aren't backdoored, but I don't think you have the certainty to claim ME is sound and secure. It just reminds me of how well-meaning people insisted the USG wasn't interested in capturing everyone's communications, back before it was accepted fact, pre-Snowden.
https://www.youtube.com/watch?v=jmTwlEh8L7g This is one of many amazing videos this guy did before they hired him.
...and hardware manufacturers make money selling hardware, so why keep the details of how to use it secret? In the days of SDRAM and DDR(1) a lot of companies, including Intel, were far more open about documentation than today.
I've analysed the init code from BIOSes and it is indeed not that complicated.
Perhaps funny, but inevitable due to the lack of knowledge. Why don't you do us a solid and get us some documentation for our hardware using a cell camera?
This smells a lot like laying the groundwork for locking processor features behind a license key. Get ready for a monthly CPU license plan...
On the other hand if I have no guarantee the license is valid forever and I own it, or that I can use it in any conditions not just with internet connectivity, or it's tied to the rest of the machine, or only until I want to sell my hardware, then it does become fundamentally worse.
This might be a new way to enable more flexibility for cloud providers so they can customize each offering without having different sets of hardware, just a license management component. I also see this as something OEMs may be interested in, tiering otherwise identical products could be just a FW switch away, greatly simplifying logistics and manufacturing. OEMs could customize the CPUs they receive while Intel would shrink the number of SKUs. Being Intel though means none of the savings will ever reach the consumer.
If they can sell another 16 cores at no incremental cost post sale, that's attractive. As long as it doesn't prevent that customer from buying a whole new 48 core chip from them, anyway.
Chips have been known to have perfectly functioning blocks disabled, or frequency limited not for improved yields but simply because the demand for a lower end SKUs was so high. Unlocking them was a matter of penciling some fuses, flashing a firmware, or simply changing a setting in the BIOS.
If anything this kind of licensing opens the door to "hardware piracy" where under the correct conditions you may be able to hack older, or unsupported hardware to gain the full functionality.
You have to buy some stupid dongle to enable "Intel® Virtual RAID on CPU" feature, and it's like $100 or something silly.
HN cracks me up.