From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44591) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZMBzU-0005Yj-S3 for qemu-devel@nongnu.org; Mon, 03 Aug 2015 05:25:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZMBzR-0007eX-IO for qemu-devel@nongnu.org; Mon, 03 Aug 2015 05:25:04 -0400 Received: from mx1.redhat.com ([209.132.183.28]:48697) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZMBzR-0007eC-Df for qemu-devel@nongnu.org; Mon, 03 Aug 2015 05:25:01 -0400 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (Postfix) with ESMTPS id EEF0B92389 for ; Mon, 3 Aug 2015 09:25:00 +0000 (UTC) Date: Mon, 3 Aug 2015 17:24:57 +0800 From: Fam Zheng Message-ID: <20150803092457.GB30561@ad.nay.redhat.com> References: <20150731174542.44862e3a@markmb_rh> <20150803030906.GA13938@ad.nay.redhat.com> <20150803095238.663a7bee@markmb_rh> <20150803082234.GA30561@ad.nay.redhat.com> <20150803110147.55ede584@markmb_rh> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <20150803110147.55ede584@markmb_rh> Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] Modularizing QEMU RFC List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Marc =?iso-8859-1?Q?Mar=ED?= Cc: qemu-devel On Mon, 08/03 11:01, Marc Mar=ED wrote: > Some profiling: >=20 > A QEMU with this configuration: > ./configure --enable-sparse --enable-sdl --enable-gtk --enable-vte \ > --enable-curses --enable-vnc --enable-vnc-{jpeg,tls,sasl,png,ws} \ > --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-quorum \ > --enable-numa --enable-tcmalloc --target-list=3Dx86_64-softmmu >=20 > Has dependencies on 142 libraries. It takes 60 ms between the run and > the jump to the main function, and 80 ms between the run and the > first kvm_entry. >=20 > A QEMU with the same configuration and --enable-modules has > dependencies on 125 libraries. It takes 20 ms between the run and the > jump to the main function, and 100 ms between the run and the first > kvm_entry. Which means 40 ms is saved because we reduced the size and dependency of = QEMU executable, but 60 ms is the extra cost of dynamical loading. That's a ne= t loss. In your --enable-modules configuration, could you try comment out module_= load body and compare again, so we know how much time is spent in looking up a= nd loading modules? Fam