summaryrefslogtreecommitdiffstats
path: root/parallel_xz.sh
diff options
context:
space:
mode:
authorJustin M. Forbes <jforbes@fedoraproject.org>2023-01-12 09:21:29 -0600
committerJustin M. Forbes <jforbes@fedoraproject.org>2023-01-12 09:21:29 -0600
commit3a289bd0308579c54377b5c9c555a85af3722544 (patch)
treecad8d20300baeea038e3eee947b6cc0b0f6b4c71 /parallel_xz.sh
parent6eb46a8a707658f8c243c2d9db0f4275b0dec8ad (diff)
downloadkernel-3a289bd0308579c54377b5c9c555a85af3722544.tar.gz
kernel-3a289bd0308579c54377b5c9c555a85af3722544.tar.xz
kernel-3a289bd0308579c54377b5c9c555a85af3722544.zip
kernel-6.1.5-100
* Thu Jan 12 2023 Justin M. Forbes <jforbes@fedoraproject.org> [6.1.5-0] - KVM: VMX: Execute IBPB on emulated VM-exit when guest has IBRS (Jim Mattson) - Update module filters for nvmem_u-boot-env (Justin M. Forbes) - drivers/firmware: skip simpledrm if nvidia-drm.modeset=1 is set (Javier Martinez Canillas) - fedora: Updates for 6.1 merge (Peter Robinson) - Linux v6.1.5 Resolves: Signed-off-by: Justin M. Forbes <jforbes@fedoraproject.org>
Diffstat (limited to 'parallel_xz.sh')
-rwxr-xr-xparallel_xz.sh26
1 files changed, 0 insertions, 26 deletions
diff --git a/parallel_xz.sh b/parallel_xz.sh
deleted file mode 100755
index f1b6cdd15..000000000
--- a/parallel_xz.sh
+++ /dev/null
@@ -1,26 +0,0 @@
-#!/bin/sh
-# Reads filenames on stdin, xz-compresses each in place.
-# Not optimal for "compress relatively few, large files" scenario!
-
-# How many xz's to run in parallel:
-procgroup=""
-while test "$#" != 0; do
- # Get it from -jNUM
- N="${1#-j}"
- if test "$N" = "$1"; then
- # Not -j<something> - warn and ignore
- echo "parallel_xz: warning: unrecognized argument: '$1'"
- else
- procgroup="$N"
- fi
- shift
-done
-
-# If told to use only one cpu:
-test "$procgroup" || exec xargs -r xz
-test "$procgroup" = 1 && exec xargs -r xz
-
-# xz has some startup cost. If files are really small,
-# this cost might be significant. To combat this,
-# process several files (in sequence) by each xz process via -n 16:
-exec xargs -r -n 16 -P "$procgroup" xz