Received: from eggs.gnu.org ([2001:4830:134:3::10]:57088) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fnQWh-00071R-0i for qemu-devel@nongnu.org; Wed, 08 Aug 2018 11:37:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fnQWd-00076x-Nf for qemu-devel@nongnu.org; Wed, 08 Aug 2018 11:37:30 -0400 From: Alberto Garcia In-Reply-To: References: <20180808071051.30628-1-lbloch@janustech.com> <20180808071051.30628-3-lbloch@janustech.com> Date: Wed, 08 Aug 2018 17:37:23 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH v3 2/5] qcow2: Make the default L2 cache sufficient to cover the entire image List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Leonid Bloch , qemu-devel@nongnu.org Cc: Kevin Wolf , qemu-block@nongnu.org, Max Reitz On Wed 08 Aug 2018 03:58:02 PM CEST, Alberto Garcia wrote: > 1) If l2-cache-size > l2_metadata_size, then make l2-cache-size = > l2_metadata_size. This is already useful on its own, even with the > current default of 1MB. > > 2) Increase the default to 32MB. This won't waste additional memory for > small images because of the previous patch, and will cover images up > to 256GB. If you have larger images you would need to increase > l2-cache-size manually if you want to cache all the L2 metadata. Let's try this way: we had many users requesting us to add a new option to set l2-cache-size=100%, but we never agreed on a good API. Patch (1) would do precisely that (l2-cache-size=1T). Patch (2) changes the default, which may be better and probably enough for many users, but it's not what solves the problem. Berto