All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sitsofe Wheeler <sitsofe@gmail.com>
To: Jun He <jhe@cs.wisc.edu>
Cc: "fio@vger.kernel.org" <fio@vger.kernel.org>
Subject: Re: io_size usage
Date: Thu, 10 Dec 2015 06:56:00 +0000	[thread overview]
Message-ID: <CALjAwxgQwgrQbd9EeuRtqnmo5WrPoXk=HVuQ2nnuwgJ=9kDqOw@mail.gmail.com> (raw)
In-Reply-To: <loom.20151209T033523-799@post.gmane.org>

Hi,

Your job sets and io_size four times that of "size" of the disk that
you are using. This will force your I/O to wrap abound to the start of
the region (why not use loops?). Are you saying that you think the
sync job's iolog is wrong because it only says it performed one loop?

On 9 December 2015 at 02:50, Jun He <jhe@cs.wisc.edu> wrote:
> Hi all,
> I think there is a bug for io_size.
>
> For example, I want to write 16KB data to a file of size 8KB (so each block is
> written twice) and I have the following job file:
>
> [global]
> ioengine=sync
> rw=write
> bs=4kb
> size=8kb
> io_size=32kb
>
> [job1]
> write_iolog=iolog.1
>
>
> After running, iolog.1 will contain the following contents:
>
> fio version 2 iolog
> job1.0.0 add
> job1.0.0 open
> job1.0.0 write 0 4096
> job1.0.0 write 4096 4096
> job1.0.0 close
>
> This shows that each block has been only written once.
>
> If I change the ioengine to libaio, iolog.1 will contain:
>
> fio version 2 iolog
> job1.0.0 add
> job1.0.0 open
> job1.0.0 write 0 4096
> job1.0.0 write 4096 4096
> job1.0.0 close
> job1.0.0 open
> job1.0.0 write 0 4096
> job1.0.0 write 4096 4096
> job1.0.0 close
> job1.0.0 open
> job1.0.0 write 0 4096
> job1.0.0 write 4096 4096
> job1.0.0 close
> job1.0.0 open
> job1.0.0 write 0 4096
> job1.0.0 write 4096 4096
> job1.0.0 close
>
>
> Bug or wrong usage?
>
> Thanks,
> Jun
>
>
>
> --
> 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



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

  reply	other threads:[~2015-12-10  6:56 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-09  2:50 io_size usage Jun He
2015-12-10  6:56 ` Sitsofe Wheeler [this message]
2015-12-10 15:14   ` Jun He

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='CALjAwxgQwgrQbd9EeuRtqnmo5WrPoXk=HVuQ2nnuwgJ=9kDqOw@mail.gmail.com' \
    --to=sitsofe@gmail.com \
    --cc=fio@vger.kernel.org \
    --cc=jhe@cs.wisc.edu \
    /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 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.