All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [RFC v1 0/4]  Windows runtime improvements
@ 2017-06-27 23:57 Alistair Francis
  2017-06-27 23:57 ` [Qemu-devel] [RFC v1 1/4] util/aio-win32: Only select on what we are actually waiting for Alistair Francis
                   ` (4 more replies)
  0 siblings, 5 replies; 23+ messages in thread
From: Alistair Francis @ 2017-06-27 23:57 UTC (permalink / raw)
  To: qemu-devel, stefanha, famz
  Cc: alistair.francis, alistair23, edgar.iglesias, qemu-block

At Xilinx we have started to run our fork of QEMU on Windows and are
starting to distrubute this to customers. As part of this QEMU is
launched from an Eclipse based GUI on Windows hosts. This uncovered a
few performance issues in QEMU when running on CPU restricted machines.

What we see is that when QEMU is run on a machine where there aren't
enough spare CPUs on the host, QEMU is extreamly slow. We especially see
this when running our multi-architecture QEMU setup (MicroBlaze and ARM)
because we are running two QEMU instances as well as what else is
running on the machine.

Generally two instances of QEMU will never reach a Linux login prompt
when run on four host CPUs, but will reach the login prompt when run on
eight CPUs.

We investigated the issue and realised that it is mostly because QEMU
did not block and instead the IO thread just busy looped. This basically
locked up two CPUs (two QEMU instances) with IO threads not leaving
enough resources on the machine.

This patch series fixed the issue for us on our fork of QEMU. Our fork
is based on QEMU 2.8.1 and does not include MTTCG support. I have not
tested this on the mainline QEMU or with MTTCG. It is on my todo list to
see if I can repdouce the same issue on Windows with mainline QEMU. In
the meantime I wanted to send this series to see if anyone else has seen
Windows performance issues and if this helps with the problems. In order
to see the issue we had to do a full Linux boot, smaller baremetal
applications generally don't reproduce the same issue.

Also, most of these patches are editing the QEMU implementation of Glib,
obviously these fixes (if applicable) will need to be ported to Glib and
applied there as well. I just wanted to start here.

Alistair Francis (4):
  util/aio-win32: Only select on what we are actually waiting for
  util/oslib-win32: Remove invalid check
  util/oslib-win32: Fix up if conditional
  util/oslib-win32: Recursivly pass the timeout

 util/aio-win32.c   | 13 ++++++++++---
 util/oslib-win32.c | 25 +++++++++++++++++++------
 2 files changed, 29 insertions(+), 9 deletions(-)

-- 
2.11.0

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

end of thread, other threads:[~2017-07-07  0:05 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-27 23:57 [Qemu-devel] [RFC v1 0/4] Windows runtime improvements Alistair Francis
2017-06-27 23:57 ` [Qemu-devel] [RFC v1 1/4] util/aio-win32: Only select on what we are actually waiting for Alistair Francis
2017-06-29  9:18   ` Fam Zheng
2017-06-29 12:22   ` Paolo Bonzini
2017-06-27 23:57 ` [Qemu-devel] [RFC v1 2/4] util/oslib-win32: Remove invalid check Alistair Francis
2017-06-28  4:12   ` Philippe Mathieu-Daudé
2017-06-29  9:25   ` Fam Zheng
2017-06-29 13:32   ` Paolo Bonzini
2017-06-29 16:37     ` Alistair Francis
2017-06-30 10:37       ` Paolo Bonzini
2017-07-05 15:44         ` Alistair Francis
2017-06-27 23:57 ` [Qemu-devel] [RFC v1 3/4] util/oslib-win32: Fix up if conditional Alistair Francis
2017-06-29  9:34   ` Fam Zheng
2017-06-29 12:25   ` Paolo Bonzini
2017-06-29 16:31     ` Alistair Francis
2017-06-27 23:57 ` [Qemu-devel] [RFC v1 4/4] util/oslib-win32: Recursivly pass the timeout Alistair Francis
2017-06-29  9:38   ` Fam Zheng
2017-06-29 12:34   ` Paolo Bonzini
2017-06-29 16:33     ` Alistair Francis
2017-06-29 19:47       ` Paolo Bonzini
2017-06-29 21:17         ` Alistair Francis
2017-07-06 23:48 ` [Qemu-devel] [RFC v1 0/4] Windows runtime improvements no-reply
2017-07-07  0:05   ` Fam Zheng

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.