Re: LBA selection in FIO

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanks for the response sitsofe

Basically I am looking to see if FIO has the below option
1. Pass the LBA count as an argument. From your explanation my
understanding is currently FIO doesn't have that option
2. On the buffer pattern I wasn't able to specify the buffer pattern
to be all 0(zero) but --buffer_pattern=1 works fine. Do I have to use
zero_buffers to fill buffers with zero and not buffer_pattern

For option1, if I cant pass LBA count, my plan is to
get LBA size of the drive,
multiply the LBA size with lba count which will give me the size in bytes
pass the size with --size=x b  where x is the size obtained in above step

Please let me know if there are some other efficient ways to achieve this

Regards,
Gnana

On Fri, Dec 29, 2017 at 4:12 AM, Sitsofe Wheeler <sitsofe@xxxxxxxxx> wrote:
> Hi,
>
> On 28 December 2017 at 23:17, Gnana Sekhar <kgsgnana2020@xxxxxxxxx> wrote:
>>
>> I am looking to see if FIO has options to pass LBA count and data
>> pattern as CLI arguments.
>
> The rw parameter can take a :<nr> parameter (see
> http://fio.readthedocs.io/en/latest/fio_doc.html#cmdoption-arg-readwrite
> ). The various zone options (e.g.
> http://fio.readthedocs.io/en/latest/fio_doc.html#cmdoption-arg-random-distribution
> , http://fio.readthedocs.io/en/latest/fio_doc.html#cmdoption-arg-zonesize
> ) can enable some types of repetition. It's hard to say if this is
> enough for your purposes though...
>
> If you have to precisely craft exact offsets and exact counts you
> could use an iolog replay file via the read_iolog option
> (http://fio.readthedocs.io/en/latest/fio_doc.html#cmdoption-arg-read-iolog
> ). If your shell supports it you might be even able to craft the
> replay "file" on the fly (e.g. bash can use <() to do Process
> Substitution).
>
>> Data pattern means same pattern to the specified LBA range i.e.,
>> either all 1's or 0's etc.,
>
> If the data is identical in every block being written then perhaps
> buffer_pattern -
> http://fio.readthedocs.io/en/latest/fio_man.html#cmdoption-arg-buffer-pattern
> ?
>
>> Also will FIO be able to write to specified number of LBAs
>> irrespective of the LBA size
>
> I am struggling to understand this question. If you mean "can fio be
> told to write a specific number of blocks" then isn't this normally
> the blocksize (http://fio.readthedocs.io/en/latest/fio_man.html#block-size
> )?
>
> --
> Sitsofe | http://sucs.org/~sits/
--
To unsubscribe from this list: send the line "unsubscribe fio" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Kernel]     [Linux SCSI]     [Linux IDE]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux