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

Pino Toscano ptoscano at redhat.com
Thu Sep 14 13:45:36 UTC 2017


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.

> -/* This is saved in the qemu.stat file, so if we decide to change the
> +/* This is saved in the qemu-*.stat file, so if we decide to change the
>   * test_qemu memoization format/data in future, we should increment
>   * this to discard any memoized data cached by previous versions of
>   * libguestfs.
>   */
> -#define MEMO_GENERATION 2
> +#define MEMO_GENERATION 3

Maybe just a nitpick: since this commit just changes the location of the
cached files, but keeps the format unchanged, then I guess bumping
MEMO_GENERATION is not strictly needed.

-- 
Pino Toscano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part.
URL: <http://listman.redhat.com/archives/libguestfs/attachments/20170914/52b46874/attachment.sig>


More information about the Libguestfs mailing list