From: Jens Axboe <axboe@kernel.dk>
To: Hoppetauet <hoppetauet@gmail.com>
Cc: fio@vger.kernel.org
Subject: Re: Sequential write problems
Date: Sun, 01 Apr 2012 21:41:17 -0700 [thread overview]
Message-ID: <4F792DED.3070004@kernel.dk> (raw)
In-Reply-To: <4F78AD0A.7070904@gmail.com>
On 2012-04-01 12:31, Hoppetauet wrote:
> Hello
>
> I'm running some benchmarks on virtual machines
> I made a script that runs fio N times, with the following job file
>
> [seqwrite]
> rw=write
> size=${SIZE}
> directory=${DIRECTORY}
> bs=${BS}
> overwrite=1
> refill_buffers
>
> The first run gives about 30MB/s, which is what dd tells me is correct
> for the disk at hand
> however, from the second to last runs, I get about double that, which
> suggests some sort of caching effect
>
> Is the data that's written to the file not random? I thought
> refill-buffers and overwrite would ensure that
It is completely random data, and it's reseeded for every run. So with
the above job, there shouldn't be any chance to de-dupe or compress
anything. Maybe it's the layout? Fio defaults to using the same sequence
of random offsets everytime, to make a given run repeatable. You can set
randrepeat=0 to turn that off. That'll cause fio to random seedly the IO
offset generator as well, making the written patterns different from run
to run as well.
--
Jens Axboe
prev parent reply other threads:[~2012-04-02 4:41 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-01 19:31 Sequential write problems Hoppetauet
2012-04-02 4:41 ` 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=4F792DED.3070004@kernel.dk \
--to=axboe@kernel.dk \
--cc=fio@vger.kernel.org \
--cc=hoppetauet@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 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.