On Wed, Mar 27, 2019 at 01:33:06PM +0100, Paolo Bonzini wrote: > On 27/03/19 10:41, Stefano Garzarella wrote: > > I found that libgnutls, libspice-server and libnuma initialization takes > > most of the time. I disabled these libraries (--disable-numa > > --disable-gnutls > > --disable-spice) to understand the maximum speed up and I gained 10 ms > > during the boot: > > - qemu_init_end: 50.92 ms > > - qemu_init_end: 40.17 ms (without numa, gnutls and spice) > > libnuma could probably be removed completely, in favor of invoking the > syscalls manually.
Yes, actually we only use mbind() in hostmem.c (if I checked well) I'll propose a patch! > > A while ago I talked to the SPICE guys, asking how hard it would be to > separate the server from the relatively small part that is useful in QXL > emulation (removing everything related to network transparency), but the > answer was "very". :( :( > > However, we could conceivably switch to lazily dlopening the SPICE libs. Thanks for your suggestions! Stefano