Flexible I/O Tester development
 help / color / mirror / Atom feed
From: James Vanns <james.vanns@framestore.com>
To: fio@vger.kernel.org
Subject: Prevention of full device?
Date: Tue, 2 Jul 2013 16:34:34 +0100 (BST)	[thread overview]
Message-ID: <335085150.31083401.1372779274187.JavaMail.root@framestore.com> (raw)
In-Reply-To: <27943043.31081549.1372778944376.JavaMail.root@framestore.com>

Hi. In attempting to get a single job to create files before allowing further jobs to perform I/O on them, I cannot
see how to restrict the sum total of all the files on the device. I wish to create n files ranging in size from i-j
with a cap of m in total (so the sum of n does not exceed m). For example;

[file-generator]
numjobs=1
create_only=1
create_on_open=0
time_based=0
fill_fs=0
fill_device=0
filesize=4k-20m
size=512m
nrfiles=256
fallocate=posix
fadvise_hint=1
filename_format=\$filenum.dat
directory=/tmp/fio

I'd expect the above to create 256 files ranging from 4k to 20m and a 'du -sh' on /tmp/fio to result in
512m. However, it always seems to fill the device! How can I stop this?

Cheers,

Jim

-- 
Jim Vanns
Senior Software Developer
Framestore


       reply	other threads:[~2013-07-02 15:40 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <27943043.31081549.1372778944376.JavaMail.root@framestore.com>
2013-07-02 15:34 ` James Vanns [this message]
2013-07-03  7:08   ` Prevention of full device? 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=335085150.31083401.1372779274187.JavaMail.root@framestore.com \
    --to=james.vanns@framestore.com \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox