SMR drives seem to be best for writing once, reading several times. I have a significant number of hardlink duplicated directory structures stored on an SMR device, and wished to delete the latest one, however the process seems to be excruciatingly slow. Either there has been a fault, or this is expected behaviour.
I can imagine several reasons why this may be, does concrete information exist to explain this?
Thoughts:
- Updating file table requires modifying early parts of the disk needing significant rewriting of data as per SMR rewrites.
- Linked files require reference count updates that are modifying the file table, again requiring significant rewrite of data.
More generally, how does a filesystem on SMR function efficiently? The data is spread over the disk but the file table must be kept separate otherwise the shingling will kill performance. How could a drive managed SMR know where the file table was to handle it in any special way? Are some filesystems better than others in this case?
Specifics:
- Drive: Seagate Archive 6TB
- OS: CentOS 7 kernel 3.10.0
- Filesystem: BTRFS
- Drive usage: 66%