qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH v2 0/2] coroutine: dynamically scale pool size
@ 2014-07-04  8:56 Stefan Hajnoczi
  2014-07-04  8:56 ` [Qemu-devel] [PATCH v2 1/2] coroutine: make pool size dynamic Stefan Hajnoczi
  2014-07-04  8:56 ` [Qemu-devel] [PATCH v2 2/2] block: bump coroutine pool size for drives Stefan Hajnoczi
  0 siblings, 2 replies; 8+ messages in thread
From: Stefan Hajnoczi @ 2014-07-04  8:56 UTC (permalink / raw)
  To: qemu-devel; +Cc: Kevin Wolf, Paolo Bonzini, ming.lei, Stefan Hajnoczi

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                   |  4 ++++
 include/block/coroutine.h | 11 +++++++++++
 qemu-coroutine.c          | 26 +++++++++++++++++++++++---
 3 files changed, 38 insertions(+), 3 deletions(-)

-- 
1.9.3

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2014-07-07 12:32 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-04  8:56 [Qemu-devel] [PATCH v2 0/2] coroutine: dynamically scale pool size Stefan Hajnoczi
2014-07-04  8:56 ` [Qemu-devel] [PATCH v2 1/2] coroutine: make pool size dynamic Stefan Hajnoczi
2014-07-04  8:56 ` [Qemu-devel] [PATCH v2 2/2] block: bump coroutine pool size for drives Stefan Hajnoczi
2014-07-04 10:03   ` Markus Armbruster
2014-07-07  8:12     ` Stefan Hajnoczi
2014-07-07 12:32       ` Markus Armbruster
2014-07-04 10:36   ` Lluís Vilanova
2014-07-07  8:12     ` Stefan Hajnoczi

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).