3 ms·
> I remember when hard drives moved to 4k sectors. It seemed insane that they were still 512bytes, and seemed neat to have them the same size as memory pages. B
by csdvrx 4y ago
> I remember when hard drives moved to 4k sectors. It seemed insane that they were still 512bytes, and seemed neat to have them the same size as memory pages. But 4k pages seem incredibly small today
It's a problem with NVMe especially large ones: we're just starting to see 4kn.
Even for a 4kn drive, the block size they report (and the erase block size) are not the ones used internally. There are some tools to infer the correct size using breakpoint detection in latency measurements.
There're also some simple rule of thumb: 2^16 for Samsung >1Tb (64k)