Flexible I/O Tester development
 help / color / mirror / Atom feed
From: Jens Axboe <axboe@kernel.dk>
To: Sitsofe Wheeler <sitsofe@gmail.com>,
	Andrey Kuzmin <andrey.v.kuzmin@gmail.com>
Cc: Tim Walker <tim.t.walker@seagate.com>,
	"fio@vger.kernel.org" <fio@vger.kernel.org>
Subject: Re: testing thin provisioned block device
Date: Tue, 24 May 2016 08:58:09 -0600	[thread overview]
Message-ID: <57446C01.9080806@kernel.dk> (raw)
In-Reply-To: <CALjAwxgtwP+6K0qLnNzm2Z72gLGasd_oG6EH66bjV-Rc6rOEpw@mail.gmail.com>

On 05/23/2016 11:41 AM, Sitsofe Wheeler wrote:
> On 23 May 2016 at 16:02, Andrey Kuzmin <andrey.v.kuzmin@gmail.com> wrote:
>>
>> To my knowledge, there's no prebuilt configuration to read only those blocks
>> that have been written before.
>>
>> At the same time, when randommap is on, FIO keeps track of the blocks written,
>> so it may be possible to limit the read generation to those by adding
>> a bit of code.
>
> I thought this type of facility had to exist so that verification
> triggers (https://github.com/axboe/fio/blob/fio-2.10/HOWTO#L2214 ) via
> verify_state_load could work?

Definitely. Similarly to what Alireza suggested, using the same random 
seed for a reader would read the exact same blocks that fio previously 
wrote. You don't strictly need the random map for that. If you seed 
things the same way, then the offsets/sizes/etc will be generated 
identically. The random map can help with verifies if you overwrite 
blocks or need to trim, but for a pure write-then-read setup, it's not 
needed.

For instance, if you do verifies, you can have a write job file that you 
run to completion. Then you take that exact same job file, and change 
the write (random or sequential) to the equivalent read, and run fio 
again. The same thing is of course possible without doing the 
verification, but just using that same mechanism to read only the parts 
that were written.

-- 
Jens Axboe



      parent reply	other threads:[~2016-05-24 14:58 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-23 14:24 testing thin provisioned block device Tim Walker
2016-05-23 14:40 ` Alireza Haghdoost
2016-05-23 15:01   ` Alireza Haghdoost
2016-05-23 15:02 ` Andrey Kuzmin
2016-05-23 17:41   ` Sitsofe Wheeler
2016-05-24  3:52     ` Tim Walker
2016-05-24  4:41       ` Sitsofe Wheeler
2016-05-24 14:58     ` 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=57446C01.9080806@kernel.dk \
    --to=axboe@kernel.dk \
    --cc=andrey.v.kuzmin@gmail.com \
    --cc=fio@vger.kernel.org \
    --cc=sitsofe@gmail.com \
    --cc=tim.t.walker@seagate.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