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

Submitted by Kirill Gorkunov on March 27, 2017, 3:13 p.m.

Details

Message ID 20170327151356.GA25216@uranus
State New
Series "scripts: vz-cpt.in -- Drop old ulimit hack"
Headers show

Commit Message

Kirill Gorkunov March 27, 2017, 3:13 p.m.
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@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.

Patch hide | download patch | download mbox

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