30 points · by bluedino · 2w ago · 43 comments
If the disks were host-aware, Linux (and preferably ZFS) could handle host-aware SMR disks non-catastrophically, and SMR disks were part of a separate product line with prices and capacities that make some sort of sense when you compare with the CMR line, I'd be all over them as cold storage, or just treating them as (re)write-once-read-many drives.
But it's clear WD and Seagate don't care about the consumers. They're just a rounding error in comparison to B2B sales, especially given the current times.
Here's Dropbox describing how they built around SMR:
https://dropbox.tech/infrastructure/extending-magic-pocket-i...
What's frustrating is even just a little info from the manufactures would be beneficial, like the size of a shingle so the computer could batch writes, or even if the drive is shingled!
In any case, I don't think hobbyists get to play with the non-disk-managed drives, and anyone with the money and the special disks is probably not using ZFS because it's a bit of an uphill battle to fit SMR to a copy-on-write filesystem.
The drive doesn't have enough information to do this itself, we need SMR aware filesystems.
Shouldn't this be especially useful with ZFS doing copy-on-write with linked lists as a reversed heap?
EDIT: So apparently, ZFS ashift is capped at 16 and values along 28 would be necessary to cover entire 256MiB (octet) shingles. Bummer.
EDIT2: The basic problem seems to stem from the exact same assumption that SQLite3 [1] makes: The sector write size for random write access is 512B or 4KiB, or whatever. With SMR and flash erase blocks, random write sector size and random read sector size are vastly different. Will take ages for filesystems to be updated to this new reality and then validated on real workloads.
[1] https://www.sqlite.org/atomiccommit.html, section 2 Hardware Assumptions.
Could also expose the drives as SCSI object storage devices
Sounds like ZFS has the same problem today, it's not aware of SMR, and it treats those drives as if they are regular hard-drives.
https://dropbox.tech/infrastructure/four-years-of-smr-storag...
Means they are still bad in RAID setups
...why does anyone in WD's corporate communications team think this is a good idea? Data storage is important and as a potential-customer I need to be able to trust my HDD OEMs - but fake blogs like these just erode trust.
They do like "ls /sda0/dirty-tracks/ | xargs -P 1 dd if=/sda0/dirty-tracks/{} of=/dev/sda{} size=512M && rm /sda0/{}", but onboard the disk, not on the host, and that's both wildly slow and imcompatible with anything but super light or niche use cases.
If only they at least used a NAND flash for that staging or at least coordinated with the host system, but no, HDD industry chose not to cooperate with anyone and to hide the fact that some disks are DM-SMRs.
Think of SMR as "fast tape with random reads" rather than anything like a CMR product.
The way it would work is:
* The underlying disk would do sequential writes only, in 1Gb blocks, rather like a log filesystem.
* The large block size enables much better information density due to being able to tolerate far more errors.
* Random reads within blocks can usually be done - but occasionally most or all of the whole block will need to be read to decode the data.
* A small capacitor+disk momentum ensures any writes that happened before a power failure can always be completed - either to the real disk or to flash.
* The OS still only sees 4k pages - versioning, packing those into 1Gb blocks, mappings and garbage collection are all handled inside the drive.
If you're talking about larger data zones, that is already happening. It just happens to be that zone support in storage is uninteresting to 99% of users as the products that require it generally have garbage performance for use cases other than tape replacement. Given the extremely narrow niche, very few filesystem developers have any reason to work on support for zoned block devices. The end result is that it will always be a poorly supported feature with accompanying the glass jaws that come with earlier forms of SMR.
What WD is really announcing here is more like translation layers that have existed inside of modern SSDs for more than a decade. Earlier generations of SMR re-wrote entire zones to keep logical sectors laid out in linear form on the physical device, so building a more advanced translation layer will improve performance by orders of magnitude for many workloads. That said, the performance will still remain entirely awful for the vast majority of workloads outside of the tape replacement niche.
It can be also the data milliseconds after loosing power. The minimal amount of data in question is the data that the drive has acknowledged to the OS after a special command.
Anyway, this problem is already solved at least few years ago.
While I doubt this increases the reliability, I'd rather fear, it decreases it. But I'd expect it should indeed increase a little bit performance, since drive metadata can be accessed instantly from NAND instead from platters.
Most likely very little writes and either light reads or very sequential reads.
I would think it would make sense for the origin servers for a big video distribution platform with a CDN. The CDN is likely to cache most of the requests so origin servers have a low request rate and increasing storage density will material reduce capital costs, because you can only put so many disks in the machines.
It probably works in archival/backup systems which tend to be write once, read never. Ingest inputs onto ssd, then write whole shingles to disk at once. Typically don't touch the data again until it's expired and you can overwrite it.
You mean SMR.
> or very sequential reads.
I haven't heard SMR would show worse random read performance than CMR.