i think we should revert the package compression change for ARM - the latest
change made zstd too hungry

libre/pacman/makepkg.conf.archarm:
-COMPRESSZST=(zstd -c -z -q -)
+COMPRESSZST=(zstd -c -T0 --ultra -20 -)

that got me into trouble with the first package i tried - util-linux
failed with this error:

> |    -> Compressing package...
> |  zstd: error 11 : Allocation error : not enough memory
> |  bsdtar: Write error

i consulted the manual:

> --ultra: ... Note that decompression will also require more memory
> 
> --single-thread: this can be slightly slower. Single-thread mode features
>                  significantly lower memory usage, which can be useful for
>                  systems with limited amount of memory, such as 32-bit 
> systems.

o/c beefcake has much more memory than the systems that doc is addressing; but
ARM build are more error-prone at the limits; and they have choked beefcake
before - in this case, `--single-thread` allowed util-linux to complete -
probably reverting to the previous parabola would have sufficed; but according
to the manual, --single-thread is appropriate

ARM builds are about 10 times slower than x86 anyways - "slightly slower" at
that one stage is a fair trade-off to prevent bringing down the system like a
few days ago
_______________________________________________
Dev mailing list
[email protected]
https://lists.parabola.nu/mailman/listinfo/dev

Reply via email to