On 2021/08/01 22:04, 做自己 wrote: > Hi Damien, > > Thanks a lot. > > Regarding to LBA size, does it differ from HDD sector format?That means > 512e&4kn should use 4096 for capacity-LBA conversion while 512 for 512n? A LBA is the minimum access size possible on a block device. So all accesses should be aligned to the device LBA size. You can see the LBA size, and the physical block size in sysfs: cat /sys/block/sdX/queue/logical_block_size cat /sys/block/sdX/queue/physical_block_size > > Best regards, > Samuel > ---- Replied Message ---- > From Damien Le Moal<damien.lemoal@xxxxxxx> <mailto:damien.lemoal@xxxxxxx> > Date 05/14/2021 09:52 > To 周密<mfpnzwm@xxxxxxx> <mailto:mfpnzwm@xxxxxxx>, > fio@xxxxxxxxxxxxxxx<fio@xxxxxxxxxxxxxxx> <mailto:fio@xxxxxxxxxxxxxxx> > Subject Re: Help on how to specify LBA in Fio > > On 2021/05/14 2:36, 周密 wrote: >> Help on how to specify LBA in Fio >> >> Samuel >> > > fio uses Byte as the unit for specifying offset, size, IO size, block size etc. > So just multiply your LBA values by your device LBA size and you will have LBA > aligned byte values you can pass to fio. > > > -- > Damien Le Moal > Western Digital Research -- Damien Le Moal Western Digital Research