Bugzilla – Attachment 195005 Details for
Bug 42028
DB backup improvements: use ZSTD compression and tweak default settings
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[PATCH 3/3] Bug 42028: set process niceness for koha-dump
0003-Bug-42028-set-process-niceness-for-koha-dump.patch (text/plain), 1.15 KB, created by
Michał
on 2026-03-09 14:54:50 UTC
(
hide
)
Description:
[PATCH 3/3] Bug 42028: set process niceness for koha-dump
Filename:
MIME Type:
Creator:
Michał
Created:
2026-03-09 14:54:50 UTC
Size:
1.15 KB
patch
obsolete
>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 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 42028
:
195003
|
195004
| 195005