Red Hat Bugzilla – Bug 1029786
RFE: run compression utilities in a multithread way
Last modified: 2016-03-28 18:31:02 EDT
Description of problem:
dracut runs compression utilities in various places. And while xz/lzma has the -T option to tell number of threads they should use and there is 'pigz' as a parallel version of gzip, dracut doesn't make use of that. Changing those calls would significantly speed up processing on multicore machines.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. run dracut
2. run 'top' to see that the forked 'xz' process uses at most 100 % CPU
compression done using one thread only
compression done using as much threads as possible
Oh I see, pigz is already used.
gzip) compress="gzip -9"; command -v pigz > /dev/null 2>&1 && compress="pigz -9";;
Created attachment 823305 [details]
Patch for running xz and lzma in multiple threads
This bug was accidentally moved from POST to MODIFIED via an error in automation, please see firstname.lastname@example.org with any questions