[CRIU] [PATCH 0/2] criu: dump filemap as soon as possible

Andrey Vagin avagin at openvz.org
Tue May 17 17:06:02 PDT 2016


From: Andrew Vagin <avagin at virtuozzo.com>

CRIU collects all vma files. If a process has many vma-s
we can hit an rlimit for files.

We don't need to collect all files to dump them. We can dump and close
each files before opening another one.

https://jira.sw.ru/browse/PSBM-46355

Andrew Vagin (2):
  criu: dump filemap as soon as possible
  zdtm: check a process with many file vma-s

 criu/cr-dump.c             | 32 +++++++-------------------------
 criu/cr-exec.c             |  2 +-
 criu/include/proc_parse.h  |  4 +++-
 criu/include/sysfs_parse.h |  2 +-
 criu/include/vma.h         |  6 ++++--
 criu/proc_parse.c          | 46 +++++++++++++++++++++++++++++-----------------
 criu/sysfs_parse.c         |  4 ++--
 criu/util.c                |  1 -
 test/zdtm/static/Makefile  |  1 +
 test/zdtm/static/maps06.c  | 39 +++++++++++++++++++++++++++++++++++++++
 10 files changed, 87 insertions(+), 50 deletions(-)
 create mode 100644 test/zdtm/static/maps06.c

-- 
2.7.4



More information about the CRIU mailing list