[CRIU] [PATCH 00/14]v3 deduplication: remove old data from parent image

Tikhomirov Pavel snorcht at gmail.com
Tue Dec 17 07:26:59 PST 2013


Hi, this patch removes old data in pages-%d.img files, where data was
changed after previous snapshot. It gets previous snapshot images from
"parent" symlink. Command is "criu dedup".

And also it provide auto-dedup option to do it through dump automaticly.

change log:
v2: auto deduplication occur together with adding pages to snapshot.
v3: in restore check that read data but not hole
v3: open_page_rw() function splited to separate patch

Thanks,
Pavel.

Tikhomirov Pavel (14):
  page-read: check that don't read page from hole
  page-read: add print error in case of bad or corrupted image
  Fix for open_pages_image_at to read if opened with O_RDWR
  page-read: replace read_pagemap_page_from_parent with
    seek_pagemap_page
  page-read: add reuse posibility of pagemap2iovec
  page-read: make function seek_pagemap_page can be used in dedup
  page-read: add open_page_rw to open pages in O_RDWR mode
  deduplication: add dedup comand to criu
  deduplication: look up for old pages in previous snapshot
  deduplication: add punching holes in "parent"
  test/dedup: dedup on "parent" before restoring
  deduplication: add auto-dedup option
  deduplication: add auto-dedup local
  test/dedup: auto-dedup test

 Makefile.crtools                     |    1 +
 cr-dedup.c                           |  149 ++++++++++++++++++++++++++++++++++
 crtools.c                            |    9 ++
 image.c                              |    2 +-
 include/cr_options.h                 |    1 +
 include/crtools.h                    |    1 +
 include/page-read.h                  |    5 ++
 include/page-xfer.h                  |    2 +
 page-read.c                          |   49 +++++++----
 page-xfer.c                          |   34 ++++++++
 test/mem-snap/run-snap-auto-dedup.sh |   86 ++++++++++++++++++++
 test/mem-snap/run-snap-dedup.sh      |   91 +++++++++++++++++++++
 12 files changed, 415 insertions(+), 15 deletions(-)
 create mode 100644 cr-dedup.c
 create mode 100755 test/mem-snap/run-snap-auto-dedup.sh
 create mode 100755 test/mem-snap/run-snap-dedup.sh

-- 
1.7.9.5



More information about the CRIU mailing list