3 ms·
Heads up - if you've bought a high density disk recently, it's probably SMR internally anyways. A write to one area can be done in a single disc rotation, as l
by codemac 10y ago
Heads up - if you've bought a high density disk recently, it's probably SMR internally anyways.
A write to one area can be done in a single disc rotation, as long as it's sequential.
SMR disks added what are called ZBC, Zoned Block Commands to the SCSI spec. The disk itself exposes the ability to interact with zones several ways:
- REPORT ZONES - What zones there are, how many, what type, and state of the zone.
- OPEN / CLOSE / FINISH ZONE - zone write state management
So essentially, it's like a drive exposes ~8 files, opened with O_APPEND, and you have to manage how you stripe your writes between those files to handle your workload. Your disk can also have zones that aren't shingled, but those seem to have been fairly unpopular.