[Libguestfs] [PATCH for discussion only 0/3] Implement mutexes to limit number of concurrent instances of libguestfs.

Daniel P. Berrange berrange at redhat.com
Tue Feb 19 14:17:41 UTC 2013


On Mon, Feb 18, 2013 at 09:20:42PM +0000, Richard W.M. Jones wrote:
> These three patches (for discussion only, NOT to be applied) implement
> a mutex system that lets the user limit the number of libguestfs
> instances that can be launched per host.  There are two uses that I
> have identified for this: firstly so we can enable parallel-tests (the
> default in automake >= 1.13) without blowing up the host.  Secondly
> oVirt has raised concerns about how to limit the number of libguestfs
> appliances that can run to prevent this from interfering with their
> ordinary guests.

IMHO this whole feature is of dubious worth & overly simplistic. For
automake you can already control parallelization of tests just by
varying the '-jNNN' number.

If oVirt wants to limit the number of appliances it creates, it should
just do so itself. For appliances not directly invoked by ovirt, I don't
see that this is going to help, since you can't rely on the env vars
being set.

Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|




More information about the Libguestfs mailing list