From f5b65ffb443e01733be30d109122b9188d3d04fa Mon Sep 17 00:00:00 2001 From: Scott Worley Date: Sun, 19 Jul 2020 09:14:55 -0700 Subject: [PATCH] Be polite with i/o --- pics-preprocess | 1 + 1 file changed, 1 insertion(+) diff --git a/pics-preprocess b/pics-preprocess index ec66abf..9d0b42f 100755 --- a/pics-preprocess +++ b/pics-preprocess @@ -9,6 +9,7 @@ MINFREESPACE=$((10 * 1024 * 1024)) # 10GiB in KiB SMALLHEIGHT=700 renice -n 19 $$ +ionice -c 3 -p $$ for f;do if (( "$(df -k . | awk 'NR == 2 { print $4 }')" < $MINFREESPACE ));then -- 2.44.1