When I do the command fsutil fsinfo sectorInfo c:, I receive this output:
LogicalBytesPerSector : 512
PhysicalBytesPerSectorForAtomicity : 4096
PhysicalBytesPerSectorForPerformance : 4096
FileSystemEffectivePhysicalBytesPerSectorForAtomicity : 4096 Device
Alignment : Aligned (0x000)
Partition alignment on device : Aligned
(0x000) No Seek Penalty Trim Supported Not DAX capable Not
Thinly-Provisioned
I'm worried about the difference between LogicalBytesPerSector and PhysicalBytesPerSectorForAtomicity.
As LogicalBytesPerSector is less than PhysicalBytesPerSectorForAtomicity, will every block of 512 bytes I write actually be written atomically? On the other hand, will every block of 4096 bytes I write actually be written atomically?
Also, will the read/write of 512 bytes be slow, as if I understand well, the system will need to read 4096 physical bytes just to write my 512 bytes?
4096 will write atomically.
512 will write atomically with possibly writing other data to complete to 4096.
Yes, at least write by
PhysicalBytesPerSectorForPerformance. By more may be still faster due to more efficient commands utilization.