Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#39529 - [pacman] parallel xz compression / change default compressor for package generation to pixz
Attached to Project:
Arch Linux
Opened by Olaf Leidinger (leidola) - Tuesday, 18 March 2014, 17:06 GMT
Last edited by Allan McRae (Allan) - Friday, 12 June 2015, 03:40 GMT
Opened by Olaf Leidinger (leidola) - Tuesday, 18 March 2014, 17:06 GMT
Last edited by Allan McRae (Allan) - Friday, 12 June 2015, 03:40 GMT
|
DetailsDescription:
For binary packages from aur, the most time consuming task for me is compressing the package via XZ. I recently checked for a parallel version in the same manner as pbzip2 and I found pixz. As for pbzip2, the generated packages are compatible with the single-core implementations. I can generate xz packages via pixz by setting COMPRESSXZ=(pixz ) in makepkg.conf. I think this would probably benefit the build-servers, too. pixz is currently in AUR only, the code is available via: https://github.com/vasi/pixz |
This task depends upon
-T threads, --threads=threads
Specify the number of worker threads to use. The actual number of threads can be less than threads if using more threads would exceed the memory usage limit.
Feel free to do as you wish with your config. I don't believe there's any justification here to set a multi-threaded default and make assumptions about the machines that build packages.
"Multithreaded compression and decompression are not implemented yet, so this option has no effect for now."
Anyway, this has been discussed by the developers previously and there is no interesting in doing anything beyond waiting for a new xz release. Feel free to edit your config files how you want...
We can enable it in makepkg.conf like this:
COMPRESSXZ=(xz -T0 -c -z -)
Tested, it works.
[1] http://git.tukaani.org/?p=xz.git;a=blob;f=NEWS;hb=HEAD
From discussion in IRC I remember that creating delta packages holds back this change in default behavior.
Maybe this can be fixed on the side where the delta pkg creator reads its config.