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

我担心LogicalBytesPerSector和之间的区别PhysicalBytesPerSectorForAtomicity

由于LogicalBytesPerSector小于PhysicalBytesPerSectorForAtomicity,我写的每个 512 字节块实际上会被原子写入吗?另一方面,我写的每一个 4096 字节的块实际上会被原子地写入吗?

另外,512字节的读/写会不会很慢,好像我理解得很好,系统需要读取4096个物理字节才能写入我的512字节?

4

1 回答 1

1

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

4096 将自动写入。

512 将自动写入,可能会写入其他数据以完成到 4096。

512字节的读/写也不会太慢,如果我理解得很好,系统需要读取4096个物理字节才能写我的512个字节?

是的,至少由PhysicalBytesPerSectorForPerformance. 由于更有效的命令利用率,更多可能会更快。

于 2021-03-17T17:23:45.380 回答