Flexible I/O Tester development
 help / color / mirror / Atom feed
From: Jens Axboe <axboe@kernel.dk>
To: Gavin Martin <gavin_martin@xyratex.com>
Cc: fio@vger.kernel.org
Subject: Re: Reserved Keywords & Offset Percentage
Date: Fri, 8 Mar 2013 19:05:19 +0100	[thread overview]
Message-ID: <20130308180519.GC14525@kernel.dk> (raw)
In-Reply-To: <CANUChTzsrxWbxWUS_wQ4eWJ_jVktL=DXvzGqn0U4aCukKWMmew@mail.gmail.com>

On Thu, Mar 07 2013, Gavin Martin wrote:
> Does Fio know the MaxLBA for devices it runs to?  If the size variable
> has a percentage value, for example 50%, then it must have to read the
> MaxLBA to know that on a 4TB drive the size of file we want is 2TB?
> Is this correct or does it use another method?

That is correct, when adding files or devices, fio will check and store
the size of them.

> If so would it be possible to have a reserved keyword for the MaxLBA,
> much as you do currently for pagesize, memory & cpu's so that the size
> & offset variable could make use of it, with the simple math
> supported?

The problem here is that the current keywords are system wide specific,
whereas MaxLBA could refer to any particular device. So it would only
be valid within the scope of a single file.

> Not being a programmer and having very limited knowledge when it comes
> to reading code, I have no idea if this is even possible within Fio?
> 
> If the above is not suitable, would it be possible for the offset
> variable to accept percentages much like the size variable?
> 
> This comes from wanting to run Fio from dual hosts, I need to be able
> to control which parts of the disk each host can access, so that they
> do not interfere, on drives & ssds of many different sizes.
> 
> Basic example:
> 
> [Host 1]
> size=50%
> offset=0
> 
> [Host 2]
> size=50%
> offset 50%

Suppporting a percentage with offset would not be hard, but it would
only really work for a single file. For that, it would be doable.

-- 
Jens Axboe


      reply	other threads:[~2013-03-08 18:05 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-07 13:59 Reserved Keywords & Offset Percentage Gavin Martin
2013-03-08 18:05 ` 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=20130308180519.GC14525@kernel.dk \
    --to=axboe@kernel.dk \
    --cc=fio@vger.kernel.org \
    --cc=gavin_martin@xyratex.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