From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43428) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XJT6d-0003Dj-N1 for qemu-devel@nongnu.org; Mon, 18 Aug 2014 16:00:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XJT6X-0003J6-Id for qemu-devel@nongnu.org; Mon, 18 Aug 2014 16:00:39 -0400 Received: from mx1.redhat.com ([209.132.183.28]:29048) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XJT6X-0003Hf-4A for qemu-devel@nongnu.org; Mon, 18 Aug 2014 16:00:33 -0400 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s7IK0V5R011723 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Mon, 18 Aug 2014 16:00:32 -0400 From: Max Reitz Date: Mon, 18 Aug 2014 22:00:25 +0200 Message-Id: <1408392029-29531-1-git-send-email-mreitz@redhat.com> Subject: [Qemu-devel] [PATCH 0/4] qcow2: Allow runtime specification of cache sizes List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Kevin Wolf , Stefan Hajnoczi , Max Reitz Currently, the metadata cache size is only tunable on compile time through macros. However, some users may want to use the minimal cache size (for whatever reason) and others may want to increase the cache size because they have enough memory and want to increase performance. This series adds runtime options for setting the cache size in bytes (which is an easily comprehensible unit) in various ways (by setting each cache explicitly or the total size). This series (patch 2) depends on Markus' series "[PATCH v2 0/4] block: Use g_new() & friends more". Max Reitz (4): qcow2: Constant cache size in bytes qcow2: Use g_try_new0() for cache array qcow2: Add runtime options for cache sizes iotests: Add test for qcow2's cache options block/qcow2-cache.c | 7 ++- block/qcow2.c | 120 +++++++++++++++++++++++++++++++++++++++++---- block/qcow2.h | 13 ++++- tests/qemu-iotests/103 | 99 +++++++++++++++++++++++++++++++++++++ tests/qemu-iotests/103.out | 29 +++++++++++ tests/qemu-iotests/group | 1 + 6 files changed, 255 insertions(+), 14 deletions(-) create mode 100755 tests/qemu-iotests/103 create mode 100644 tests/qemu-iotests/103.out -- 2.0.4