qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Fam Zheng <famz@redhat.com>
To: "Marc Marí" <markmb@redhat.com>
Cc: qemu-devel <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] Modularizing QEMU RFC
Date: Mon, 3 Aug 2015 17:24:57 +0800	[thread overview]
Message-ID: <20150803092457.GB30561@ad.nay.redhat.com> (raw)
In-Reply-To: <20150803110147.55ede584@markmb_rh>

On Mon, 08/03 11:01, Marc Marí wrote:
> Some profiling:
> 
> 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=x86_64-softmmu
> 
> 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.
> 
> 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 net
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 and
loading modules?

Fam

  parent reply	other threads:[~2015-08-03  9:25 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-31 15:45 [Qemu-devel] Modularizing QEMU RFC Marc Marí
2015-08-03  3:09 ` Fam Zheng
2015-08-03  7:51   ` Peter Maydell
2015-08-03  7:52   ` Marc Marí
2015-08-03  8:22     ` Fam Zheng
2015-08-03  9:01       ` Marc Marí
2015-08-03  9:24         ` Alex Bennée
2015-08-03  9:36           ` Marc Marí
2015-08-03  9:58             ` Alex Bennée
2015-08-03 10:16               ` Daniel P. Berrange
2015-08-03  9:38           ` Daniel P. Berrange
2015-08-03  9:24         ` Fam Zheng [this message]
2015-08-03 10:22           ` Marc Marí
2015-08-03 10:54             ` Fam Zheng
2015-08-03  9:20   ` Daniel P. Berrange
2015-08-03  9:52   ` Paolo Bonzini
2015-08-03  9:23 ` Daniel P. Berrange
2015-08-03  9:43   ` Marc Marí

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150803092457.GB30561@ad.nay.redhat.com \
    --to=famz@redhat.com \
    --cc=markmb@redhat.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).