aboutsummaryrefslogtreecommitdiff
path: root/sysconfigs
diff options
context:
space:
mode:
authorAlberto Garcia <berto@igalia.com>2015-05-11 15:54:53 +0300
committerKevin Wolf <kwolf@redhat.com>2015-05-22 17:08:01 +0200
commit72e80b89015bab196f0f0e83b12b0eee75fa0574 (patch)
treebccf75bc1b4f2268827580f456f55770cc29a93e /sysconfigs
parent13c4941cdd8685d28c7e3a09e393a5579b58db46 (diff)
downloadqemu-72e80b89015bab196f0f0e83b12b0eee75fa0574.zip
qemu-72e80b89015bab196f0f0e83b12b0eee75fa0574.tar.gz
qemu-72e80b89015bab196f0f0e83b12b0eee75fa0574.tar.bz2
qcow2: use one single memory block for the L2/refcount cache tables
The qcow2 L2/refcount cache contains one separate table for each cache entry. Doing one allocation per table adds unnecessary overhead and it also requires us to store the address of each table separately. Since the size of the cache is constant during its lifetime, it's better to have an array that contains all the tables using one single allocation. In my tests measuring freshly created caches with sizes 128MB (L2) and 32MB (refcount) this uses around 10MB of RAM less. Signed-off-by: Alberto Garcia <berto@igalia.com> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Reviewed-by: Max Reitz <mreitz@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'sysconfigs')
0 files changed, 0 insertions, 0 deletions