[Devel] [PATCH libvzctl] scripts: vz-cpt -- Increase the limit for fds

Cyrill Gorcunov gorcunov at virtuozzo.com
Mon Mar 14 02:52:49 PDT 2016


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

Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 scripts/vz-cpt.in | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/scripts/vz-cpt.in b/scripts/vz-cpt.in
index dba290f..44982e1 100755
--- a/scripts/vz-cpt.in
+++ b/scripts/vz-cpt.in
@@ -36,6 +36,15 @@ done
 
 [ -d $dumpdir ] && rm -rf $dumpdir
 
+#
+# FIXME
+#
+# Sometimes the container we're dumping has really a big
+# number of files opened, so while proper fix is to modify
+# CRIU logic and dump files in small chunks for temp solution
+# simply increase the number of file descriptors allowed.
+ulimit -n 8192
+
 mkdir -p $dumpdir &&
 criu dump -vvvv -o dump.log				\
 		--file-locks				\
-- 
2.5.0



More information about the Devel mailing list