[CRIU] [PATCH 0/7] sfd: Improve sfd engine

Cyrill Gorcunov gorcunov at openvz.org
Mon May 29 13:14:58 PDT 2017


During vz7 testing it's been found that mogration of containers
with 256G of memory fails when we're transferring pages: simply
because too many pipes get opened and our service fds reserved
for internal use get clash with them (because dup call simply
close existing fd if it's already opened).

So in this series we

 - check that file we're trying to use as service fd is not
   opened by anyone else
 - unlimit number of files allowed for internal use from kdat
   settings, which minimize change of clash

Cyrill Gorcunov (7):
  sfd: dump -- Don't forget to close old [CR_]PROC_FD_OFF
  sfd: mount -- Don't forget to close ROOT_FD_OFF in mntns_get_root_fd
  sfd: Check the service fd is not used before installing
  sfd: Don't proceed if clone_service_fd failed
  sfd: Add logging into fd install
  kdat: Add fetching files stat
  sfd: Lift up own fd limit on bootup

 criu/cr-dump.c         |  1 +
 criu/crtools.c         | 36 ++++++++++++++++++++++++++++++++++++
 criu/include/kerndat.h |  3 +++
 criu/kerndat.c         | 35 +++++++++++++++++++++++++++++++++++
 criu/mount.c           |  1 +
 criu/util.c            | 20 ++++++++++++++++++++
 6 files changed, 96 insertions(+)

-- 
2.7.4



More information about the CRIU mailing list