All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] verify: Fix latency log for verify commands.
@ 2015-02-09  3:53 Gwendal Grignou
  2015-02-09  9:39 ` Andrey Kuzmin
  2015-02-09 15:16 ` Jens Axboe
  0 siblings, 2 replies; 7+ messages in thread
From: Gwendal Grignou @ 2015-02-09  3:53 UTC (permalink / raw)
  To: axboe; +Cc: fio, Gwendal Grignou

When commands when requeued for the verify operation,
their start time was not reset, resulting in bogus latency graphs.

Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
---
 backend.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/backend.c b/backend.c
index 7ec8d2a..0f6e425 100644
--- a/backend.c
+++ b/backend.c
@@ -565,6 +565,8 @@ static void do_verify(struct thread_data *td, uint64_t verify_bytes)
 			io_u->end_io = verify_io_u;
 
 		ddir = io_u->ddir;
+		if (!td->o.disable_slat)
+			fio_gettime(&io_u->start_time, NULL);
 
 		ret = td_io_queue(td, io_u);
 		switch (ret) {
-- 
2.2.0.rc0.207.ga3a616c



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

* Re: [PATCH] verify: Fix latency log for verify commands.
  2015-02-09  3:53 [PATCH] verify: Fix latency log for verify commands Gwendal Grignou
@ 2015-02-09  9:39 ` Andrey Kuzmin
  2015-02-09 15:17   ` Jens Axboe
  2015-02-09 15:16 ` Jens Axboe
  1 sibling, 1 reply; 7+ messages in thread
From: Andrey Kuzmin @ 2015-02-09  9:39 UTC (permalink / raw)
  To: Gwendal Grignou; +Cc: Jens Axboe, fio

On Mon, Feb 9, 2015 at 6:53 AM, Gwendal Grignou <gwendal@chromium.org> wrote:
> When commands when requeued for the verify operation,
> their start time was not reset, resulting in bogus latency graphs.

Does it really make sense to account for the verification pass in the
latency profile?

Regards,
Andrey

>
> Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
> ---
>  backend.c | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/backend.c b/backend.c
> index 7ec8d2a..0f6e425 100644
> --- a/backend.c
> +++ b/backend.c
> @@ -565,6 +565,8 @@ static void do_verify(struct thread_data *td, uint64_t verify_bytes)
>                         io_u->end_io = verify_io_u;
>
>                 ddir = io_u->ddir;
> +               if (!td->o.disable_slat)
> +                       fio_gettime(&io_u->start_time, NULL);
>
>                 ret = td_io_queue(td, io_u);
>                 switch (ret) {
> --
> 2.2.0.rc0.207.ga3a616c
>
> --
> 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


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

* Re: [PATCH] verify: Fix latency log for verify commands.
  2015-02-09  3:53 [PATCH] verify: Fix latency log for verify commands Gwendal Grignou
  2015-02-09  9:39 ` Andrey Kuzmin
@ 2015-02-09 15:16 ` Jens Axboe
  1 sibling, 0 replies; 7+ messages in thread
From: Jens Axboe @ 2015-02-09 15:16 UTC (permalink / raw)
  To: Gwendal Grignou; +Cc: fio

On 02/08/2015 08:53 PM, Gwendal Grignou wrote:
> When commands when requeued for the verify operation,
> their start time was not reset, resulting in bogus latency graphs.
>
> Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
> ---
>   backend.c | 2 ++
>   1 file changed, 2 insertions(+)
>
> diff --git a/backend.c b/backend.c
> index 7ec8d2a..0f6e425 100644
> --- a/backend.c
> +++ b/backend.c
> @@ -565,6 +565,8 @@ static void do_verify(struct thread_data *td, uint64_t verify_bytes)
>   			io_u->end_io = verify_io_u;
>
>   		ddir = io_u->ddir;
> +		if (!td->o.disable_slat)
> +			fio_gettime(&io_u->start_time, NULL);
>
>   		ret = td_io_queue(td, io_u);
>   		switch (ret) {

Thanks, applied.


-- 
Jens Axboe



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

* Re: [PATCH] verify: Fix latency log for verify commands.
  2015-02-09  9:39 ` Andrey Kuzmin
@ 2015-02-09 15:17   ` Jens Axboe
  2015-02-09 15:25     ` Andrey Kuzmin
  0 siblings, 1 reply; 7+ messages in thread
From: Jens Axboe @ 2015-02-09 15:17 UTC (permalink / raw)
  To: Andrey Kuzmin, Gwendal Grignou; +Cc: fio

On 02/09/2015 02:39 AM, Andrey Kuzmin wrote:
> On Mon, Feb 9, 2015 at 6:53 AM, Gwendal Grignou <gwendal@chromium.org> wrote:
>> When commands when requeued for the verify operation,
>> their start time was not reset, resulting in bogus latency graphs.
>
> Does it really make sense to account for the verification pass in the
> latency profile?

Why not? If you are doing a full write then verification, you get a full 
set of separate read and write latencies.

-- 
Jens Axboe



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

* Re: [PATCH] verify: Fix latency log for verify commands.
  2015-02-09 15:17   ` Jens Axboe
@ 2015-02-09 15:25     ` Andrey Kuzmin
  2015-02-09 15:27       ` Jens Axboe
  0 siblings, 1 reply; 7+ messages in thread
From: Andrey Kuzmin @ 2015-02-09 15:25 UTC (permalink / raw)
  To: Jens Axboe; +Cc: Gwendal Grignou, fio

On Mon, Feb 9, 2015 at 6:17 PM, Jens Axboe <axboe@kernel.dk> wrote:
> On 02/09/2015 02:39 AM, Andrey Kuzmin wrote:
>>
>> On Mon, Feb 9, 2015 at 6:53 AM, Gwendal Grignou <gwendal@chromium.org>
>> wrote:
>>>
>>> When commands when requeued for the verify operation,
>>> their start time was not reset, resulting in bogus latency graphs.
>>
>>
>> Does it really make sense to account for the verification pass in the
>> latency profile?
>
>
> Why not? If you are doing a full write then verification, you get a full set
> of separate read and write latencies.

I'd rather get them on a per-pass basis. Imagine an r/w workload being
done with verification pass (just to be on the safe side): I'd rather
keep read-only verification pass latencies separate from the primary
workload latency profile. YMMW :).

>
> --
> Jens Axboe
>


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

* Re: [PATCH] verify: Fix latency log for verify commands.
  2015-02-09 15:25     ` Andrey Kuzmin
@ 2015-02-09 15:27       ` Jens Axboe
  2015-02-09 15:59         ` Andrey Kuzmin
  0 siblings, 1 reply; 7+ messages in thread
From: Jens Axboe @ 2015-02-09 15:27 UTC (permalink / raw)
  To: Andrey Kuzmin; +Cc: Gwendal Grignou, fio

On 02/09/2015 08:25 AM, Andrey Kuzmin wrote:
> On Mon, Feb 9, 2015 at 6:17 PM, Jens Axboe <axboe@kernel.dk> wrote:
>> On 02/09/2015 02:39 AM, Andrey Kuzmin wrote:
>>>
>>> On Mon, Feb 9, 2015 at 6:53 AM, Gwendal Grignou <gwendal@chromium.org>
>>> wrote:
>>>>
>>>> When commands when requeued for the verify operation,
>>>> their start time was not reset, resulting in bogus latency graphs.
>>>
>>>
>>> Does it really make sense to account for the verification pass in the
>>> latency profile?
>>
>>
>> Why not? If you are doing a full write then verification, you get a full set
>> of separate read and write latencies.
>
> I'd rather get them on a per-pass basis. Imagine an r/w workload being
> done with verification pass (just to be on the safe side): I'd rather
> keep read-only verification pass latencies separate from the primary
> workload latency profile. YMMW :).

