Received: from eggs.gnu.org ([2001:4830:134:3::10]:37587) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bsVU1-00024x-Lt for qemu-devel@nongnu.org; Fri, 07 Oct 2016 09:46:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bsVU0-0006Rt-Qg for qemu-devel@nongnu.org; Fri, 07 Oct 2016 09:46:41 -0400 References: <70fbc326-29b6-ca3c-54ed-201b46d71cf0@larkmoor.net> <20161007081432.GA4589@noname.redhat.com> From: Frank Myhr Message-ID: <0d48ef17-e8bc-40bc-40ca-eb1ca6d07902@fhmtech.com> Date: Fri, 7 Oct 2016 09:46:31 -0400 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [Qemu-block] [PATCH] qcow2: Optimize L2 table cache size based on image and cluster sizes List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alberto Garcia , Kevin Wolf Cc: eswierk@skyportsystems.com, qemu-devel@nongnu.org, qemu-block@nongnu.org, mreitz@redhat.com On 10/07/2016 06:56 AM, Alberto Garcia wrote: > I would like to know what's the use case you (Frank, Ed) > are thinking about: > - Are we talking about command-line options, QMP, or both? Command-line options alone are sufficient for my use case, which is configuring and starting VMs using libvirt. > - Do you know the size of the disk image or you want to be able to set > the cache size without having access to that information? In other > words, what's preventing you from calculating the cache size that you > need? I know the disk image size, and can set cache size in bytes. l2-cache-size=max would be a convenience feature, *especially if it could become the default*. Then I could forget thinking about whether the image is larger than the current 8GB fully-cached threshold, and only have to calculate cache size in bytes in case of very large images, multiple backing files, or very tight memory. Frank