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

Tikhomirov Pavel snorcht at gmail.com
Tue Nov 19 02:28:19 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.

Thanks,
Pavel.

Tikhomirov Pavel (10):
  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
  deuplication: add auto-dedup option
  test/dedup: auto-dedup test

 Makefile.crtools                     |    1 +
 cr-dedup.c                           |  137 ++++++++++++++++++++++++++++++++++
 crtools.c                            |   27 ++++++-
 image.c                              |    2 +-
 include/crtools.h                    |    2 +
 include/page-read.h                  |    3 +
 page-read.c                          |   35 ++++++---
 test/mem-snap/run-snap-auto-dedup.sh |   86 +++++++++++++++++++++
 test/mem-snap/run-snap-dedup.sh      |   91 ++++++++++++++++++++++
 9 files changed, 368 insertions(+), 16 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