From: Juan Quintela <quintela@redhat.com>
To: Peter Lieven <pl@kamp.de>
Cc: Orit Wasserman <owasserm@redhat.com>,
Paolo Bonzini <pbonzini@redhat.com>,
qemu-devel@nongnu.org, Stefan Hajnoczi <stefanha@gmail.com>
Subject: Re: [Qemu-devel] [PATCHv5 00/10] buffer_is_zero / migration optimizations
Date: Tue, 26 Mar 2013 11:46:46 +0100 [thread overview]
Message-ID: <87boa6o2uh.fsf@elfo.elfo> (raw)
In-Reply-To: <1364291919-19563-1-git-send-email-pl@kamp.de> (Peter Lieven's message of "Tue, 26 Mar 2013 10:58:29 +0100")
Peter Lieven <pl@kamp.de> wrote:
> this is v5 of my patch series with various optimizations in
> zero buffer checking and migration tweaks.
>
> thanks especially to Eric Blake, Orit Wassermann and Paolo Bonzini
> for reviewing.
>
> v5:
> - move zero splat vector to a different patch
> - fix indentation of can_user_buffer_find_nonzero_offset()
> - do not unroll the first loop in buffer_find_nonzero_offset()
> to optimize it for zero page checking
> - use an older unrolled version of find_next_bit() without
> SIMD instruction as there is no evidence that the vectorized
> version is better if not even worse and the code is easier
> to understand.
> - added a word in the commit message of patch 8
> about the skipped pages field in QMP MigrationStats.
> - fixed the order of key-value pairs of MigrationStats in
> qapi-schema.json
> - updated info about the performance benefit of is_zero_page()
> to the latest benchmark results in the commit message.
>
> v4:
> - do not inline buffer_find_nonzero_offset()
> - inline can_usebuffer_find_nonzero_offset() correctly
> - readd asserts in buffer_find_nonzero_offset() as profiling
> shows they do not hurt.
> - change last occurences of scalar 8 by
> BUFFER_FIND_NONZERO_OFFSET_UNROLL_FACTOR
> - avoid deferencing p already in patch 5 where we
> know that the page (p) is zero
> - explicitly set bytes_sent = 0 if we skip a zero page.
> bytes_sent was 0 before, but it was not obvious.
> - add accounting information for skipped zero pages
> - fix errors reported by checkpatch.pl
>
> v3:
> - remove asserts, inline functions and add a check
> function if buffer_find_nonzero_offset() can be used.
> - use above check function in buffer_is_zero() and
> find_next_bit().
> - use buffer_is_nonzero_offset() directly to find
> zero pages. we know that all requirements are met
> for memory pages.
> - fix C89 violation in buffer_is_zero().
> - avoid derefencing p in ram_save_block() if we already
> know the page is zero.
> - fix initialization of last_offset in reset_ram_globals().
> - avoid skipping pages with offset == 0 in bulk stage in
> migration_bitmap_find_and_reset_dirty().
> - compared to v1 check for zero pages also after bulk
> ram migration as there are guests (e.g. Windows) which
> zero out large amount of memory while running.
>
> v2:
> - fix description, add trivial zero check and add asserts
> to buffer_find_nonzero_offset.
> - add a constant for the unroll factor of buffer_find_nonzero_offset
> - replace is_dup_page() by buffer_is_zero()
> - added test results to xbzrle patch
> - optimize descriptions
>
> Peter Lieven (10):
> move vector definitions to qemu-common.h
> add a zero splat vector to qemu-common.h
> cutils: add a function to find non-zero content in a buffer
> buffer_is_zero: use vector optimizations if possible
> bitops: unroll while loop in find_next_bit()
> migration: search for zero instead of dup pages
> migration: add an indicator for bulk state of ram migration
> migration: do not sent zero pages in bulk stage
> migration: do not search dirty pages in bulk stage
> migration: use XBZRLE only after bulk stage
Really nice series.
I did some minor review changes, but they are more nits that anynthing
else.
Thanks, Juan.
Reviewed-by: Juan Quintela <quintela@redhat.com>
next prev parent reply other threads:[~2013-03-26 10:46 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-26 9:58 [Qemu-devel] [PATCHv5 00/10] buffer_is_zero / migration optimizations Peter Lieven
2013-03-26 9:58 ` [Qemu-devel] [PATCHv5 01/10] move vector definitions to qemu-common.h Peter Lieven
2013-03-26 9:58 ` [Qemu-devel] [PATCHv5 02/10] add a zero splat vector " Peter Lieven
2013-03-26 10:14 ` Paolo Bonzini
2013-03-26 10:17 ` Peter Lieven
2013-03-26 10:17 ` Paolo Bonzini
2013-03-26 10:18 ` Peter Lieven
2013-03-26 9:58 ` [Qemu-devel] [PATCHv5 03/10] cutils: add a function to find non-zero content in a buffer Peter Lieven
2013-03-26 10:38 ` Juan Quintela
2013-03-26 10:42 ` Peter Lieven
2013-03-26 10:41 ` Juan Quintela
2013-03-26 9:58 ` [Qemu-devel] [PATCHv5 04/10] buffer_is_zero: use vector optimizations if possible Peter Lieven
2013-03-26 9:58 ` [Qemu-devel] [PATCHv5 05/10] bitops: unroll while loop in find_next_bit() Peter Lieven
2013-03-26 9:58 ` [Qemu-devel] [PATCHv5 06/10] migration: search for zero instead of dup pages Peter Lieven
2013-04-05 19:23 ` Kevin Wolf
2013-04-05 20:00 ` Paolo Bonzini
2013-04-05 21:44 ` Peter Lieven
2013-04-05 22:06 ` Peter Lieven
2013-04-08 8:38 ` Paolo Bonzini
2013-04-08 9:25 ` Peter Lieven
2013-04-08 10:33 ` Paolo Bonzini
2013-04-08 8:33 ` Peter Lieven
2013-04-08 8:39 ` Peter Lieven
2013-04-08 8:49 ` Kevin Wolf
2013-04-08 8:50 ` Peter Lieven
2013-03-26 9:58 ` [Qemu-devel] [PATCHv5 07/10] migration: add an indicator for bulk state of ram migration Peter Lieven
2013-03-26 9:58 ` [Qemu-devel] [PATCHv5 08/10] migration: do not sent zero pages in bulk stage Peter Lieven
2013-03-26 9:58 ` [Qemu-devel] [PATCHv5 09/10] migration: do not search dirty " Peter Lieven
2013-03-26 9:58 ` [Qemu-devel] [PATCHv5 10/10] migration: use XBZRLE only after " Peter Lieven
2013-03-26 10:46 ` Juan Quintela [this message]
2013-03-26 11:02 ` [Qemu-devel] [PATCHv5 00/10] buffer_is_zero / migration optimizations Peter Lieven
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87boa6o2uh.fsf@elfo.elfo \
--to=quintela@redhat.com \
--cc=owasserm@redhat.com \
--cc=pbonzini@redhat.com \
--cc=pl@kamp.de \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).