All of lore.kernel.org
 help / color / mirror / Atom feed
* Write Pattern and Verify in separate run instance ?
@ 2015-05-12 16:49 Alireza Haghdoost
  2015-05-13  1:18 ` Matthew Eaton
  0 siblings, 1 reply; 4+ messages in thread
From: Alireza Haghdoost @ 2015-05-12 16:49 UTC (permalink / raw)
  To: fio

I want to do following experiment with FIO but now sure FIO have this
capability in place:

1. Run FIO and write a random content pattern on a RAW device or a File.
2. Run FIO and verify the contents that has been written is correct.

Based on my understanding, FIO do the verification phase at the same
run instance. However, I want the verification phase happen in a
separate stand alone run instance that may happen later.

Would you please kindly let me know if this capability is available ?
If not, I will appreciate your input so I can expand the toolset.

Thanks

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

* Re: Write Pattern and Verify in separate run instance ?
  2015-05-12 16:49 Write Pattern and Verify in separate run instance ? Alireza Haghdoost
@ 2015-05-13  1:18 ` Matthew Eaton
  2015-05-13 14:01   ` Alireza Haghdoost
  0 siblings, 1 reply; 4+ messages in thread
From: Matthew Eaton @ 2015-05-13  1:18 UTC (permalink / raw)
  To: Alireza Haghdoost; +Cc: fio

On Tue, May 12, 2015 at 9:49 AM, Alireza Haghdoost <haghdoost@gmail.com> wrote:
> I want to do following experiment with FIO but now sure FIO have this
> capability in place:
>
> 1. Run FIO and write a random content pattern on a RAW device or a File.
> 2. Run FIO and verify the contents that has been written is correct.
>
> Based on my understanding, FIO do the verification phase at the same
> run instance. However, I want the verification phase happen in a
> separate stand alone run instance that may happen later.
>
> Would you please kindly let me know if this capability is available ?
> If not, I will appreciate your input so I can expand the toolset.
>
> Thanks
> --
> To unsubscribe from this list: send the line "unsubscribe fio" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

One of the example job files sounds similar to what you're asking for.
It uses a two phase approach, write phase, then verify phase.  I
modified it a bit but maybe it will help you get on the right track.

; writes 512 byte verification blocks until the disk is full,
; then verifies written data
[global]
thread=1
bs=128k
direct=1
ioengine=sync
verify=meta
verify_pattern=0x0123456789abcdef
verify_interval=512

[write-phase]
filename=${fname}    ; or use a full disk, for example /dev/sda
rw=write
fill_device=1
do_verify=0

[verify-phase]
stonewall
create_serialize=0
filename=${fname}
rw=read
do_verify=1

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

* Re: Write Pattern and Verify in separate run instance ?
  2015-05-13  1:18 ` Matthew Eaton
@ 2015-05-13 14:01   ` Alireza Haghdoost
  2015-05-13 14:29     ` Jens Axboe
  0 siblings, 1 reply; 4+ messages in thread
From: Alireza Haghdoost @ 2015-05-13 14:01 UTC (permalink / raw)
  To: Matthew Eaton; +Cc: fio

Mattew,

Thanks for your reply. Is it possible to run Write-Phase and
Verify-phase in two separate run instances and job files ?


On Tue, May 12, 2015 at 8:18 PM, Matthew Eaton <m.eaton82@gmail.com> wrote:
> On Tue, May 12, 2015 at 9:49 AM, Alireza Haghdoost <haghdoost@gmail.com> wrote:
>> I want to do following experiment with FIO but now sure FIO have this
>> capability in place:
>>
>> 1. Run FIO and write a random content pattern on a RAW device or a File.
>> 2. Run FIO and verify the contents that has been written is correct.
>>
>> Based on my understanding, FIO do the verification phase at the same
>> run instance. However, I want the verification phase happen in a
>> separate stand alone run instance that may happen later.
>>
>> Would you please kindly let me know if this capability is available ?
>> If not, I will appreciate your input so I can expand the toolset.
>>
>> Thanks
>> --
>> To unsubscribe from this list: send the line "unsubscribe fio" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>
> One of the example job files sounds similar to what you're asking for.
> It uses a two phase approach, write phase, then verify phase.  I
> modified it a bit but maybe it will help you get on the right track.
>
> ; writes 512 byte verification blocks until the disk is full,
> ; then verifies written data
> [global]
> thread=1
> bs=128k
> direct=1
> ioengine=sync
> verify=meta
> verify_pattern=0x0123456789abcdef
> verify_interval=512
>
> [write-phase]
> filename=${fname}    ; or use a full disk, for example /dev/sda
> rw=write
> fill_device=1
> do_verify=0
>
> [verify-phase]
> stonewall
> create_serialize=0
> filename=${fname}
> rw=read
> do_verify=1

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

* Re: Write Pattern and Verify in separate run instance ?
  2015-05-13 14:01   ` Alireza Haghdoost
@ 2015-05-13 14:29     ` Jens Axboe
  0 siblings, 0 replies; 4+ messages in thread
From: Jens Axboe @ 2015-05-13 14:29 UTC (permalink / raw)
  To: Alireza Haghdoost, Matthew Eaton; +Cc: fio

On 05/13/2015 10:01 AM, Alireza Haghdoost wrote:
> Mattew,
>
> Thanks for your reply. Is it possible to run Write-Phase and
> Verify-phase in two separate run instances and job files ?

Yes, the example file could be split into two jobs, it would not matter.

-- 
Jens Axboe



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

end of thread, other threads:[~2015-05-13 14:29 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-12 16:49 Write Pattern and Verify in separate run instance ? Alireza Haghdoost
2015-05-13  1:18 ` Matthew Eaton
2015-05-13 14:01   ` Alireza Haghdoost
2015-05-13 14:29     ` Jens Axboe

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.