Flexible I/O Tester development
 help / color / mirror / Atom feed
From: Jens Axboe <axboe@kernel.dk>
To: "Georg Schönberger" <gschoenberger@thomas-krenn.com>
Cc: fio@vger.kernel.org
Subject: Re: io_u error using offsets
Date: Wed, 21 Nov 2012 10:44:49 +0100	[thread overview]
Message-ID: <50ACA291.4000000@kernel.dk> (raw)
In-Reply-To: <46391624.39675.1353347182440.JavaMail.root@thomas-krenn.com>

On 2012-11-19 18:46, Georg Schönberger wrote:
> 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

You get the error because 31256148672 isn't a multiple of 512b (which
I'm assuming is your sector size), hence the IO will be unaligned.
Direct IO cannot be unaligned, that's why you get an EINVAL from the OS.

-- 
Jens Axboe


      reply	other threads:[~2012-11-21  9:45 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 ` io_u error using offsets Georg Schönberger
2012-11-21  9:44   ` 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=50ACA291.4000000@kernel.dk \
    --to=axboe@kernel.dk \
    --cc=fio@vger.kernel.org \
    --cc=gschoenberger@thomas-krenn.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