Flexible I/O Tester development
 help / color / mirror / Atom feed
From: Akira Hayakawa <ruby.wktk@gmail.com>
To: fio@vger.kernel.org
Subject: [Question] What if the parameter for --size option is smaller than the target device?
Date: Sun, 21 Sep 2014 12:57:26 +0900	[thread overview]
Message-ID: <541E4CA6.8070705@gmail.com> (raw)

I resend because the server doesn't ack.
Please ignore the previous, if you receive two. (Please remove from the server)

Hi,

I am writing a test with fio tool (2.0.8) and I am facing a problem.

I just want to submit 512B random write to a block device.
In my case, the size of the device is 2MB and the amount of writes (specified by --size option) is 32MB.

like this (A line from device-mapper-test-suite. Is my command wrong?):
      ProcessControl.run("fio --name=test --filename=#{dev.path} --rw=randwrite --ioengine=libaio --direct=1 --size=#{@param[0]}m --bs=512")

The problem is, the runtime is too short.
The block device is just a single HDD so, it will be 30sec or so. But it's actually 3sec...

My guess is that fio uses min(device size, param to --size) as the amount of writes here.
To investigate it, I increased the size of the device to x10 and saw the runtime gets x10.

My questions are:
1. Is my guess correct?
2. What shall I do to make fio work as I want it to do?

Thanks,
- Akira

             reply	other threads:[~2014-09-21  3:57 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-21  3:57 Akira Hayakawa [this message]
2014-09-21 10:21 ` [Question] What if the parameter for --size option is smaller than the target device? Sitsofe Wheeler
2014-09-22 15:20   ` Akira Hayakawa
  -- strict thread matches above, loose matches on Subject: below --
2014-09-21  3:38 Akira Hayakawa

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=541E4CA6.8070705@gmail.com \
    --to=ruby.wktk@gmail.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