[Devel] [PATCH RFC 0/5] Shrink big fdtable on criu restore

Kirill Tkhai ktkhai at virtuozzo.com
Fri Jan 12 18:45:58 MSK 2018


Hi,

this patchset allows to avoid memory overuse introduced
by service fds on criu restore. The solution is simple:
smartly check for closed fd number, and shrink fdtable
if this could be made. The checks are happen in is_pseudosuper
mode, so we do not affect performance on normal work mode.

The problem is we can't solve this for 100% case in userspace.
Kernel allows to fix that completely.

What do you think?

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

Eric Dumazet (1):
      ms/fs/file.c: don't acquire files->file_lock in fd_install()

Kirill Tkhai (3):
      files: Add new argument to expand_files()
      files: Add fdtable_align() helper
      files: Shrink big fdtable on close in is_pseudosuper mode

Mateusz Guzik (1):
      ms/vfs: grab the lock instead of blocking in __fd_install during resizing


 fs/file.c               |  144 +++++++++++++++++++++++++++++++++++------------
 include/linux/fdtable.h |    3 +
 2 files changed, 110 insertions(+), 37 deletions(-)

--
Signed-off-by: Kirill Tkhai <ktkhai at virtuozzo.com>


More information about the Devel mailing list