]> git.scottworley.com Git - picsort/commitdiff
Be polite with i/o
authorScott Worley <scottworley@scottworley.com>
Sun, 19 Jul 2020 16:14:55 +0000 (09:14 -0700)
committerScott Worley <scottworley@scottworley.com>
Sun, 19 Jul 2020 16:14:55 +0000 (09:14 -0700)
pics-preprocess

index ec66abfb9bd3550838be67276c99d793649a8ce1..9d0b42f06e07357f0f9c20e68d081ca9860f227f 100755 (executable)
@@ -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