You are not logged in.
Is there anything that can be done to configure pacman to use parallel threads for it's tasks?
For example, can you switch out xz for a different decompressor supporting multiple threads?
I have a slower netbook (1Ghz amd C-50), but it has two cores. The ability to take advantage of this would increase my pacman performance significantly.
Any thoughts on this?
Offline
xz is multithreaded
Offline
xz is multithreaded
Not the stable version... You need the beta for that. Lrzip is multithreaded....
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline
See also:
https://bugs.archlinux.org/task/25882
https://bbs.archlinux.org/viewtopic.php?id=137918
Last edited by karol (2013-08-12 23:02:53)
Offline
Kaustic wrote:xz is multithreaded
Not the stable version... You need the beta for that. Lrzip is multithreaded....
Yeah, I forgot Arch still uses 5.0.5 and not 5.1.x (and yes, lrzip is better)
Last edited by Earnestly (2013-08-12 23:13:26)
Offline
Even if xz supported it, it doesn't look like libarchive does. I don't think there is anyway to configure pacman to use it.
Please correct me if I'm wrong.
I'll gladly go build a new version of xz
Last edited by nullstring (2013-08-12 23:15:49)
Offline
Use https://aur.archlinux.org/packages/xz-git/ to compress and next try decompressing with it - it should use all available cores.
The packages you build from AUR don't have to be compressed at all, but the ones from the official repos still use xz 5.0.5 so no dice.
Offline
Use https://aur.archlinux.org/packages/xz-git/ to compress and next try decompressing with it - it should use all available cores.
The packages you build from AUR don't have to be compressed at all, but the ones from the official repos still use xz 5.0.5 so no dice.
Are you suggesting that the archives need to be compressed with a new version to enable multithreaded decompression?
Offline
I don't have a multicore cpu to test it, but it may be the case.
Offline
xz already assumes usage of LZMA2 algorithm, one of the main features of it is multithreading support.
So format is not changed.
Offline
We can not use delta packages if we use multithreaded support in xz.
Offline
Allan,
Why is that? I can see no correlation between parallel xz and delta packages.
Offline
xdelta works on uncompressed files and re-compresses them. I am told that parallel xz will result in different compressed files depending on the system. So the regenerated package will fail to pass the integrity check.
Offline