Sure, if it's a mixed read/write workload and you verify after the fact, 
then it could be handy to have the two "different" kinds of reads 
separate. But that's really orthogonal to the issue being fixed by 
Gwendals patch...


-- 
Jens Axboe



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

* Re: [PATCH] verify: Fix latency log for verify commands.
  2015-02-09 15:27       ` Jens Axboe
@ 2015-02-09 15:59         ` Andrey Kuzmin
  0 siblings, 0 replies; 7+ messages in thread
From: Andrey Kuzmin @ 2015-02-09 15:59 UTC (permalink / raw)
  To: Jens Axboe; +Cc: Gwendal Grignou, fio

On Mon, Feb 9, 2015 at 6:27 PM, Jens Axboe <axboe@kernel.dk> wrote:
> On 02/09/2015 08:25 AM, Andrey Kuzmin wrote:
>>
>> On Mon, Feb 9, 2015 at 6:17 PM, Jens Axboe <axboe@kernel.dk> wrote:
>>>
>>> On 02/09/2015 02:39 AM, Andrey Kuzmin wrote:
>>>>
>>>>
>>>> On Mon, Feb 9, 2015 at 6:53 AM, Gwendal Grignou <gwendal@chromium.org>
>>>> wrote:
>>>>>
>>>>>
>>>>> When commands when requeued for the verify operation,
>>>>> their start time was not reset, resulting in bogus latency graphs.
>>>>
>>>>
>>>>
>>>> Does it really make sense to account for the verification pass in the
>>>> latency profile?
>>>
>>>
>>>
>>> Why not? If you are doing a full write then verification, you get a full
>>> set
>>> of separate read and write latencies.
>>
>>
>> I'd rather get them on a per-pass basis. Imagine an r/w workload being
>> done with verification pass (just to be on the safe side): I'd rather
>> keep read-only verification pass latencies separate from the primary
>> workload latency profile. YMMW :).
>
>
> Sure, if it's a mixed read/write workload and you verify after the fact,
> then it could be handy to have the two "different" kinds of reads separate.

May be a case for an extra option to control latency profile
aggregation (disable_verify_lat ?)?

> But that's really orthogonal to the issue being fixed by Gwendals patch...

Sure, it has just brought up an earlier point :).


Regards,
Andrey


>
>
> --
> Jens Axboe
>


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

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

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-09  3:53 [PATCH] verify: Fix latency log for verify commands Gwendal Grignou
2015-02-09  9:39 ` Andrey Kuzmin
2015-02-09 15:17   ` Jens Axboe
2015-02-09 15:25     ` Andrey Kuzmin
2015-02-09 15:27       ` Jens Axboe
2015-02-09 15:59         ` Andrey Kuzmin
2015-02-09 15:16 ` 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.