[PATCH 0/6] block-copy: memory limit

Vladimir Sementsov-Ogievskiy posted 6 patches 4 years, 6 months ago
Failed in applying to current master (apply log)
There is a newer version of this series
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
[PATCH 0/6] block-copy: memory limit
Posted by Vladimir Sementsov-Ogievskiy 4 years, 6 months ago
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-vsementsov@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