[CRIU] [PATCH 0/4] criu: remove a limit of 1024 file descriptors per process

Andrey Vagin avagin at openvz.org
Thu Mar 31 22:53:24 PDT 2016


From: Andrew Vagin <avagin at virtuozzo.com>

CRIU can't dump a process if it have more than 1024 descriptors,
because it is dumping all file descriptors for one iteration.

These patches teach criu how to make more this one iterations
to dump descriptors.

Andrew Vagin (4):
  parasite: transfer numbers of parasite descirptors to the criu process
  files: resort code about dumping file descriptors
  zdtm: add a test with a lot of file descriptors
  files: dump file descriptors by protions

 criu/cr-dump.c                  |  54 +-------------------
 criu/files.c                    | 108 +++++++++++++++++++++++++++++++---------
 criu/include/files.h            |   3 +-
 criu/include/parasite-syscall.h |   2 +
 criu/include/parasite.h         |   4 +-
 criu/parasite-syscall.c         |   2 +
 criu/pie/parasite.c             |   4 +-
 test/zdtm/static/Makefile       |   1 +
 test/zdtm/static/fds.c          |  32 ++++++++++++
 test/zdtm/static/fds.desc       |   1 +
 10 files changed, 132 insertions(+), 79 deletions(-)
 create mode 100644 test/zdtm/static/fds.c
 create mode 100644 test/zdtm/static/fds.desc

-- 
2.5.0



More information about the CRIU mailing list