summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustin M. Forbes <jforbes@fedoraproject.org>2020-11-16 10:52:07 -0600
committerJustin M. Forbes <jforbes@fedoraproject.org>2020-11-16 10:52:07 -0600
commit1c3978ac3470147988e7c705fab210d159baf0ad (patch)
tree79779a1b389545fb840b54f10481b7aab09ba387
parent6c08b065ee573e0f3ceace504e738d7a0ca5f829 (diff)
downloadkernel-1c3978ac3470147988e7c705fab210d159baf0ad.tar.gz
kernel-1c3978ac3470147988e7c705fab210d159baf0ad.tar.xz
kernel-1c3978ac3470147988e7c705fab210d159baf0ad.zip
Testing different thread limits in parallel_xz.sh
Signed-off-by: Justin M. Forbes <jforbes@fedoraproject.org>
-rwxr-xr-xparallel_xz.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/parallel_xz.sh b/parallel_xz.sh
index bc08a548d..65621501c 100755
--- a/parallel_xz.sh
+++ b/parallel_xz.sh
@@ -16,6 +16,11 @@ while test "$#" != 0; do
shift
done
+#This seems to cause problems with large numbers
+if (( $procgroup > 8 )); then
+ procgroup=8
+fi
+
# If told to use only one cpu:
test "$procgroup" || exec xargs -r xz
test "$procgroup" = 1 && exec xargs -r xz