From: Jens Axboe <axboe@kernel.dk>
To: Alireza Haghdoost <haghdoost@gmail.com>
Cc: fio@vger.kernel.org
Subject: Re: Timing information between I/Os in iolog replay
Date: Tue, 19 Feb 2013 08:46:09 +0100 [thread overview]
Message-ID: <20130219074608.GC26519@kernel.dk> (raw)
In-Reply-To: <CAB-428=TxUnVOq-NaJGn35dL0nqtyGWwAH2Aajc+BFjnFn_D7A@mail.gmail.com>
On Tue, Feb 19 2013, Alireza Haghdoost wrote:
> Hi,
>
> I am trying to understand how fio respect timing information between
> consecutive IOs in a read_iolog job, However the logic is not very
> clear for me , specially in the following function:
>
> static int read_iolog2(struct thread_data *td, FILE *f)
> {
> ...
> r = sscanf(p, "%256s %256s %llu %u", fname, act, &offset,
> &bytes);
> ...
> if (!strcmp(act, "wait"))
> rw = DDIR_WAIT;
> ...
> if (rw == DDIR_WAIT) {
> ipo->delay = offset;
> ...
> queue_io_piece(td, ipo);
> }
>
> Here is my two questions about this function:
> First, I can not see any "wait" command in a typical iolog file
> (collected with write_iolog=str job option). Should I set special
> parameter in job file to collect iolog with respect to IO timing
> information.
> Second, Why request offset assigned to ipo->delay ? I was thinking
> that ipo->delay should get some timing value which represent
> inter-submission time delay. However, In this case ipo->delay get LBA
> offset which just a byte address in my point view.
That is the format of a delay line, instead of an LBA it has a timing
parameter. Normally you don't have delays at all, it's only for replay
and record of blktraces that would be a factor.
--
Jens Axboe
prev parent reply other threads:[~2013-02-19 7:47 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-19 7:36 Timing information between I/Os in iolog replay Alireza Haghdoost
2013-02-19 7:46 ` Jens Axboe [this message]
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=20130219074608.GC26519@kernel.dk \
--to=axboe@kernel.dk \
--cc=fio@vger.kernel.org \
--cc=haghdoost@gmail.com \
/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