Re: LBA selection in FIO

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

 



Hi Sitsofe,

I am using the fio version of 3.3
$ sudo fio --version
fio-3.3-12-ge38f

It would be great if you can share your opinion on the steps I am
doing below. I am running into bad magic header during verify
operation
These steps are performed synchronously i.e., one after another in the
shell prompt

$ sudo fio --thread --direct=1 --minimal --ioengine=libaio --numjobs=1
--iodepth=1 --name=bs128k_rwread_rsmixr0_qd256 --bs=4096
--percentage_random=0 --rw=write --filename=/dev/nvme0n1 -o
/home/temp.log --buffer_pattern=1 --size=76815


$ sudo fio --thread --direct=1 --minimal --ioengine=libaio --numjobs=1
--iodepth=1 --bs=4096 --percentage_random=0 --filename=/dev/nvme0n1 -o
/home/temp.log --name=bs4096_rwverify_qd256 --size=76815 --rw=read
--verify_pattern=0x1 --debug=all

verify: bad magic header 101, wanted acca at file /dev/nvme0n1 offset
0, length 4096
bs4096_rwverify_qd256: No I/O performed by libaio, perhaps try
--debug=io option for details?

Regards,
Gnana

On Wed, Jan 3, 2018 at 11:47 PM, Sitsofe Wheeler <sitsofe@xxxxxxxxx> wrote:
> Hi,
>
> What version of fio are you using? Here's what I got with post fio 3.3
> with --buffer_pattern=0:
>
> $ ./fio --gtod_reduce=1 --filename=/tmp/fio.tmp --size=4k
> --buffer_pattern=0 --name=zero --rw=write
> zero: (g=0): rw=write, bs=(R) 4096B-4096B, (W) 4096B-4096B, (T)
> 4096B-4096B, ioengine=psync, iodepth=1
> fio-3.3-17-gdb43a
> Starting 1 process
>
> zero: (groupid=0, jobs=1): err= 0: pid=10681: Thu Jan  4 06:40:44 2018
>   write: IOPS=1000, BW=4000KiB/s (4096kB/s)(4096B/1msec)
>   cpu          : usr=0.00%, sys=0.00%, ctx=0, majf=0, minf=77
>   IO depths    : 1=100.0%, 2=0.0%, 4=0.0%, 8=0.0%, 16=0.0%, 32=0.0%, >=64=0.0%
>      submit    : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0%
>      complete  : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0%
>      issued rwt: total=0,1,0, short=0,0,0, dropped=0,0,0
>      latency   : target=0, window=0, percentile=100.00%, depth=1
>
> Run status group 0 (all jobs):
>   WRITE: bw=4000KiB/s (4096kB/s), 4000KiB/s-4000KiB/s
> (4096kB/s-4096kB/s), io=4096B (4096B), run=1-1msec
> $ hexdump -C /tmp/fio.tmp
> 00000000  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
> *
> 00001000
>
> --buffer_pattern=0x0 also works without issue for me. If you're able
> to reproduce the problem with fio 3.3 or above then can you post the
> command line + job file you're using?
>
> On 3 January 2018 at 21:12, Gnana Sekhar <kgsgnana2020@xxxxxxxxx> wrote:
>>
>> I did try the buffer pattern of 0x0 and it doesn't work
>> fio throws out error of "failed parsing pattern `0x0`"
>>
>> Regards,
>> Gnana
>>
>> On Wed, Jan 3, 2018 at 12:17 PM, Sitsofe Wheeler <sitsofe@xxxxxxxxx> wrote:
>>> Hi Gnana,
>>>
>>> On 3 January 2018 at 17:47, Gnana Sekhar <kgsgnana2020@xxxxxxxxx> wrote:
>>>>
>>>> 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
>>>
>>> Well I'm still unsure what LBA count means in this context. If my
>>> blocks are 512 bytes big and I want a single write to cover LBA 0 - 3
>>> then isn't the blocksize of 4k controlling the LBA count? Sorry to
>>> keep asking I just don't understand the request.
>>>
>>>> 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
>>>
>>> Hmm! 0 is going to be interpreted as "this option is unset". Does 0x0 work?
>
> --
> 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