[Libguestfs] [PATCH v3 4/6] lib: qemu: Allow parallel qemu binaries to be used with cache conflicts.

Richard W.M. Jones rjones at redhat.com
Thu Sep 14 15:56:38 UTC 2017


On Thu, Sep 14, 2017 at 03:45:36PM +0200, Pino Toscano wrote:
> On Tuesday, 12 September 2017 19:04:22 CEST Richard W.M. Jones wrote:
> > Rename the cache files like ‘qemu.stat’ etc so they include the qemu
> > binary "key" (ie. size and mtime) in the name.  This allows a single
> > user to use multiple qemu binaries in parallel without conflicts.
> > ---
> 
> My concern here is that these files will pile up in the caches of the
> various users -- especially the newly added qmp-schema cache is
> (generated on my Fedora 26) a 90+ KB output.  Every time qemu changes
> there will at least 125/130+ KB used (10+ KB for devices, 25+ KB for
> help, 90+ KB for qmp-schema), and those are never cleaned up
> automatically.

It's a concern, but they're not very big relative to the size of the
appliance (236M here).  Also they are eventually cleaned up because
they are located in /var/tmp, although that could be a very long time --
30 days on Fedora.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-df lists disk usage of guests without needing to install any
software inside the virtual machine.  Supports Linux and Windows.
http://people.redhat.com/~rjones/virt-df/




More information about the Libguestfs mailing list