All of lore.kernel.org
 help / color / mirror / Atom feed
From: Nikolaus Jeremic <jeremic@informatik.uni-rostock.de>
To: Jens Axboe <axboe@kernel.dk>, fio@vger.kernel.org
Subject: Re: Writing an amount of data less than capacity at random to offsets from whole address range
Date: Mon, 28 Apr 2014 19:15:31 +0200	[thread overview]
Message-ID: <535E8CB3.8070803@informatik.uni-rostock.de> (raw)
In-Reply-To: <534C40D7.3060406@kernel.dk>

Hello,

first of all, thank you very much. It works very well. I would be 
grateful if you could add this option to the next fio release.

Thanks,
Nikolaus


Am 14.04.2014 22:11, schrieb Jens Axboe:
> On 04/14/2014 06:40 AM, Nikolaus Jeremic wrote:
>> Hello,
>>
>> how can I nudge fio to write a certain amount of data (less than
>> capacity of block device) to randomly generated offsets covering the
>> whole address space of a block device (e.g. MD RAID device)?
>>
>> Using the size parameter yields offsets from 0 to size (thus, not
>> covering the whole address range). Using a time based job leads to the
>> desired result, but I would like two write a defined amount of data. I
>> have already tried this with fio 2.0.14, 2.1.6.1, 2.1.17, and 2.1.18
>> without success. I am using Gentoo Linux with kernel 3.13.6 and libaio
>> 0.3.109. The job description looks as follows:
>
> Fio doesn't currently support that. Can you try the attached? It adds an
> option to separately define an io limit, io_limit. If io_limit is not
> set, size= behaves as it did before: if you don't give a size, size is
> defined by the files added. With this patch, if you do
>
> filename=/dev/md9
> size=40g
>
> fio would read 40g between 0..40G
>
> If you do:
>
> filename=/dev/md9
>
> fio would access the entire device.
>
> If you do:
>
> filename=/dev/md9
> io_limit=10g
>
> fio would access the entire device, quit when 10G of IO was done. Etc.
>


-- 
Dipl.-Inf. Nikolaus Jeremic          nikolaus.jeremic@uni-rostock.de
Universitaet Rostock                 Tel:  (+49) 381 / 498 - 7635
Albert-Einstein-Str. 22	             Fax:  (+49) 381 / 498 - 7482
18059 Rostock, Germany               wwwava.informatik.uni-rostock.de


  reply	other threads:[~2014-04-28 17:15 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-14 12:40 Writing an amount of data less than capacity at random to offsets from whole address range Nikolaus Jeremic
2014-04-14 20:11 ` Jens Axboe
2014-04-28 17:15   ` Nikolaus Jeremic [this message]
2014-04-29  2:03     ` Jens Axboe

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=535E8CB3.8070803@informatik.uni-rostock.de \
    --to=jeremic@informatik.uni-rostock.de \
    --cc=axboe@kernel.dk \
    --cc=fio@vger.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 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.