On Fri, Apr 26, 2013 at 12:21:30PM +0100, Daniel P. Berrange wrote:
On Fri, Apr 26, 2013 at 11:52:03AM +0100, Richard W.M. Jones wrote:
> Currently 'make check' takes 23 minutes (at least) to run on my shiny
> new laptop. I'd like to make this faster because I spend a lot of
> time waiting for them to finish, but first here's an analysis of time
> spent now.
How many times do you start + stop QEMU during a full test run, or
more specifically what % of this 23 minutes could likely be attributed
to the startup overhead of the appliance + qemu ?
About 180 times. See attached which is the result of changing qemu to
be a wrapper that dumps out the arguments; some of those are obviously
libvirt queries, but most seem to be regular runs.
On my laptop, launching the libguestfs appliance takes under 3.5 seconds.
So that would indicate that the overhead of libvirt+qemu in all of
this is about 10 minutes, or under 50% of the running time.
That's not to say that minimizing launching wouldn't be a good idea
though. Especially when one is using TCG, the overhead would be
substantially larger. On current Koji, build times [which also run
'make check', but in a VM], vary between 2 and 8 hours. Assuming that
the processing time is the same as my local runs, that would place the
launch overhead at 90% and upwards.
Rich.
--
Richard Jones, Virtualization Group, Red Hat
http://people.redhat.com/~rjones
Read my programming blog:
http://rwmj.wordpress.com
Fedora now supports 80 OCaml packages (the OPEN alternative to F#)