逻辑扇区字节数 vs 物理扇区字节数

4
当我执行命令fsutil fsinfo sectorInfo c:时,我会收到以下输出:
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

我担心的是LogicalBytesPerSectorPhysicalBytesPerSectorForAtomicity之间的差异。由于LogicalBytesPerSector小于PhysicalBytesPerSectorForAtomicity,那么我写入的每个512字节的块都会被原子方式写入吗?另一方面,我写入的每个4096字节的块都会被原子方式写入吗?
此外,读/写512字节会很慢,因为如果我理解正确,系统将需要读取4096物理字节来写入我的512字节吗?

1个回答

1

每个512字节的块我将写入的内容都会原子地被写入吗?另一方面,我将写入的每个4096字节的块都会被原子地写入吗?

4096将被原子地写入。

512将被原子地写入,但可能会写入其他数据以完成到达4096字节的写入。

同时,512字节的读/写速度不会太慢,因为如果我理解正确,系统需要读取4096个物理字节才能写入我的512个字节?

是的,至少按照PhysicalBytesPerSectorForPerformance进行写入。通过更有效率的命令利用,可能会更快。


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接