[Devel] [PATCH libvzctl] scripts: vz-cpt.in -- Drop old ulimit hack

Cyrill Gorcunov gorcunov at virtuozzo.com
Mon Mar 27 08:13:56 PDT 2017


CRIU setup file limit itself upon startup so
no need for additional call here.

In scope of https://jira.sw.ru/browse/PSBM-63002

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

Igor, its not urgent patch at all, no need to release new libvzctl
version for it own only.

diff --git a/scripts/vz-cpt.in b/scripts/vz-cpt.in
index 2af4199..7c7df74 100755
--- a/scripts/vz-cpt.in
+++ b/scripts/vz-cpt.in
@@ -61,15 +61,6 @@ 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
-
 function cg_dump_props {
 	if [ -n "$VEID" ]; then
 		# Save monotonic offsets for next restore
-- 
2.7.4



More information about the Devel mailing list