Flexible I/O Tester development
 help / color / mirror / Atom feed
From: "Georg Schönberger" <gschoenberger@thomas-krenn.com>
To: fio@vger.kernel.org
Subject: io_u error using offsets
Date: Mon, 19 Nov 2012 18:46:22 +0100 (CET)	[thread overview]
Message-ID: <46391624.39675.1353347182440.JavaMail.root@thomas-krenn.com> (raw)
In-Reply-To: <1364943454.39595.1353345861273.JavaMail.root@thomas-krenn.com>

Hello,

I am trying to divide a 4TB hard disk into 128 equal parts. Therefore I divide the disk size (in Bytes) with 128 - this is my increment size. Then I start several fio job rounds with the offset increasing every round by the increment. Unfortunately I get an error for the first offset not equal to 0.
I suppose this is an issue with the offsets not being correctly aligned.
Here is my call to fio:
$ sudo /usr/local/bin/fio --rw=randrw --name=wd --offset=31256148672 --direct=1 --bs=64k --filename=/dev/sdi --rwmixread=100 --numjobs=1 --ioengine=libaio --runtime=60 --iodepth=16 --size=31256148672 --group_reporting --debug=all

Here is the error message and the debug output:
[...]
random   18174 off rand 2400737531
random   18174 free: b=266586, idx=4165, bit=26
random   18174 free: b=266586, idx=4165, bit=26
io       18174 fill_io_u: io_u 0x16ed510: off=48727128768/len=65536/ddir=0//dev/sdi
io       18174 prep: io_u 0x16ed510: off=48727128768/len=65536/ddir=0//dev/sdi
io       18174 ->prep(0x16ed510)=0
io       18174 queue: io_u 0x16ed510: off=48727128768/len=65536/ddir=0//dev/sdi
io       18174 calling ->commit(), depth 16
io       18174 io_u_queued_completed: min=1
io       18174 getevents: 1
io       18174 io complete: io_u 0x16eff80: off=33141291712/len=65536/ddir=0//dev/sdi
fio: io_u error on file /dev/sdi: Invalid argument
     read offset=33141291712, buflen=65536
file     18174 put file /dev/sdi, ref=17
io       18174 io_u_queued_completed: min=0
io       18174 getevents: 1
io       18174 io complete: io_u 0x16efcb0: off=54394616512/len=65536/ddir=0//dev/sdi
fio: io_u error on file /dev/sdi: Invalid argument
     read offset=54394616512, buflen=65536
file     18174 put file /dev/sdi, ref=16
fio: pid=18174, err=22/file:io_u.c:1305, func=io_u error, error=Invalid argument
file     18174 close files
file     18174 put file /dev/sdi, ref=15

I am happy with any suggestions =)
Best regards Georg

       reply	other threads:[~2012-11-19 17:53 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1364943454.39595.1353345861273.JavaMail.root@thomas-krenn.com>
2012-11-19 17:46 ` Georg Schönberger [this message]
2012-11-21  9:44   ` io_u error using offsets 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=46391624.39675.1353347182440.JavaMail.root@thomas-krenn.com \
    --to=gschoenberger@thomas-krenn.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