qemu-devel
[Top][All Lists]
Advanced

[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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]