From: Josh Durgin <josh.durgin@inktank.com>
To: Stefan Hajnoczi <stefanha@redhat.com>
Cc: ceph-users@lists.ceph.com,
Andrei Mikhailovsky <andrei@arhont.com>,
Oliver Francke <Oliver.Francke@filoo.de>,
Mike Dawson <mike.dawson@cloudapt.com>,
qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [ceph-users] qemu-1.4.0 and onwards, linux kernel 3.2.x, ceph-RBD, heavy I/O leads to kernel_hung_tasks_timout_secs message and unresponsive qemu-process, [Bug 1207686]
Date: Sat, 10 Aug 2013 00:30:23 -0700 [thread overview]
Message-ID: <5205EC0F.1030006@inktank.com> (raw)
In-Reply-To: <20130809150353.GA9270@stefanha-thinkpad.redhat.com>
On 08/09/2013 08:03 AM, Stefan Hajnoczi wrote:
> On Fri, Aug 09, 2013 at 03:05:22PM +0100, Andrei Mikhailovsky wrote:
>> I can confirm that I am having similar issues with ubuntu vm guests using fio with bs=4k direct=1 numjobs=4 iodepth=16. Occasionally i see hang tasks, occasionally guest vm stops responding without leaving anything in the logs and sometimes i see kernel panic on the console. I typically leave the runtime of the fio test for 60 minutes and it tends to stop responding after about 10-30 mins.
>>
>> I am on ubuntu 12.04 with 3.5 kernel backport and using ceph 0.61.7 with qemu 1.5.0 and libvirt 1.0.2
Oliver's logs show one aio_flush() never getting completed, which
means it's an issue with aio_flush in librados when rbd caching isn't
used.
Mike's log is from a qemu without aio_flush(), and with caching turned
on, and shows all flushes completing quickly, so it's a separate bug.
> Josh,
> In addition to the Ceph logs you can also use QEMU tracing with the
> following events enabled:
> virtio_blk_handle_write
> virtio_blk_handle_read
> virtio_blk_rw_complete
>
> See docs/tracing.txt for details on usage.
>
> Inspecting the trace output will let you observe the I/O request
> submission/completion from the virtio-blk device perspective. You'll be
> able to see whether requests are never being completed in some cases.
Thanks for the info. That may be the best way to check what's happening
when caching is enabled. Mike, could you recompile qemu with tracing
enabled and get a trace of the hang you were seeing, in addition to
the ceph logs?
> This bug seems like a corner case or race condition since most requests
> seem to complete just fine. The problem is that eventually the
> virtio-blk device becomes unusable when it runs out of descriptors (it
> has 128). And before that limit is reached the guest may become
> unusable due to the hung I/O requests.
It seems only one request hung from an important kernel thread in
Oliver's case, but it's good to be aware of the descriptor limit.
Josh
next prev parent reply other threads:[~2013-08-10 7:29 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <51FB887F.5070908@filoo.de>
[not found] ` <51FC2903.3030802@cloudapt.com>
2013-08-04 13:36 ` [Qemu-devel] [ceph-users] qemu-1.4.0 and onwards, linux kernel 3.2.x, ceph-RBD, heavy I/O leads to kernel_hung_tasks_timout_secs message and unresponsive qemu-process, [Bug 1207686] Oliver Francke
2013-08-05 7:48 ` Stefan Hajnoczi
2013-08-05 20:08 ` Mike Dawson
2013-08-13 21:26 ` Sage Weil
2013-08-13 22:00 ` James Harper
2013-08-08 12:40 ` Oliver Francke
2013-08-08 17:01 ` Josh Durgin
2013-08-09 9:22 ` Oliver Francke
2013-08-09 14:05 ` Andrei Mikhailovsky
2013-08-09 15:03 ` Stefan Hajnoczi
2013-08-10 7:30 ` Josh Durgin [this message]
2013-08-13 21:34 ` Sage Weil
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=5205EC0F.1030006@inktank.com \
--to=josh.durgin@inktank.com \
--cc=Oliver.Francke@filoo.de \
--cc=andrei@arhont.com \
--cc=ceph-users@lists.ceph.com \
--cc=mike.dawson@cloudapt.com \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@redhat.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 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.