Hacker News new | ask | show | jobs
by londons_explore 6 days ago
I think the future of hard drives involves absolutely huge error correction block sizes - 1 gigabyte or more.

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.

3 comments

1GB error correction block sizes in HDDs won't happen due to the latency constraint. It would take multiple seconds to apply an error correction code on a 1GB block on an HDD. Nobody would be willing to accept that. Ergo, block sizes will remain modest (4KB to a few hundred KB). Doing partial reads inside a zone is a non-issue, so there's no need to force error correction happen onto huge block sizes.

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.

Most enterprise storage arrays have writes going to some kind of very fast NVRAM and batched so that data can be written to storage in larger blocks.
> any writes that happened before a power failure can always be completed

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.