[CRIU] [RFC PATCH] criu: mem: count all pages actually written to image as "pages_written"
Mike Rapoport
rppt at linux.vnet.ibm.com
Thu Oct 6 03:08:17 PDT 2016
Currently potentially lazy pages are not counted as written even if they
are dump into pages*img. Count these pages as "pages_written" when dump is
not going to skip writing lazy pages to disk.
Signed-off-by: Mike Rapoport <rppt at linux.vnet.ibm.com>
---
criu/mem.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/criu/mem.c b/criu/mem.c
index 6e6fcc2..5f93edd 100644
--- a/criu/mem.c
+++ b/criu/mem.c
@@ -173,7 +173,7 @@ static int generate_iovs(struct vma_area *vma, struct page_pipe *pp, u64 *map, u
pages[1]++;
} else {
ret = page_pipe_add_page(pp, vaddr, ppb_flags);
- if (ppb_flags & PPB_LAZY)
+ if (ppb_flags & PPB_LAZY && opts.lazy_pages)
pages[2]++;
else
pages[3]++;
--
1.9.1
More information about the CRIU
mailing list