From: "Marc Marí" <markmb@redhat.com>
To: qemu-devel <qemu-devel@nongnu.org>, Fam Zheng <famz@redhat.com>,
Paolo <pbonzini@redhat.com>, Stefan Hajnoczi <stefanha@gmail.com>,
"Daniel P. Berrange" <berrange@redhat.com>
Subject: Re: [Qemu-devel] [PATCH 0/2] Dynamic module support for block drivers
Date: Thu, 27 Aug 2015 10:51:40 +0200 [thread overview]
Message-ID: <20150827105140.6f950585@markmb_rh> (raw)
In-Reply-To: <1439798975-2488-1-git-send-email-markmb@redhat.com>
Ping
>On Mon, 17 Aug 2015 10:09:33 +0200
>Marc Marí <markmb@redhat.com> wrote:
>
> The current module infrastructure has been improved to enable dynamic
> module loading.
>
> This reduces the load time for very simple guests. For the following
> configuration (very loaded)
>
> ./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=x86_64-softmmu
>
> 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
>
> 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
>
> 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.
>
> 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.
>
> Marc Marí (2):
> Add dynamic module loading for block drivers
> Add dynamic generation of module_block.h
>
> .gitignore | 1 +
> Makefile | 10 ++-
> block.c | 73 +++++++++++++++++++++-
> configure | 2 +-
> include/qemu/module.h | 3 +
> include/qemu/module_block.h | 89 +++++++++++++++++++++++++++
> scripts/modules/module_block.py | 132
> ++++++++++++++++++++++++++++++++++++++++
> util/module.c | 38 ++++-------- 8 files changed,
> 314 insertions(+), 34 deletions(-) create mode 100644
> include/qemu/module_block.h create mode 100755
> scripts/modules/module_block.py
>
next prev parent reply other threads:[~2015-08-27 8:51 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-17 8:09 [Qemu-devel] [PATCH 0/2] Dynamic module support for block drivers Marc Marí
2015-08-17 8:09 ` [Qemu-devel] [PATCH 1/2] Add dynamic module loading " Marc Marí
2015-08-27 9:19 ` Daniel P. Berrange
2015-08-27 9:35 ` Marc Marí
2015-08-27 9:40 ` Daniel P. Berrange
2015-09-03 16:33 ` Stefan Hajnoczi
2015-09-03 18:01 ` Marc Marí
2015-08-17 8:09 ` [Qemu-devel] [PATCH 2/2] Add dynamic generation of module_block.h Marc Marí
2015-08-27 9:23 ` Daniel P. Berrange
2015-08-27 9:37 ` Marc Marí
2015-08-27 8:51 ` Marc Marí [this message]
2015-09-03 16:12 ` [Qemu-devel] [PATCH 0/2] Dynamic module support for block drivers Stefan Hajnoczi
2015-09-03 18:07 ` Marc Marí
2015-09-07 13:09 ` Stefan Hajnoczi
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=20150827105140.6f950585@markmb_rh \
--to=markmb@redhat.com \
--cc=berrange@redhat.com \
--cc=famz@redhat.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@gmail.com \
/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).