From 03477b6696123a261eb800905ca25fff171b082a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Kula?= <148193449+miku-orb@users.noreply.github.com> Date: Mon, 9 Mar 2026 15:51:38 +0100 Subject: [PATCH 3/3] Bug 42028: set process niceness for koha-dump Check niceness with htop, check ionice with: ionice -p `pidof zstd` (or replace zstd with mysqldump or tar) --- debian/scripts/koha-dump | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/debian/scripts/koha-dump b/debian/scripts/koha-dump index b446f47e6b..f4287969ce 100755 --- a/debian/scripts/koha-dump +++ b/debian/scripts/koha-dump @@ -30,6 +30,11 @@ fi # Make sure the files we create are not accessible by anyone else. umask 0077 +# Set current process's CPU and IO niceness, so that the script doesn't steal resources from more important tasks. +# These values are also inherited by children processes. +renice -n 10 -p $$ || ( [ "$quiet" = "no" ] && echo "Failed setting nice value. This is a harmless error." ) +ionice -c 3 -p $$ || ( [ "$quiet" = "no" ] && echo "Failed setting ionice idle class value. This is a harmless error." ) + usage() { local scriptname=$(basename $0) -- 2.53.0