criu icon indicating copy to clipboard operation
criu copied to clipboard

CRIU can't dump huge mappings

Open avagin opened this issue 8 years ago • 6 comments

[root@fc24 criu]# time python test/zdtm.py run -t zdtm/static/env00
cc -D_GNU_SOURCE    umount2.c   -o umount2
cc -D_GNU_SOURCE    zdtm_ct.c   -o zdtm_ct
Warn  (criu/kerndat.c:674): Stale /run/criu.kdat file
=== Run 1/1 ================ zdtm/static/env00

========================== Run zdtm/static/env00 in h ==========================
Start test
./env00 --pidfile=env00.pid --outfile=env00.out --envname=ENV_00_TEST
Run criu dump
=[log]=> dump/zdtm/static/env00/36/1/dump.log
------------------------ grep Error ------------------------
(00.008203)
(00.008208) Dumping pages (type: 52 pid: 36)
(00.008214) ----------------------------------------
(00.008219)    Private vmas 3758030849/5368728359 pages
(00.008260) Error (criu/pagemap-cache.c:54): pagemap-cache: pmc_init: Can't allocate 30064246792 bytes
(00.008267) Error (criu/pagemap-cache.c:85): pagemap-cache: Failed to init pagemap for 36
(00.008272) Error (criu/mem.c:465): Can't dump page with parasite
(00.010108) 36 was stopped
(00.010350) Unlock network
(00.010359) Unfreezing tasks into 1
(00.010363) 	Unseizing 36 into 1
(00.010375) Error (criu/cr-dump.c:1697): Dumping FAILED.
------------------------ ERROR OVER ------------------------
################### Test zdtm/static/env00 FAIL at CRIU dump ###################
Send the 9 signal to  36
Wait for zdtm/static/env00(36) to die for 0.100000
##################################### FAIL #####################################

Steps to reproduce:

  1. Apply the following patch
diff --git a/test/zdtm/Makefile.inc b/test/zdtm/Makefile.inc
index 5e8836e90..8ce4c8205 100644
--- a/test/zdtm/Makefile.inc
+++ b/test/zdtm/Makefile.inc
@@ -93,4 +93,10 @@ ifeq ($(filter $(no-deps-targets), $(MAKECMDGOALS)),)
 -include $(wildcard $(DEP))
 endif
 
+ifeq ($(ASAN),1)
+       CFLAGS-ASAN     := -fsanitize=address
+       export          CFLAGS-ASAN
+       CFLAGS          += $(CFLAGS-ASAN)
+       LDFLAGS         += -lasan
+endif
 .SECONDARY:
  1. make ASAN=1 -C test/zdtm/
  2. make
  3. time python test/zdtm.py run -t zdtm/static/env00

avagin avatar Sep 29 '17 18:09 avagin

A friendly reminder that this issue had no activity for 30 days.

github-actions[bot] avatar Jan 19 '21 00:01 github-actions[bot]

Needs to be checked if it is still an issue.

0x7f454c46 avatar Jan 20 '21 20:01 0x7f454c46

(and probably a good idea for a zdtm test if it's not an issue anymore)

0x7f454c46 avatar Jan 20 '21 20:01 0x7f454c46

A friendly reminder that this issue had no activity for 30 days.

github-actions[bot] avatar Feb 20 '21 00:02 github-actions[bot]

A friendly reminder that this issue had no activity for 30 days.

github-actions[bot] avatar Apr 03 '21 00:04 github-actions[bot]

I also got this error with a program compiled with ASan and it is successfully checkpointed without ASan.

zouyonghao avatar Jul 07 '21 09:07 zouyonghao