[CRIU] [PATCH 00/12]v2 deduplication: remove old data from parent image

Tikhomirov Pavel snorcht at gmail.com
Mon Dec 16 02:55:24 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 after dump automaticly.

change log:
v2: auto deduplication occur together with adding pages to snapshot.

Thanks,
Pavel.

Tikhomirov Pavel (12):
  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
  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                           |  148 ++++++++++++++++++++++++++++++++++
 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                          |   42 +++++++---
 page-xfer.c                          |   34 ++++++++
 test/mem-snap/run-snap-auto-dedup.sh |   86 ++++++++++++++++++++
 test/mem-snap/run-snap-dedup.sh      |   91 +++++++++++++++++++++
 12 files changed, 408 insertions(+), 14 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