All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: Help on how to specify LBA in Fio
       [not found] <ECDC56C0-4386-42E1-A6D5-829D4A4DC7D8@163.com>
@ 2021-05-14  1:52 ` Damien Le Moal
       [not found]   ` <304f5d56.15f5.17b01d09484.Coremail.mfpnzwm@163.com>
  0 siblings, 1 reply; 2+ messages in thread
From: Damien Le Moal @ 2021-05-14  1:52 UTC (permalink / raw)
  To: 周密, 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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Help on how to specify LBA in Fio
       [not found]   ` <304f5d56.15f5.17b01d09484.Coremail.mfpnzwm@163.com>
@ 2021-08-01 22:31     ` Damien Le Moal
  0 siblings, 0 replies; 2+ messages in thread
From: Damien Le Moal @ 2021-08-01 22:31 UTC (permalink / raw)
  To: 做自己; +Cc: fio

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@wdc.com> <mailto:damien.lemoal@wdc.com>
> Date	05/14/2021 09:52
> To	周密<mfpnzwm@163.com> <mailto:mfpnzwm@163.com>,
> fio@vger.kernel.org<fio@vger.kernel.org> <mailto:fio@vger.kernel.org>
> 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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-08-01 22:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <ECDC56C0-4386-42E1-A6D5-829D4A4DC7D8@163.com>
2021-05-14  1:52 ` Help on how to specify LBA in Fio Damien Le Moal
     [not found]   ` <304f5d56.15f5.17b01d09484.Coremail.mfpnzwm@163.com>
2021-08-01 22:31     ` Damien Le Moal

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.