All of lore.kernel.org
 help / color / mirror / Atom feed
* Should io_limits/queue depth flushed persist while using verify_state?
@ 2015-01-15 11:01 Sitsofe Wheeler
  2015-01-15 22:45 ` Jens Axboe
  0 siblings, 1 reply; 7+ messages in thread
From: Sitsofe Wheeler @ 2015-01-15 11:01 UTC (permalink / raw)
  To: fio@vger.kernel.org

While using fio-2.2.4 the following snippet produces a verification
error for me on the second fio invocation:

fio --bs=4k --ioengine=libaio --direct=1 --verify=meta --iodepth=128
--io_limit=300k --verify_state_save=1 --rw=randwrite --name=write3
--filename=/dev/dm-7 && fio --bs=4k --ioengine=libaio --direct=1
--verify=meta --iodepth=128 --verify_state_load=1 --rw=randread
--name=write3 --filename=/dev/dm-7

However if I put the iodepth of the second fio command down to 64 or
set io_limit the error goes away. I have also sometimes seen an error
that looks similar if the first fio is killed via ctrl-C. Is this to
be expected?

-- 
Sitsofe | http://sucs.org/~sits/

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

* Re: Should io_limits/queue depth flushed persist while using verify_state?
  2015-01-15 11:01 Should io_limits/queue depth flushed persist while using verify_state? Sitsofe Wheeler
@ 2015-01-15 22:45 ` Jens Axboe
  2015-01-16 17:24   ` Jens Axboe
  0 siblings, 1 reply; 7+ messages in thread
From: Jens Axboe @ 2015-01-15 22:45 UTC (permalink / raw)
  To: Sitsofe Wheeler, fio@vger.kernel.org

On 01/15/2015 04:01 AM, Sitsofe Wheeler wrote:
> While using fio-2.2.4 the following snippet produces a verification
> error for me on the second fio invocation:
>
> fio --bs=4k --ioengine=libaio --direct=1 --verify=meta --iodepth=128
> --io_limit=300k --verify_state_save=1 --rw=randwrite --name=write3
> --filename=/dev/dm-7 && fio --bs=4k --ioengine=libaio --direct=1
> --verify=meta --iodepth=128 --verify_state_load=1 --rw=randread
> --name=write3 --filename=/dev/dm-7
>
> However if I put the iodepth of the second fio command down to 64 or
> set io_limit the error goes away. I have also sometimes seen an error
> that looks similar if the first fio is killed via ctrl-C. Is this to
> be expected?

Doesn't reproduce here, but both cases would seem to imply that there's 
something not quite right with the completed ios in the verify state 
output. I'll take a look.

-- 
Jens Axboe



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

* Re: Should io_limits/queue depth flushed persist while using verify_state?
  2015-01-15 22:45 ` Jens Axboe
@ 2015-01-16 17:24   ` Jens Axboe
  2015-01-17  9:11     ` Sitsofe Wheeler
  0 siblings, 1 reply; 7+ messages in thread
From: Jens Axboe @ 2015-01-16 17:24 UTC (permalink / raw)
  To: Sitsofe Wheeler, fio@vger.kernel.org

