All of lore.kernel.org
 help / color / mirror / Atom feed
From: Damien Le Moal <Damien.LeMoal@wdc.com>
To: 做自己 <mfpnzwm@163.com>
Cc: "fio@vger.kernel.org" <fio@vger.kernel.org>
Subject: Re: Help on how to specify LBA in Fio
Date: Sun, 1 Aug 2021 22:31:54 +0000	[thread overview]
Message-ID: <DM6PR04MB70818C78D2136B70E7A8C09EE7EE9@DM6PR04MB7081.namprd04.prod.outlook.com> (raw)
In-Reply-To: 304f5d56.15f5.17b01d09484.Coremail.mfpnzwm@163.com

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


      parent reply	other threads:[~2021-08-01 22:32 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [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 message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=DM6PR04MB70818C78D2136B70E7A8C09EE7EE9@DM6PR04MB7081.namprd04.prod.outlook.com \
    --to=damien.lemoal@wdc.com \
    --cc=fio@vger.kernel.org \
    --cc=mfpnzwm@163.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.