Flexible I/O Tester development
 help / color / mirror / Atom feed
From: Christian Zoffoli <czoffoli@xmerlin.org>
To: "fio@vger.kernel.org" <fio@vger.kernel.org>
Cc: Jens Axboe <JAxboe@fusionio.com>
Subject: Re: fio: first direct IO errored
Date: Sun, 31 Oct 2010 06:13:30 -0600	[thread overview]
Message-ID: <4CCD5D6A.4000103@xmerlin.org> (raw)
In-Reply-To: <4CCCCC11.7010203@fusionio.com>

Il 31/10/2010 02:53, Jens Axboe ha scritto:
[cut]
> 
> So you get -1/EINVAL on the issued IO. For O_DIRECT, this will typically
> happen for one (or more) of these reasons:
> 
> - The file system doesn't support O_DIRECT, as fio suggests. Since it
>   works for your other test, we can safely discount that reason.
> 
> - The block size is not a multiple of the block size of the device. I'm
>   guessing this is your problem. You are using 1K block sizes, if your
>   dm device has a larger block size, then this will not work.
> 
> It's not likely to be iomem_align, it's more likely to be due to bs=1k
> just being too small for your setup. To be sure, please provide a:
> 
> $ grep . /sys/block/dm-0/queue/*
> 
> for dm-0.
> 

Hi Jens

here is the output

/sys/block/dm-0/queue/discard_granularity:0
/sys/block/dm-0/queue/discard_max_bytes:0
/sys/block/dm-0/queue/discard_zeroes_data:0
/sys/block/dm-0/queue/hw_sector_size:4096
/sys/block/dm-0/queue/iostats:1
/sys/block/dm-0/queue/logical_block_size:4096
/sys/block/dm-0/queue/max_hw_sectors_kb:32767
/sys/block/dm-0/queue/max_sectors_kb:512
/sys/block/dm-0/queue/max_segment_size:65536
/sys/block/dm-0/queue/max_segments:128
/sys/block/dm-0/queue/minimum_io_size:4096
/sys/block/dm-0/queue/nomerges:0
/sys/block/dm-0/queue/nr_requests:128
/sys/block/dm-0/queue/optimal_io_size:0
/sys/block/dm-0/queue/physical_block_size:4096
/sys/block/dm-0/queue/read_ahead_kb:128
/sys/block/dm-0/queue/rotational:1
/sys/block/dm-0/queue/rq_affinity:1
/sys/block/dm-0/queue/scheduler:noop deadline [cfq]


Thank you very much.

Best regards,
Christian


  reply	other threads:[~2010-10-31 12:13 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-30 12:53 fio: first direct IO errored Christian Zoffoli
2010-10-31  1:53 ` Jens Axboe
2010-10-31 12:13   ` Christian Zoffoli [this message]
2010-10-31 12:28     ` Jens Axboe
2010-10-31 12:38       ` Christian Zoffoli
  -- strict thread matches above, loose matches on Subject: below --
2012-04-19 13:56 fio: first direct io errored bin lin
2012-04-19 18:49 ` 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=4CCD5D6A.4000103@xmerlin.org \
    --to=czoffoli@xmerlin.org \
    --cc=JAxboe@fusionio.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