Hi all! I'm going to bring block-status driven, async copying process to block-copy, to make it fast. The first step is to limit memory usage of backup, here is it.
Based on my "[PATCH v15 0/5] backup-top filter driver for backup": Based-on: <20191001131409.14202-1-vsement...@virtuozzo.com> Vladimir Sementsov-Ogievskiy (6): block/block-copy: allocate buffer in block_copy_with_bounce_buffer block/block-copy: limit copy_range_size to 16 MiB block/block-copy: refactor copying util: introduce co-shared-amount block/block-copy: add memory limit block/block-copy: increase buffered copy request include/block/block-copy.h | 5 +- include/qemu/co-shared-amount.h | 66 ++++++++++++ block/block-copy.c | 179 +++++++++++++++++--------------- util/qemu-co-shared-amount.c | 77 ++++++++++++++ block/trace-events | 6 +- util/Makefile.objs | 1 + 6 files changed, 246 insertions(+), 88 deletions(-) create mode 100644 include/qemu/co-shared-amount.h create mode 100644 util/qemu-co-shared-amount.c -- 2.21.0