You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bugzilla: INTERNAL
Upstream Status: RHEL only
commit 7f5f91411c41096fff0b86718584363dd910cd6b
Author: Prarit Bhargava <prarit@redhat.com>
Date: Sat Jan 21 07:54:21 2023 -0500
redhat/kernel.spec.template: Parallelize compression
This line in the kernel.spec file:
find $RPM_BUILD_ROOT/lib/modules/ -type f -name '*.ko' | xargs -P${RPM_BUILD_NCPUS} -r xz;
implies that ${RPM_BUILD_NCPUS} xz instances are run. This is not true,
and this line actually applies ${RPM_BUILD_NCPUS} to a single instance of
xz. This means that the compression has been done one module at a time
(ie, in serial) rather than in parallel as is implied by the code.
Use xarg's -n option to assign 16 cpus per process and parallelize the
compression.
Suggested-by: "Herton R. Krzesinski" <herton@redhat.com>
Signed-off-by: Prarit Bhargava <prarit@redhat.com>
Signed-off-by: Herton R. Krzesinski <herton@redhat.com>
0 commit comments