[CRIU] [PATCH 0/4] sfd: Rework service fd engine

Cyrill Gorcunov gorcunov at openvz.org
Tue May 30 11:13:29 PDT 2017


For service fds we reserve a series of descriptors for
own needs assuming they won't be used by any other part
of the code, which not always true especially for hight
loaded containers.

Inthe series we make service fds to use fcntl syscall
instead of dupX to catch situation where fds collision
happen and exit gracefully.

Cyrill Gorcunov (4):
  sfd: Move service fd helpers into separate file
  sfd: Rework install, clone helpers to use fcntl
  kdat: Add fetching files stat
  sfd: Lift up own fd limit on bootup

 criu/Makefile.crtools  |   1 +
 criu/crtools.c         |  36 +++++++++
 criu/include/kerndat.h |   4 +
 criu/kerndat.c         |  69 +++++++++++++++++
 criu/servicefd.c       | 201 +++++++++++++++++++++++++++++++++++++++++++++++++
 criu/util.c            | 123 ------------------------------
 6 files changed, 311 insertions(+), 123 deletions(-)
 create mode 100644 criu/servicefd.c

-- 
2.7.4



More information about the CRIU mailing list