From: Jens Axboe <jens.axboe@oracle.com>
To: charles zhuang <cjiazhuang@yahoo.com>
Cc: fio@vger.kernel.org
Subject: Re: libaio ioengine cause initiator crash
Date: Mon, 8 Feb 2010 23:10:33 +0100 [thread overview]
Message-ID: <20100208221033.GW1025@kernel.dk> (raw)
In-Reply-To: <600237.15205.qm@web80807.mail.mud.yahoo.com>
On Mon, Feb 08 2010, charles zhuang wrote:
> Hi,
> I am using fio libaio ioengine to benchmark on stgt iser target stack (http://stgt.sourceforge.net/). I found out that using bs size at 2k and under (2k, 1k, 512) keeps causing the iser initiator crash at different places. The initiator kernel stack dump at various places, with some of them has aio_* call involved. Most of the oops message looks like:
> Oops: 0000 [1] SMP
> last sysfs file: /block/sdb/stat
> ...
>
> The easiest way I can produce this problem is after the initiator log in to iser stack, run following command from initiator (where /dev/sdb is the exported disk from target):
> > fio --rw=read --bs=2k --numjobs=32 --iodepth=64 --sync=0 --direct=1 --randrepeat=0 --group_reporting --ioengine=libaio --filename=/dev/sdb --name=test --loops=100 --size=524288000 --runtime=30 --softrandommap=1
>
> If I change "--bw=2k" to "--bs=4k" and over, it runs fine.
>
> Initially I am only looking at the iser target (stgt) side. But now I suspect it's something to do with the initiator page coherency size, which I believe is 4k.
>
> Jens and other, can you provide some insights for this? Thanks for any help.
It's crashing in the kernel, so it should be reported as a kernel issue.
If you include the full oops in a reply, I can take a look.
If stgt is restricted to page size transfers, then it should set the
hardware block size to that (which would then cause fio with 2k bs and
O_DIRECT to error out, instead of crash).
--
Jens Axboe
next prev parent reply other threads:[~2010-02-08 22:10 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-08 21:57 libaio ioengine cause initiator crash charles zhuang
2010-02-08 22:10 ` Jens Axboe [this message]
2010-02-08 22:47 ` charles zhuang
2010-02-08 23:27 ` charles zhuang
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=20100208221033.GW1025@kernel.dk \
--to=jens.axboe@oracle.com \
--cc=cjiazhuang@yahoo.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.