[PATCH] image: let mksquashfs4 use all processors

Phillip Lougher phillip.lougher at gmail.com
Sat Feb 19 10:21:46 PST 2022


On Sat, Feb 19, 2022 at 4:01 PM Felix Fietkau <nbd at nbd.name> wrote:
>
> On 19.02.22 16:54, Stijn Tintel wrote:
> > Drop the -processors argument from the mksquashfs4 call, so it will use
> > all available processors. This dramatically reduces the time to create
> > squashfs filesystems.
> >
> > The times below are observed when building an image for my main router,
> > the WatchGuard Firebox M300 (qoriq target):
> >
> > Before:
> > real    4m45,973s
> >
> > After:
> > real    0m23,497s
> >
> > Signed-off-by: Stijn Tintel <stijn at linux-ipv6.be>
> We need to verify that this doesn't break reproducible builds...
>

It won't break reproducible builds.  Since Mksquashfs version 4.4 the
ordering is guaranteed to be the same, irrespective of how many
threads or processors are used.

Phillip

--
Squashfs author and maintainer.



More information about the openwrt-devel mailing list