From fde256744d088121c023f3547c0dd49b96a6f13d Mon Sep 17 00:00:00 2001 From: dpeca Date: Fri, 1 Mar 2019 14:30:05 +0100 Subject: [PATCH] nice and ionice for filemanager operation functions --- web/file_manager/fm_core.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/web/file_manager/fm_core.php b/web/file_manager/fm_core.php index 4c552b0c..6adb0f75 100644 --- a/web/file_manager/fm_core.php +++ b/web/file_manager/fm_core.php @@ -83,7 +83,7 @@ class FileManager { $src = $this->formatFullPath($item); $dst = $this->formatFullPath($target_dir); - exec (VESTA_CMD . "v-copy-fs-file {$this->user} {$src} {$dst}", $output, $return_var); + exec (VESTA_CMD . "nice -n 19 ionice -c 3 v-copy-fs-file {$this->user} {$src} {$dst}", $output, $return_var); $error = self::check_return_code($return_var, $output); @@ -104,7 +104,7 @@ class FileManager { $src = $this->formatFullPath($item); $dst = $this->formatFullPath($target_dir); - exec (VESTA_CMD . "v-copy-fs-directory {$this->user} {$src} {$dst}", $output, $return_var); + exec (VESTA_CMD . "nice -n 19 ionice -c 3 v-copy-fs-directory {$this->user} {$src} {$dst}", $output, $return_var); $error = self::check_return_code($return_var, $output); @@ -159,7 +159,7 @@ class FileManager { $dst_item = $this->formatFullPath($dst_item); - exec (VESTA_CMD . "v-add-fs-archive {$this->user} {$dst_item} {$items}", $output, $return_var); + exec (VESTA_CMD . "nice -n 19 ionice -c 3 v-add-fs-archive {$this->user} {$dst_item} {$items}", $output, $return_var); $error = self::check_return_code($return_var, $output); @@ -183,7 +183,7 @@ class FileManager { $dst_item = $this->formatFullPath($dst_item_name); - exec (VESTA_CMD . "v-copy-fs-file {$this->user} {$src_item} {$dst_item}", $output, $return_var); + exec (VESTA_CMD . "nice -n 19 ionice -c 3 v-copy-fs-file {$this->user} {$src_item} {$dst_item}", $output, $return_var); $error = self::check_return_code($return_var, $output); @@ -219,7 +219,7 @@ class FileManager { $item = $this->formatFullPath($item); $dst_item = $this->formatFullPath($target_dir); - exec (VESTA_CMD . "v-extract-fs-archive {$this->user} {$item} {$dst_item}", $output, $return_var); + exec (VESTA_CMD . "nice -n 19 ionice -c 3 v-extract-fs-archive {$this->user} {$item} {$dst_item}", $output, $return_var); $error = self::check_return_code($return_var, $output);