On Tue, Oct 4, 2016 at 7:31 AM, Alberto Garcia <be...@igalia.com> wrote: > That might be a lot of memory if the image is big. 1 TB qcow2 image == > 128 MB L2 cache. > > See https://bugzilla.redhat.com/show_bug.cgi?id=1377735#c2 > > If we want to add this feature, I think I'd rather make it explicit.
I agree explicit is generally better than automagical, but unlike say the VM RAM size, the qcow L2 table cache is an implementation detail no user should be expected to know exists, let alone needs tweaking according to a specific formula to avoid an arbitrary performance cliff. At least giving users a way to skip the math would be an improvement. Would you be okay with an explicitly-set option like l2_cache_size=auto or =max that optimizes for performance at the expense of memory? --Ed