All of lore.kernel.org
 help / color / mirror / Atom feed
* Capturing idle time with blktrace
@ 2015-04-22 20:52 Brandon Schwartz
  2015-04-22 20:53 ` Brandon Schwartz
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Brandon Schwartz @ 2015-04-22 20:52 UTC (permalink / raw)
  To: linux-btrace

Is there an accurate way to capture idle time with blktrace?  For
example, if I run/trace the following FIO script:

[global]
direct=1
ioengine=libaio
readwrite=read
blocksizeQ2k
filename=/dev/sdd

[read]
runtime\x10
name=read

[read2]
stonewall=1
startdelay@
runtime\x10
name=read2

And attempt to replay it using blkreplay, it will ignore the wait time
and simply read for 20seconds instead of read 10s, wait for 40s, read
10s.

Regards,
Brandon

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

* Re: Capturing idle time with blktrace
  2015-04-22 20:52 Capturing idle time with blktrace Brandon Schwartz
@ 2015-04-22 20:53 ` Brandon Schwartz
  2015-04-22 22:51 ` Jens Axboe
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Brandon Schwartz @ 2015-04-22 20:53 UTC (permalink / raw)
  To: linux-btrace

And by blkreplay, I meant replay the blktrace with FIO

On Wed, Apr 22, 2015 at 2:52 PM, Brandon Schwartz <schwartz.xn@gmail.com> wrote:
> Is there an accurate way to capture idle time with blktrace?  For
> example, if I run/trace the following FIO script:
>
> [global]
> direct=1
> ioengine=libaio
> readwrite=read
> blocksizeQ2k
> filename=/dev/sdd
>
> [read]
> runtime\x10
> name=read
>
> [read2]
> stonewall=1
> startdelay@
> runtime\x10
> name=read2
>
> And attempt to replay it using blkreplay, it will ignore the wait time
> and simply read for 20seconds instead of read 10s, wait for 40s, read
> 10s.
>
> Regards,
> Brandon

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

* Re: Capturing idle time with blktrace
  2015-04-22 20:52 Capturing idle time with blktrace Brandon Schwartz
  2015-04-22 20:53 ` Brandon Schwartz
@ 2015-04-22 22:51 ` Jens Axboe
  2015-04-22 23:35 ` Brandon Schwartz
  2015-04-23  2:54 ` Alireza Haghdoost
  3 siblings, 0 replies; 5+ messages in thread
From: Jens Axboe @ 2015-04-22 22:51 UTC (permalink / raw)
  To: linux-btrace

On 04/22/2015 02:53 PM, Brandon Schwartz wrote:
> And by blkreplay, I meant replay the blktrace with FIO
>
> On Wed, Apr 22, 2015 at 2:52 PM, Brandon Schwartz <schwartz.xn@gmail.com> wrote:
>> Is there an accurate way to capture idle time with blktrace?  For
>> example, if I run/trace the following FIO script:
>>
>> [global]
>> direct=1
>> ioengine=libaio
>> readwrite=read
>> blocksizeQ2k
>> filename=/dev/sdd
>>
>> [read]
>> runtime\x10
>> name=read
>>
>> [read2]
>> stonewall=1
>> startdelay@
>> runtime\x10
>> name=read2
>>
>> And attempt to replay it using blkreplay, it will ignore the wait time
>> and simply read for 20seconds instead of read 10s, wait for 40s, read
>> 10s.


replay_no_stall=1

-- 
Jens Axboe


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

* Re: Capturing idle time with blktrace
  2015-04-22 20:52 Capturing idle time with blktrace Brandon Schwartz
  2015-04-22 20:53 ` Brandon Schwartz
  2015-04-22 22:51 ` Jens Axboe
@ 2015-04-22 23:35 ` Brandon Schwartz
  2015-04-23  2:54 ` Alireza Haghdoost
  3 siblings, 0 replies; 5+ messages in thread
From: Brandon Schwartz @ 2015-04-22 23:35 UTC (permalink / raw)
  To: linux-btrace

Ah, I think it was an issue with the version of FIO I was using.
Running 2.1.4 did not replay the blktrace properly and would ignore
the idle time between jobs.  I pulled 2.2.7 and it seems to be working
as expected, accurately including the idle time.

Regards,
Brandon

On Wed, Apr 22, 2015 at 4:51 PM, Jens Axboe <axboe@kernel.dk> wrote:
> On 04/22/2015 02:53 PM, Brandon Schwartz wrote:
>>
>> And by blkreplay, I meant replay the blktrace with FIO
>>
>> On Wed, Apr 22, 2015 at 2:52 PM, Brandon Schwartz <schwartz.xn@gmail.com>
>> wrote:
>>>
>>> Is there an accurate way to capture idle time with blktrace?  For
>>> example, if I run/trace the following FIO script:
>>>
>>> [global]
>>> direct=1
>>> ioengine=libaio
>>> readwrite=read
>>> blocksizeQ2k
>>> filename=/dev/sdd
>>>
>>> [read]
>>> runtime\x10
>>> name=read
>>>
>>> [read2]
>>> stonewall=1
>>> startdelay@
>>> runtime\x10
>>> name=read2
>>>
>>> And attempt to replay it using blkreplay, it will ignore the wait time
>>> and simply read for 20seconds instead of read 10s, wait for 40s, read
>>> 10s.
>
>
>
> replay_no_stall=1
>
> --
> Jens Axboe
>

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

* Re: Capturing idle time with blktrace
  2015-04-22 20:52 Capturing idle time with blktrace Brandon Schwartz
                   ` (2 preceding siblings ...)
  2015-04-22 23:35 ` Brandon Schwartz
@ 2015-04-23  2:54 ` Alireza Haghdoost
  3 siblings, 0 replies; 5+ messages in thread
From: Alireza Haghdoost @ 2015-04-23  2:54 UTC (permalink / raw)
  To: linux-btrace

It should be capable to do that. Report your issue if you find out it
does not do the job. Capture your fio workload with blktrace, then run
captured traces through btrecord with small -m value and finally
replay back with btreplay.... Not sure how replay is useful in this
case when you do have access to fio to generate the same IO workload
for you.

On Wed, Apr 22, 2015 at 3:53 PM, Brandon Schwartz <schwartz.xn@gmail.com> wrote:
> And by blkreplay, I meant replay the blktrace with FIO
>
> On Wed, Apr 22, 2015 at 2:52 PM, Brandon Schwartz <schwartz.xn@gmail.com> wrote:
>> Is there an accurate way to capture idle time with blktrace?  For
>> example, if I run/trace the following FIO script:
>>
>> [global]
>> direct=1
>> ioengine=libaio
>> readwrite=read
>> blocksizeQ2k
>> filename=/dev/sdd
>>
>> [read]
>> runtime\x10
>> name=read
>>
>> [read2]
>> stonewall=1
>> startdelay@
>> runtime\x10
>> name=read2
>>
>> And attempt to replay it using blkreplay, it will ignore the wait time
>> and simply read for 20seconds instead of read 10s, wait for 40s, read
>> 10s.
>>
>> Regards,
>> Brandon
> --
> To unsubscribe from this list: send the line "unsubscribe linux-btrace" 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] 5+ messages in thread

end of thread, other threads:[~2015-04-23  2:54 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-22 20:52 Capturing idle time with blktrace Brandon Schwartz
2015-04-22 20:53 ` Brandon Schwartz
2015-04-22 22:51 ` Jens Axboe
2015-04-22 23:35 ` Brandon Schwartz
2015-04-23  2:54 ` Alireza Haghdoost

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.