fio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jens Axboe <axboe@kernel.dk>
To: Dennis Zhou <dennis@kernel.org>
Cc: Tejun Heo <tj@kernel.org>, Andy Newell <newella@fb.com>,
	fio@vger.kernel.org, kernel-team@fb.com
Subject: Re: [PATCH 2/4] blktrace: add support to interleave blktrace files
Date: Wed, 19 Sep 2018 13:34:55 -0600	[thread overview]
Message-ID: <4d3d02fb-e563-8a70-e14c-7dda91ea4390@kernel.dk> (raw)
In-Reply-To: <20180919192900.GA14982@dennisz-mbp.dhcp.thefacebook.com>

On 9/19/18 1:29 PM, Dennis Zhou wrote:
> Hi Jens,
> 
> On Wed, Sep 19, 2018 at 12:47:37PM -0600, Jens Axboe wrote:
>> On 9/19/18 12:25 PM, Dennis Zhou wrote:
>>> Running concurrent workloads via multiple jobs can lead to
>>> nondeterministic results as we are at the schedulers mercy. While the
>>> actual performance of the workload may vary regardless, this makes the
>>> order of events consistent.
>>>
>>> This patch introduces two flags: --merge_blktrace_file=<file> and
>>> --merge-blktrace-only. When the first is specified, files that are ':'
>>> separated in --read_iolog are passed to a merge function wich then
>>> produces a single sorted trace file. This file is then passed on in
>>> place of the sorted list or fio exists if --merge-blktrace-only is
>>> specified.
>>>
>>> During merging, events are filtered based on what fio cares about and
>>> the pdu is discarded as well.
>>
>> This looks fine to me, but it's missing documentation (fio.1 and HOWTO)
>> for added options. For the feature as a whole as well.
>>
>>> diff --git a/thread_options.h b/thread_options.h
>>> index 39315834..99552326 100644
>>> --- a/thread_options.h
>>> +++ b/thread_options.h
>>> @@ -258,6 +258,7 @@ struct thread_options {
>>>  	char *read_iolog_file;
>>>  	bool read_iolog_chunked;
>>>  	char *write_iolog_file;
>>> +	char *merge_blktrace_file;
>>>  
>>>  	unsigned int write_bw_log;
>>>  	unsigned int write_lat_log;
>>
>> This needs an accompanying change to struct thread_options_pack, and a
>> cconv.c addition to ensure it's converted properly over the wire for
>> client/server runs of fio.o
>>
>> Basically both comments here apply to the rest of the series as well :-)
>>
> 
> Ah that makes sense. I wasn't quite sure what the _pack was for. Now I
> get it. I'll add the corresponding documentation and send out a v2!
> Thanks for looking at it so quickly.

No problem - also forgot to mention that you want to bump FIO_SERVER_VER
as well, if you modify thread_options_pack.

-- 
Jens Axboe



  reply	other threads:[~2018-09-19 19:34 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-09-19 18:25 [PATCH 0/4] add option to interleave blktraces Dennis Zhou
2018-09-19 18:25 ` [PATCH 1/4] options: rename name string operations for more general use Dennis Zhou
2018-09-19 18:25 ` [PATCH 2/4] blktrace: add support to interleave blktrace files Dennis Zhou
2018-09-19 18:47   ` Jens Axboe
2018-09-19 19:29     ` Dennis Zhou
2018-09-19 19:34       ` Jens Axboe [this message]
2018-09-19 18:25 ` [PATCH 3/4] blktrace: add option to scale a trace Dennis Zhou
2018-09-19 18:49   ` Jens Axboe
2018-09-19 19:56     ` Dennis Zhou
2018-09-19 19:59       ` Jens Axboe
2018-09-19 21:06         ` Dennis Zhou
2018-09-19 21:19           ` Jens Axboe
2018-09-19 18:25 ` [PATCH 4/4] blktrace: add option to iterate over a trace multiple times Dennis Zhou
  -- strict thread matches above, loose matches on Subject: below --
2018-09-20 18:08 [PATCH v2 0/4] add option to interleave blktraces Dennis Zhou
2018-09-20 18:08 ` [PATCH 2/4] blktrace: add support to interleave blktrace files Dennis Zhou

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4d3d02fb-e563-8a70-e14c-7dda91ea4390@kernel.dk \
    --to=axboe@kernel.dk \
    --cc=dennis@kernel.org \
    --cc=fio@vger.kernel.org \
    --cc=kernel-team@fb.com \
    --cc=newella@fb.com \
    --cc=tj@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).