309 points · by arm · 6y ago · 138 comments
SMR does not have a great reputation, to put it in drives specifically targeted for NASes and enthusiasts is a very bold move.
Classical economics likes to think of firms as rational entities working to maximize profit over the long term. In my experience that makes much of what companies do inexplicable. Instead I view firms as large groups of individuals all acting in their own self interest, this seems more complex but really all you have to know is what the incentive structure is to understand the choices a company makes. Similarly I've found you can also do this in reverse. It is a virtual certainty that from a compensation perspective moving to SMR was better for the individuals who made that choice.
Managerial and behaviour theories here:
https://en.wikipedia.org/wiki/Theory_of_the_firm
Linked to from the Economics article under the Theory section:
https://en.wikipedia.org/wiki/Economics
The theory your suggesting here has been known since at least the late 50s.
You might also be aware of, or find interesting anyway, the principal–agent problem:
https://en.wikipedia.org/wiki/Principal%E2%80%93agent_proble...
Edit: typo
SMR is fine if you know what SMR is and what you're doing. It might even be fine given a sufficiently advanced translation layer (which apparently doesn't exist yet). The problem isn't SMR, it's selling a product which uses SMR and hiding that fact from the consumer, and I can't forgive WD for that.
https://www.snia.org/sites/default/files/SDC15_presentations...
You put the journal and metadata on the continuous part and data on the shingled part, making sure you only ever add to what was written previously in a shingled segment by using copy-on-write. And sporadically you reclaim a segment.
This should be much more efficient than a block layer translation layer that knows nothing about the filesystem.
Will my hard drive's workload ever resemble that of a NAS RAID rebuild? Or will there be another workload which breaks SMR drives?
Key here is that workloads change, and weird issues like this one lead to compounding failures in emergencies. A system might have an SMR-friendly workload during it's normal operations, but during a cyberattack? When debugging an outage? It's impossible to predict what I'll be doing when the unexpected comes up.
Above all else, I want my storage medium to be reliable and to not have issues like this. It's clear SMR drives aren't there yet.
Yes, if there was a sufficiently advanced translation layer, or the right abstractions to the OS, SMR might be fine. But the present state-of-the-art of SMR technology is very obviously unsuitable for any application where you care about your data.
I'll mention early SSDs were in a similar state many years ago, with wear leveling algorithms. But there was a difference in the level of transparency there.
Apparently f2fs does well with it?
Eventually someone listens to that person, and decades of painstakingly built-up brand value gets thrown out the window in order to bring home six nickels tomorrow instead of five.
I suspect Blue and Red drive have a lot of common in manufacturing they switched all drives in same capacity together.
If you had 32GB of Optane and 4 TB of SMR properly tuned that would be one heck of a desktop drive, but (1) you have to really eliminate all the bottlenecks and (2) who needs a desktop drive large enough that SMR is worth it?
When that happens depending on what your doing, the drive might just get kicked from an array, or your whole system might freeze if some critical page needs to be read back in and it can't get sufficient priority and a command slot.
I guess the vast number of people won't ever write more than a buffers full of data, or the drive will never get fragmented sufficiently that even small write operations amplify into entire drive rewrites.....
Here is their conclusion:
-------- begin quote
We want to be very clear: we agree with Seagate's Greg Belloni, who stated on the company's behalf that they "do not recommend SMR for NAS applications." At absolute best, SMR disks underperform significantly in comparison to CMR disks; at their worst, they can fall flat on their face so badly that they may be mistakenly detected as failed hardware.
With that said, we can see why Western Digital believed, after what we assume was a considerable amount of laboratory testing, that their disks would be "OK" for typical NAS usage. Although obviously slower than their Ironwolf competitors, they performed adequately both for conventional RAID rebuilds and for typical day-to-day NAS file-sharing workloads.
We were genuinely impressed with how well the firmware adapted itself to most workloads—this is a clear example of RFC 1925 2.(3) in action, but the thrust does appear sufficient to the purpose. Unfortunately, it would appear that Western Digital did not test ZFS, which a substantial minority of their customer base depends upon.
These tests may not be great news for either the American or Canadian class-action lawsuits currently underway against Western Digital, but they aren't the end of the line for those lawsuits, either. Even in the best case, the SMR models of WD Red underperform their earlier, non-SMR counterparts substantially—and consumers were not given clear notice of the downgrade.
If the same firmware was being used to make substantially larger drives available to consumers than would otherwise be possible, and the limitations of those drives were adequately explained, we would probably be gushing over its utility and function. Unfortunately, Western Digital has so far only chosen to use it to cut manufacturing costs on small disks, without even passing the savings along to the consumer.
-------- end quote
That last paragraph may be key. It sounds like if these drives had been marketed a little different and priced a little different they could have been a good deal for many NAS users.
I wonder what the chances are that they were originally intended for just that, and something got mixed up or miscommunication between design and release?
[1] https://arstechnica.com/gadgets/2020/06/western-digitals-smr...
After we published our numbers, we found that it was not just ZFS, but other NAS vendors as well. People were sending us their experiences on non-ZFS systems. For example, Synology users were having issues and Synology took them off their compatible list. QNAP for its part is working on ZFS as we discuss in there as well.
The new 4 drives were the infamous 6TB EFAX. The phase 1 took 12 days, the phase 2 took 3 days. So my personal experience is radically different than Ars Technica's.
https://www.backblaze.com/blog/hard-drive-stats-q2-2019/
https://www.backblaze.com/blog/backblaze-hard-drive-stats-q1...
EDIT: For those who can't use the Internet to look things up, Sandisk and G-Technology and some random thing called Upthere are all WD brands.
https://www.theverge.com/2016/5/12/11662018/western-digital-...
1000000 = 1M
Can I store just ONE byte at a time? Can I expand by singular bytes in a normal system?
For hard drives, and even flash memory, the physical size of a sector converged, rather naturally, to a multiple of system word size, and since that had also converged to a power of 2, to a larger power of 2.
Thus hard drives have sectors that were 512 bytes (4096 or '4Kbits'), and also why the smallest write available for modern drives is a multiple of 2.
Binary is the native nomenclature of computers. It only makes sense that related equipment should also use the native (binary) engineering unit approximations as a result.
Though for communications equipment, they do have variable sized packets, which even though computers generate 8 bit 'octet' based signals might technically be used by some other format that doesn't; and talking about the actual speed on the wire conveying that in maximum possible raw bit states is a tiny bit confusing when the rest are binary units, but it's less strongly wrong than a system where the lowest addressable (real) unit is binary based.
We know how well that worked out historically, right? e.g. https://en.wikipedia.org/wiki/Ounce "the international troy ounce is equal to exactly 31.1034768 grams", "The international avoirdupois ounce is defined as exactly 28.349523125 g", "A fluid ounce (abbreviated fl oz, fl. oz. or oz. fl.) is a unit of volume equal to about 28.4 ml in the imperial system or about 29.6 ml in the US system".
By not respecting the definition that kilo = 1000, you are deliberately sowing confusion and undermining the metric system as a simple, consistent, universal measurement system.
The good news is that I've basically stopped buying spinning rust, so this is more of a "well bummer" type of mood than an "oh shit I gotta scramble for a better primary vendor" mood. Even for server/NAS use I'm more likely to go for a Crucial/Kingston mix nowadays than I am for a WD/Seagate mix, both because SSDs have matured enough to be more reliable for a lot of things (less moving parts = less mechanical wear/tear and less sensitivity to vibrations¹, and with RAID a dying flash module is less of a "game over" moment - though things have gotten a lot better on this front, too) and because they perform a lot better (both in terms of speed and in terms of thermal/energy efficiency).
----
For example, consider two different 2TB cell setups:
- SSD: Crucial MX500 + Samsung 860 QVO = $473.73 on Newegg
- HDD: WD Blue WD20SPZX + Toshiba L200 = $168.57 on Newegg
On the one hand, the SSD cell is a whole 2.81× more expensive. On the other hand, the SSD cell is only 2.81× more expensive.
This narrows to 2× in the case of a 1TB (well, technically 960GB in the SSD case) cell setup:
- SSD: Crucial MX500 + Kingston A400 = $236.54 on Newegg (this is my typical setup for a RAID1)
- HDD: WD Blue WD10SPZX + Toshiba L200 = $117.13 on Newegg
Now, to be fair, this is excluding Seagate, which is stupidly cheap and would widen that gap (and historically I've bought Seagate strictly as a secondary for these sorts of "cells", but given my bad experiences with Seagate I'm inclined to ignore them and go with WD+Toshiba if possible for a given target size). It's also excluding 3.5" drives (and therefore notably excluding WD Reds entirely), which doesn't help for a 1TB cell (Seagate Cheetah NS + WD Red = $118.75) or a 2TB cell (Seagate IronWolf + WD Red = $167.74), but does help for bigger cell sizes that wouldn't be possible with 2.5" at all without major sacrifices in vendor redundancy and price (for example, a 4TB cell w/ Toshiba N300 + WD Red = $225.91, v. Samsung 860 QVO v. WD Blue = $1049.17 - even higher if I wanted to keep Kingston in the mix - or two of the above 2TB cells for only slightly cheaper).
On the other hand, this is including 5400 RPM drives; if I required 7200 RPM (as most NAS drives are) then the 1TB cell cost jumps up to $134.98 (WD Black + Seagate BarraCuda), and if I needed 10k RPM or SAS then I'd probably be springing for a WD XE WD9001BKHG + Toshiba AL13SEB900, which would bring the cell cost up even higher to $164.75 (while also losing 100GB of capacity), or even higher to $186.38 if I wanted to swap the WD for a Seagate Savvio ST9900705SS and have that 64MB of cache on both sides of the mirror (thus bringing the cost difference to a mere 1.27×). I'm also artificially keeping out a whole swath of SSD manufacturers in the above figures; never heard of "Team Group" or "Goldenfir", but if I had zero qualms about reliability I could put together a 1TB cell with those for $182.98 (on par w/ the 10k RPM cell), or for a 2TB cell I could go with a Crucial BX500 + Patriot P200 for $399.98.
----
That all being to say: SSDs are a lot cheaper nowadays than they were even a couple years ago, and at typical consumer scales they're plenty viable; "good enough" capacity, while also having better performance and lower power consumption.
Even at relatively small companies, not all knowledge disseminates equally through the company, and WD isn't exactly a small company. It's almost certain that the team that was responsible for the WD Red SMR release was not aware of this issue or this wouldn't have happened. What probably happened was something more along the lines of:
1. Traditional wisdom says SMR can't be used in raid
2. DM-SMR firmware has gotten much better at hiding the performance issues of SMR since traditional wisdom
3. Let's actually measure this in some RAID setups and see what happens
4. Hmm, those numbers look reasonable, we can ship this!
At no point did anyone think very hard about ZFS being an edge-case for DM-SMR.
All that being said, the drives absolutely should have been represented as DM-SMR, along with some nice benchmark numbers to show that the performance hit isn't as bad as one might think. In the right RAID setup, these drives are at a reasonable performance/value point in the curve.
Synology does not use ZFS at all, and they are seeing issues
Also ZFS being an "edge case" is not going to be true long term as alot of SMB and Home NAS vendors (the very customers the WD Red Line targets) are starting to use ZFS on Linux more and more
Synology also has used btrfs in the past which I would suspect may suffer the same kind of issue as ZFS but dont know forsure
Given that all traditional RAID arrays do online rebuild, what keeps a random application, lets say a database, from creating a write pattern during the rebuild which forces timeouts?
AFAIK, nothing. And logically, it might be possible with just a single drive without the RAID given that WD hasn't published proper command timeout definitions for these drives either.
So people are giving them a pass for finally admitting that the drives are SMR. That does nothing if they won't publish topology information, or buffer capacity so that the host can optimize write patterns.
So, until the opensource community can adjust the worse case command timeouts, and preferably optimize write patterns based on drive topology, the hardware doesn't appear fit for any purpose.
I think the complaint is they rolled these out with the SMR effectively hidden by the drive firmware, so a) huge performance impact in cases where caching couldn't save you , b) no easy way for the software guys to address the problem, and c) no way for the customer to know any of this.
Right, from a techical perspective, that is the problem. If WD was transparent about the SMR regions, cache size/full capacity, and read/write timeouts then the drives could be made provably useful (if potentially slow).
But they aren't providing that, which is problem 1, your "c" is of course a large part of that problem (lack of transparency). At least intel when they product segment, they tell you what is visibly diffrent between the products (ECC, AVX-512, number of UPI lanes, etc).
WD and the drive industry has been trying to hide this information for decades, for a while it was the sonic interference functionality, then it was TLER controls, then the IDLE3 controls. And recently its hard to get a straight answer about things which can be detected from profiling tools (SMR, Rotational speed, number of platters, track to track seek, etc).
And for what? The only people being hurt by this are the consumers, which don't know if they should buy a WD purple or a WD red for their video server because no one but their actual competitors spends the time/effort to take the drives apart and profile them to detect what is actually different in the artificial product segments.
There are a few edge cases where spinning disks could be acceptable, but none where they are superior anymore.
Cost? Maybe if you're not billed for electricity. And the cost of hardware is beer money compared to admin/dev/architect time.
Durability? Drives of both technology vary in durability based on market class. Enterprise disks are superior to cheap consumer SSDs in that respect, but within the same class SSDs are superior.
Type of database? Well if your database is used mostly for sequential reads, in other words when it's for most intents and purposes used like a flat file would be, you're in that edge case. Few individual databases are like that, though admittedly those that are can be very large.
Data written/read? Early SSDs were admittedly prone to wearing off with heavy writes. We're long past that, except if you're talking about dodgy SD cards but you're not putting a database on that, are you?
Types of filesystems? Just no.
Hard drives are cheaper per byte. Significantly cheaper, but not even an order of magnitude cheaper anymore. They use more power, their random access time is orderS of magnitude slower, and their sequential transfer rate is slower. Hell even sequential write is not better any more.
But I'll concede this, if you look long and hard enough, I'm sure you can find that one odd case where a database is marginally better served by spinning disks.
Who could think using Red NAS drives in a NAS would be an appropriate technology choice? /s
(small print: not suitable for RVs).
Does anyone have a link or archive link?
https://blog.westerndigital.com/wd-red-nas-drives/
TLDR: They suggest different RED drives should be considered for different workloads. While that may have been their intention all along, that was not communicated well at in marketing or retail, where the drive colors (red, blue, purple, etc) used to be the appropriate method for selecting the right drive for your workload/purpose.
The way they have worded it, the blog is not wrong, but they left out an important fact: consumers didn't have the necessary info to make the decision they're suggesting people should have made.
Even if you read the data sheets that were available at the time, one would expect the listed transfer rate was a limit that the drive was capable of, not the rate that if exceeded would cause the device to perform very poorly. Worse, there would be no way to know that was the case because the fact that they were SMR technology was previously unreleased and the drives themselves actively hid that information from the host computer (since they were "device managed" SMR).
The data sheets still aren't clear on how the performance is impacted with workload, but at least they're clear about the technology they use now.
In this case WD lied, obscured the information required by consumers to make an appropriate choice, then blamed the same consumers for choosing poorly based off of information that they weren’t given. That is gaslighting.
https://www.hattislaw.com/cases/investigations/western-digit...
My understanding is there wasn't much for WD to gain here and serious risks...
Did they really feel this was worth it? How did this decision make its way through the management chain?
Speaking as someone who accidentally bought SMR drives from Seagate that weren't advertised as such, what's the primary danger of using these drives in a _new_ ZFS setup?
From what I've seen, the write speed is bad enough that rebuilds might be problematic in ZFS. But since I'm not doing a rebuild, and since I can swap out the drive for a non-SMR alternative whenever one fails and I do need to do a rebuild, are they still relatively safe to use?
I've done multiple resilvers and they're definitely slower than conventional drives at that task, but the main issue people are seeing with WD drives is that in certain cases the drives take multiple seconds to respond to an ATA command, making the system think the drive is defective. The Seagate drives don't seem to suffer from this problem. There's lots of documentation out there on people using Seagate "Archive" drives in NAS's as well.. these were some of the earliest SMR drives and were on the market before the tech became more mainstream. Their results seem to align with what I'm seeing even though mine are branded "Barracuda Compute."
So while I wouldn't be using _any_ SMR drives for a production workload, I'm perfectly happy with the 8TB Seagate SMR drives I picked up for $185 CAD each for my home use.
But based on the reports of the WD drives, they are likely to never successfully resilver. Which is obviously much worse.
The other, I'd say the correct, way to do this is to have the disk report its SMRness to the operating system. That lets the OS issue TRIM commands to the disk for areas that are not used to store data, which makes the writes quicker, SMR's performance having to do with the fact that it needs to be written in way larger blocks than CMR.
For ZFS or RAID rebuilds on drive-managed SMR drives, the CMR area will be filled quickly, as the whole disk is written at once. This means the rebuild will be very slow, and if I got it right, some firmware versions even stop accepting writes when the CMR area is full. So the rebuild situation is where the problems arise - already existing arrays should be fine, especially with SMR disks that do let the OS know about them being SMR.
If any new disk you replace it with is non-SMR, then you shoud be good as far as I can see.
Has WD ever said Reds would work with ZFS? The Red spec sheet says performance isn't guaranteed on setups not listed as compatible. The compatibility list is a nightmare [1] to use, but I can't find ZFS and only Gold drives are listed for FreeBSD. None of the roughly ten ransom products I checked listed Red.
https://www.westerndigital.com/support/partner-product-compa...
https://www.westerndigital.com/support/partner-product-compa...
Anecdotal evidence is that the SMR drives will mostly work. It's not worth the time or trouble. WD is dead to me until the next cycle of vendor rage forces me to choose them again. :-/
Especially as they are not even cheaper.
(course newegg sales and all that).
How many people shopping for these kind of drives understand what kind of a difference SMR has theoretically and what kind of a difference it has for them?
When you Google "best NAS HDDs", you'll basically run to a bunch of articles recommending WD Reds alongside Seagate Ironwolves. I think only one link on the first page of results had a warning against the lower capacity WD Reds due to this.
i.e. the original 4 TB CMR drives were: WD40EFRX
the new 4 TB SMR drives are: WD40EFAX
They also have larger caches in most cases (i.e. 256 MB vs 64 MB).
Your requirements sound similar to my home network. In my case how I orchestrated the spinning rust ended up being a lot less important than getting the random access parts of my workload on an NVMe SSD. Best $40 upgrade I ever made.
I'd if there was a zvol equivalent in btrfs.
Once upon a time people knew what they were talking about. Now everybody's an EXPERT NPC.
Although I acknowledge that in this case it is WDs fault.
Or you're on windows.
But sure yeah it's pretty good overall, I don't disagree with your main point.
I wouldn't actually trust it with data yet, but I suspect the developers would welcome any contributions or effort sent in their direction: https://github.com/openzfsonwindows/ZFSin
(I'm not affiliated, but I think it's a cool project, and I really want it to succeed)
As for Windows, that's a new one! When I think ZFS I think NAS although I did briefly had it on a laptop with FreeBSD I think.