[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v3 00/12] Drive mirroring performance improvemen
From: |
Kevin Wolf |
Subject: |
Re: [Qemu-devel] [PATCH v3 00/12] Drive mirroring performance improvements |
Date: |
Mon, 21 Jan 2013 20:10:34 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20120605 Thunderbird/13.0 |
Am 21.01.2013 17:09, schrieb Paolo Bonzini:
> The new testcase did not find Kevin's bug (which is actually not
> there), but I still did the change he asked to the logic; it is
> clearer that way.
>
> And the testcase *did* find a related problem. Here is the relevant
> diff from v2:
>
> if (backing_filename[0] && !s->target->backing_hd) {
> bdrv_get_info(s->target, &bdi);
> - if (s->buf_size < bdi.cluster_size) {
> - s->buf_size = bdi.cluster_size;
> + if (s->granularity < bdi.cluster_size) {
> + s->buf_size = MAX(s->buf_size, bdi.cluster_size);
> s->cow_bitmap = bitmap_new(length);
> }
> }
>
> In deciding whether to do COW, the cluster size was tested against the
> wrong value.
>
> Following Kevin's suggestion, I also renamed all variables dealing
> with dirty-bitmap-granularity-sized blocks to call them "chunks", not
> "clusters". This makes the interdiff quite large, but there are no
> semantic changes other than the movement of bitmap_set(s->cow_bitmap)
> and the bugfix.
>
> Patches 1-4 are identical. For the others, see the individual patches.
Thanks, applied patches 1-8 to the block branch.
I think patches 9 and 10 need a respin, see the comments there.
Kevin
- [Qemu-devel] [PATCH v3 10/12] mirror: add buf-size argument to drive-mirror, (continued)
- [Qemu-devel] [PATCH v3 10/12] mirror: add buf-size argument to drive-mirror, Paolo Bonzini, 2013/01/21
- [Qemu-devel] [PATCH v3 12/12] mirror: support arbitrarily-sized iterations, Paolo Bonzini, 2013/01/21
- [Qemu-devel] [PATCH v3 11/12] mirror: support more than one in-flight AIO operation, Paolo Bonzini, 2013/01/21
- [Qemu-devel] [PATCH v3 04/12] block: make round_to_clusters public, Paolo Bonzini, 2013/01/21
- [Qemu-devel] [PATCH v3 03/12] block: implement dirty bitmap using HBitmap, Paolo Bonzini, 2013/01/21
- [Qemu-devel] [PATCH v3 02/12] add hierarchical bitmap data type and test cases, Paolo Bonzini, 2013/01/21
- [Qemu-devel] [PATCH v3 01/12] host-utils: add ffsl, Paolo Bonzini, 2013/01/21
- Re: [Qemu-devel] [PATCH v3 00/12] Drive mirroring performance improvements,
Kevin Wolf <=