From: Chris Friesen <chris.friesen@windriver.com>
To: rusty@rustcorp.com.au, mst@redhat.com,
virtualization@lists.linux-foundation.org
Subject: help? looking for limits on in-flight write operations for virtio-blk
Date: Mon, 25 Aug 2014 13:42:53 -0600 [thread overview]
Message-ID: <53FB91BD.40403@windriver.com> (raw)
Hi,
I'm trying to figure out what controls the number if in-flight virtio
block operations when running linux in qemu on top of a linux host.
The problem is that we're trying to run as many VMs as possible, using
ceph/rbd for the rootfs. We've tripped over the fact the the memory
consumption of qemu can spike noticeably when doing I/O (something as
simple as "dd" from /dev/zero to a file can cause the memory consumption
to go up by 200MB--with dozens of VMs this can add up enough to trigger
the OOM killer.
It looks like the rbd driver in qemu allocates a number of buffers for
each request, one of which is the full amount of data to read/write.
Monitoring the "inflight" numbers in the guest I've seen it go as high
as 184.
I'm trying to figure out if there are any limits on how high the
inflight numbers can go, but I'm not having much luck.
I was hopeful when I saw qemu calling virtio_add_queue() with a queue
size, but the queue size was 128 which didn't match the inflight numbers
I was seeing, and after changing the queue size down to 16 I still saw
the number of inflight requests go up to 184 and then the guest took a
kernel panic in virtqueue_add_buf().
Can someone with more knowledge of how virtio block works point me in
the right direction?
Thanks,
Chris
next reply other threads:[~2014-08-25 19:42 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-25 19:42 Chris Friesen [this message]
2014-08-26 10:34 ` help? looking for limits on in-flight write operations for virtio-blk Stefan Hajnoczi
2014-08-26 14:58 ` Chris Friesen
2014-08-27 5:43 ` Chris Friesen
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=53FB91BD.40403@windriver.com \
--to=chris.friesen@windriver.com \
--cc=mst@redhat.com \
--cc=rusty@rustcorp.com.au \
--cc=virtualization@lists.linux-foundation.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;
as well as URLs for NNTP newsgroup(s).