On 2018-06-15 Denys Vlasenko wrote:
> I noticed that one of my build scripts has this:
>
> find $RPM_BUILD_ROOT/lib/modules/ -type f -name '*.ko' | xargs xz
>
> A rather typical usage, right?
>
> In my case, this takes several minutes to complete,
> as there are 4000+ modules. The quick check
find $RPM_BUILD_ROOT/lib/modules/ -type f -name '*.ko' | xargs xz
Shorten each piped pathname so that fewer invocations of xz are required:
( cd $RPM_BUILD_ROOT/lib/modules/; find . -type f -name '*.ko' | xargs xz )
--
Hi,
I noticed that one of my build scripts has this:
find $RPM_BUILD_ROOT/lib/modules/ -type f -name '*.ko' | xargs xz
A rather typical usage, right?
In my case, this takes several minutes to complete,
as there are 4000+ modules. The quick check confirms that xz
runs single-threaded.
The
Hi,
I noticed that one of my build scripts has this:
find $RPM_BUILD_ROOT/lib/modules/ -type f -name '*.ko' | xargs xz
A rather typical usage, right?
In my case, this takes several minutes to complete,
as there are 4000+ modules. The quick check confirms that xz
runs single-threaded.
The