From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60275) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZXYvM-0007Ov-SX for qemu-devel@nongnu.org; Thu, 03 Sep 2015 14:07:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZXYvJ-0002M9-JW for qemu-devel@nongnu.org; Thu, 03 Sep 2015 14:07:48 -0400 Received: from mx1.redhat.com ([209.132.183.28]:43806) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZXYvJ-0002M3-9l for qemu-devel@nongnu.org; Thu, 03 Sep 2015 14:07:45 -0400 Date: Thu, 3 Sep 2015 20:07:40 +0200 From: Marc =?UTF-8?B?TWFyw60=?= Message-ID: <20150903200740.6e1102fb@markmb_rh> In-Reply-To: <20150903161229.GB18405@stefanha-thinkpad.redhat.com> References: <1439798975-2488-1-git-send-email-markmb@redhat.com> <20150903161229.GB18405@stefanha-thinkpad.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH 0/2] Dynamic module support for block drivers List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Hajnoczi Cc: qemu-devel On Thu, 3 Sep 2015 17:12:29 +0100 Stefan Hajnoczi wrote: > On Mon, Aug 17, 2015 at 10:09:33AM +0200, Marc Mar=C3=AD wrote: > > The current module infrastructure has been improved to enable > > dynamic module loading. > >=20 > > This reduces the load time for very simple guests. For the following > > configuration (very loaded) > >=20 > > ./configure --enable-sdl --enable-gtk --enable-vte --enable-curses \ > > --enable-vnc --enable-vnc-{jpeg,tls,sasl,png} --enable-virtfs \ > > --enable-brlapi --enable-curl --enable-fdt --enable-bluez \ > > --enable-kvm --enable-rdma --enable-uuid --enable-vde \ > > --enable-linux-aio --enable-cap-ng --enable-attr > > --enable-vhost-net \ --enable-vhost-scsi --enable-spice > > --enable-rbd --enable-libiscsi \ --enable-smartcard-nss > > --enable-guest-agent --enable-libusb \ --enable-usb-redir > > --enable-lzo --enable-snappy --enable-bzip2 \ --enable-seccomp > > --enable-coroutine-pool --enable-glusterfs \ --enable-tpm > > --enable-libssh2 --enable-vhdx --enable-numa \ --enable-tcmalloc > > --target-list=3Dx86_64-softmmu > >=20 > > With modules disabled, there are 142 libraries loaded at startup. > > Time is the following: > > LD time: 0.065 seconds > > QEMU time: 0.02 seconds > > Total time: 0.085 seconds > >=20 > > With this patch series and modules enabled, there are 128 libraries > > loaded at startup. Time is the following: > > LD time: 0.02 seconds > > QEMU time: 0.02 seconds > > Total time: 0.04 seconds > >=20 > > Where LD time is the time between the program startup and the jump > > to main, and QEMU time is the time between the start of main and > > the first kvm_entry. > >=20 > > These results are just with a few block drivers, that were already > > a module. Adding more modules (block or not block) should be easy, > > and will reduce the load time even more. >=20 > Which QEMU command-line did you benchmark? >=20 > Did you have a UI enabled (SDL/GTK/VNC)? x86_64-softmmu/qemu-system-x86_64 --enable-kvm \ -kernel /boot/vmlinuz-4.1.4-200.fc22.x86_64 -nographic Thanks Marc