Received: from eggs.gnu.org ([2001:4830:134:3::10]:51622) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1brgwc-0000Ok-Ly for qemu-devel@nongnu.org; Wed, 05 Oct 2016 03:48:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1brgwY-0004uW-Gc for qemu-devel@nongnu.org; Wed, 05 Oct 2016 03:48:49 -0400 Received: from mail-wm0-x243.google.com ([2a00:1450:400c:c09::243]:35727) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1brgwY-0004uS-9a for qemu-devel@nongnu.org; Wed, 05 Oct 2016 03:48:46 -0400 Received: by mail-wm0-x243.google.com with SMTP id f193so18579932wmg.2 for ; Wed, 05 Oct 2016 00:48:46 -0700 (PDT) Sender: Paolo Bonzini References: <1475580648-6470-1-git-send-email-lvivier@redhat.com> <1475580648-6470-2-git-send-email-lvivier@redhat.com> <4a11fc7e-ccec-2252-c356-a0ca3466bbf0@redhat.com> <912a8fc8-47bd-fffe-60ff-0cd7b006402c@redhat.com> <20161004133114.GL5578@redhat.com> <44d24209-9901-be03-83fa-707ac12b29b4@redhat.com> <8035787f-e9ed-f493-6575-ce5282e9afe1@redhat.com> <37e541f9-9daa-f8a2-f172-d3ea37fbe36a@redhat.com> From: Paolo Bonzini Message-ID: <1acfdaca-ed71-2279-f6ed-78b6dc483754@redhat.com> Date: Wed, 5 Oct 2016 09:48:40 +0200 MIME-Version: 1.0 In-Reply-To: <37e541f9-9daa-f8a2-f172-d3ea37fbe36a@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 1/2] accel: allows to select the "best" accelerator List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Thomas Huth , "Daniel P. Berrange" Cc: Laurent Vivier , Peter Maydell , Stefano Stabellini , "Michael S . Tsirkin" , qemu-devel@nongnu.org, =?UTF-8?Q?Alex_Benn=c3=a9e?= On 05/10/2016 09:00, Thomas Huth wrote: > On 04.10.2016 19:16, Paolo Bonzini wrote: >> >> >> On 04/10/2016 16:18, Thomas Huth wrote: >>>>>>> Using only tcg has also some disadvantages: For some tests, it's >>>>>>> interesting to know whether they also work properly with KVM (e.g. >>>>>>> migration tests), and only using tcg by default slows down the "make >>>>>>> check" quite a bit - which might become an issue now that we're adding >>>>>>> more and more tests. >>>>> >>>>> Which tests are you seeing a slow-down for ? >>> Well, everything that is using accel=tcg in tests/ could be accelerated. >>> For example, the new ipv6/ppc64 unit test is quite slow with TCG: >>> >>> sudo QTEST_QEMU_BINARY=ppc64-softmmu/qemu-system-ppc64 time tests/pxe-test >>> >>> 48.46user 0.07system 0:48.48elapsed >> >> Could that point to a firmware bug? 10 network-bound seconds for a boot >> makes some sense, but 10 CPU-bound seconds don't... > > SLOF is incredibly slow with TCG - most parts are written in Forth that > gets interpreted during runtime, and that seems to perform quite badly > with TCG for some reasons. We're in progress of speeding up the boot > process of SLOF a little bit (see > https://github.com/aik/SLOF/commit/b3fde41bc75269df2 for example), but > it will likely always be slower than a firmware that has been written in > C only. For what it's worth, just adding "-nodefaults -serial mon:stdio -net nic,model=virtio -net user" saves 7 seconds (30%) on the time needed to reach the OpenFirmware prompt. SCSI seems to be the slowest device to scan. Paolo