From: Stefan Hajnoczi <stefanha@gmail.com>
To: Stefan Hajnoczi <stefanha@redhat.com>
Cc: "Kevin Wolf" <kwolf@redhat.com>,
ming.lei@canonical.com, qemu-devel@nongnu.org,
"Markus Armbruster" <armbru@redhat.com>,
"Paolo Bonzini" <pbonzini@redhat.com>,
"Lluís Vilanova" <vilanova@ac.upc.edu>
Subject: Re: [Qemu-devel] [PATCH v3 0/2] coroutine: dynamically scale pool size
Date: Fri, 1 Aug 2014 14:15:32 +0100 [thread overview]
Message-ID: <20140801131532.GA11091@stefanha-thinkpad.redhat.com> (raw)
In-Reply-To: <1404738953-13221-1-git-send-email-stefanha@redhat.com>
[-- Attachment #1: Type: text/plain, Size: 1306 bytes --]
On Mon, Jul 07, 2014 at 03:15:51PM +0200, Stefan Hajnoczi wrote:
> v3:
> * Use COROUTINE_POOL_RESERVATION constant in block.c [Lluis]
>
> v2:
> * Assert that callers never reduce pool below default size [eblake]
>
> The coroutine pool reuses exited coroutines to make qemu_coroutine_create()
> cheap. The size of the pool is capped to prevent it from hogging memory after
> a period of high coroutine activity. Previously the max size was hardcoded to
> 64 but this doesn't scale with guest size.
>
> A guest with lots of disks can do more parallel I/O and therefore requires a
> larger coroutine pool size. This series tries to solve the problem by scaling
> pool size according to the number of drives.
>
> Ming has confirmed that this patch series, together with his block plug/unplug
> series, solves the dataplane performance regression in QEMU 2.1.
>
> Stefan Hajnoczi (2):
> coroutine: make pool size dynamic
> block: bump coroutine pool size for drives
>
> block.c | 6 ++++++
> include/block/coroutine.h | 11 +++++++++++
> qemu-coroutine.c | 26 +++++++++++++++++++++++---
> 3 files changed, 40 insertions(+), 3 deletions(-)
Thanks, applied to my block-next tree:
https://github.com/stefanha/qemu/commits/block
Stefan
[-- Attachment #2: Type: application/pgp-signature, Size: 473 bytes --]
prev parent reply other threads:[~2014-08-01 13:15 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-07 13:15 [Qemu-devel] [PATCH v3 0/2] coroutine: dynamically scale pool size Stefan Hajnoczi
2014-07-07 13:15 ` [Qemu-devel] [PATCH v3 1/2] coroutine: make pool size dynamic Stefan Hajnoczi
2014-07-07 14:52 ` Eric Blake
2014-07-07 13:15 ` [Qemu-devel] [PATCH v3 2/2] block: bump coroutine pool size for drives Stefan Hajnoczi
2014-07-07 14:53 ` Eric Blake
2014-08-01 13:15 ` Stefan Hajnoczi [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=20140801131532.GA11091@stefanha-thinkpad.redhat.com \
--to=stefanha@gmail.com \
--cc=armbru@redhat.com \
--cc=kwolf@redhat.com \
--cc=ming.lei@canonical.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@redhat.com \
--cc=vilanova@ac.upc.edu \
/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).