[-- Attachment #1: Type: text/plain, Size: 1105 bytes --]

On 01/15/2015 03:45 PM, Jens Axboe wrote:
> On 01/15/2015 04:01 AM, Sitsofe Wheeler wrote:
>> While using fio-2.2.4 the following snippet produces a verification
>> error for me on the second fio invocation:
>>
>> fio --bs=4k --ioengine=libaio --direct=1 --verify=meta --iodepth=128
>> --io_limit=300k --verify_state_save=1 --rw=randwrite --name=write3
>> --filename=/dev/dm-7 && fio --bs=4k --ioengine=libaio --direct=1
>> --verify=meta --iodepth=128 --verify_state_load=1 --rw=randread
>> --name=write3 --filename=/dev/dm-7
>>
>> However if I put the iodepth of the second fio command down to 64 or
>> set io_limit the error goes away. I have also sometimes seen an error
>> that looks similar if the first fio is killed via ctrl-C. Is this to
>> be expected?
>
> Doesn't reproduce here, but both cases would seem to imply that there's
> something not quite right with the completed ios in the verify state
> output. I'll take a look.

I wonder if this will do the trick, can you check? If not, I'll need the 
full output of the two runs, and the state files saved from the first run.


-- 
Jens Axboe


[-- Attachment #2: depth-ver.patch --]
[-- Type: text/x-patch, Size: 663 bytes --]

diff --git a/verify.c b/verify.c
index 205f01a2fc30..260fa2ae2fad 100644
--- a/verify.c
+++ b/verify.c
@@ -1540,10 +1540,12 @@ int verify_state_should_stop(struct thread_data *td, struct io_u *io_u)
 		return 0;
 
 	/*
-	 * If we're not into the window of issues - depth yet, continue
+	 * If we're not into the window of issues - depth yet, continue. If
+	 * issue is shorter than depth, do check.
 	 */
-	if (td->io_blocks[DDIR_READ] < s->depth ||
-	    s->numberio - td->io_blocks[DDIR_READ] > s->depth)
+	if ((td->io_blocks[DDIR_READ] < s->depth ||
+	    s->numberio - td->io_blocks[DDIR_READ] > s->depth) &&
+	    s->numberio > s->depth)
 		return 0;
 
 	/*

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

* Re: Should io_limits/queue depth flushed persist while using verify_state?
  2015-01-16 17:24   ` Jens Axboe
@ 2015-01-17  9:11     ` Sitsofe Wheeler
  2015-01-29  6:18       ` Sitsofe Wheeler
  0 siblings, 1 reply; 7+ messages in thread
From: Sitsofe Wheeler @ 2015-01-17  9:11 UTC (permalink / raw)
  To: Jens Axboe; +Cc: fio@vger.kernel.org

[-- Attachment #1: Type: text/plain, Size: 523 bytes --]

On 16 January 2015 at 17:24, Jens Axboe <axboe@kernel.dk> wrote:
>
> I wonder if this will do the trick, can you check? If not, I'll need the
> full output of the two runs, and the state files saved from the first run.

I tried revision ae703cdf31532e337cc18c259c883bf5314aa43a which seems
to already have that patch rolled into it (via commit
def0009508f0f3c763c4de5e0b62388b42544faf ) but it made no
difference...

Find the two runs with --debug=all and and the state file attached.

-- 
Sitsofe | http://sucs.org/~sits/

[-- Attachment #2: fio-depth-ver.tar.xz --]
[-- Type: application/octet-stream, Size: 14860 bytes --]

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

* Re: Should io_limits/queue depth flushed persist while using verify_state?
  2015-01-17  9:11     ` Sitsofe Wheeler
@ 2015-01-29  6:18       ` Sitsofe Wheeler
  2015-01-29 16:43         ` Jens Axboe
  0 siblings, 1 reply; 7+ messages in thread
From: Sitsofe Wheeler @ 2015-01-29  6:18 UTC (permalink / raw)
  To: Jens Axboe; +Cc: fio@vger.kernel.org

On 17 January 2015 at 09:11, Sitsofe Wheeler <sitsofe@gmail.com> wrote:
> On 16 January 2015 at 17:24, Jens Axboe <axboe@kernel.dk> wrote:
>>
>> I wonder if this will do the trick, can you check? If not, I'll need the
>> full output of the two runs, and the state files saved from the first run.
>
> I tried revision ae703cdf31532e337cc18c259c883bf5314aa43a which seems
> to already have that patch rolled into it (via commit
> def0009508f0f3c763c4de5e0b62388b42544faf ) but it made no
> difference...
>
> Find the two runs with --debug=all and and the state file attached.

Just checking - did the above arrive correctly?

-- 
Sitsofe | http://sucs.org/~sits/


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

* Re: Should io_limits/queue depth flushed persist while using verify_state?
  2015-01-29  6:18       ` Sitsofe Wheeler
@ 2015-01-29 16:43         ` Jens Axboe
  2015-02-15 13:07           ` Sitsofe Wheeler
  0 siblings, 1 reply; 7+ messages in thread
From: Jens Axboe @ 2015-01-29 16:43 UTC (permalink / raw)
  To: Sitsofe Wheeler; +Cc: fio@vger.kernel.org

On 01/28/2015 10:18 PM, Sitsofe Wheeler wrote:
> On 17 January 2015 at 09:11, Sitsofe Wheeler <sitsofe@gmail.com> wrote:
>> On 16 January 2015 at 17:24, Jens Axboe <axboe@kernel.dk> wrote:
>>>
>>> I wonder if this will do the trick, can you check? If not, I'll need the
>>> full output of the two runs, and the state files saved from the first run.
>>
>> I tried revision ae703cdf31532e337cc18c259c883bf5314aa43a which seems
>> to already have that patch rolled into it (via commit
>> def0009508f0f3c763c4de5e0b62388b42544faf ) but it made no
>> difference...
>>
>> Find the two runs with --debug=all and and the state file attached.
>
> Just checking - did the above arrive correctly?

I apparently missed it... Will take a look, but traveling in the next 
few days so response might be a bit slower.

-- 
Jens Axboe



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

* Re: Should io_limits/queue depth flushed persist while using verify_state?
  2015-01-29 16:43         ` Jens Axboe
@ 2015-02-15 13:07           ` Sitsofe Wheeler
  0 siblings, 0 replies; 7+ messages in thread
From: Sitsofe Wheeler @ 2015-02-15 13:07 UTC (permalink / raw)
  To: Jens Axboe; +Cc: fio@vger.kernel.org

On 29 January 2015 at 16:43, Jens Axboe <axboe@kernel.dk> wrote:
> On 01/28/2015 10:18 PM, Sitsofe Wheeler wrote:
>>
>> On 17 January 2015 at 09:11, Sitsofe Wheeler <sitsofe@gmail.com> wrote:
>>>
>>> On 16 January 2015 at 17:24, Jens Axboe <axboe@kernel.dk> wrote:
>>>>
>>>> I wonder if this will do the trick, can you check? If not, I'll need the
>>>> full output of the two runs, and the state files saved from the first
>>>> run.
>>>
>>> I tried revision ae703cdf31532e337cc18c259c883bf5314aa43a which seems
>>> to already have that patch rolled into it (via commit
>>> def0009508f0f3c763c4de5e0b62388b42544faf ) but it made no
>>> difference...
>>>
>>> Find the two runs with --debug=all and and the state file attached.
>>
>> Just checking - did the above arrive correctly?
>
> I apparently missed it... Will take a look, but traveling in the next few
> days so response might be a bit slower.

Just pinging this one again... If it's too soon just let me know!

-- 
Sitsofe | http://sucs.org/~sits/


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

end of thread, other threads:[~2015-02-15 13:07 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-15 11:01 Should io_limits/queue depth flushed persist while using verify_state? Sitsofe Wheeler
2015-01-15 22:45 ` Jens Axboe
2015-01-16 17:24   ` Jens Axboe
2015-01-17  9:11     ` Sitsofe Wheeler
2015-01-29  6:18       ` Sitsofe Wheeler
2015-01-29 16:43         ` Jens Axboe
2015-02-15 13:07           ` Sitsofe Wheeler

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.