You are not logged in.

#1 2013-08-12 22:45:43

nullstring
Member
Registered: 2011-07-23
Posts: 14

Can you increase pacman performance by multithreading (CPU)

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

#2 2013-08-12 22:48:15

Earnestly
Member
Registered: 2011-08-18
Posts: 805

Re: Can you increase pacman performance by multithreading (CPU)

xz is multithreaded

Offline

#3 2013-08-12 22:56:09

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,597
Website

Re: Can you increase pacman performance by multithreading (CPU)

Kaustic wrote:

xz is multithreaded

Not the stable version... You need the beta for that.  Lrzip is multithreaded....


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#4 2013-08-12 23:01:02

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Can you increase pacman performance by multithreading (CPU)

Offline

#5 2013-08-12 23:03:02

Earnestly
Member
Registered: 2011-08-18
Posts: 805

Re: Can you increase pacman performance by multithreading (CPU)

graysky wrote:
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

#6 2013-08-12 23:12:51

nullstring
Member
Registered: 2011-07-23
Posts: 14

Re: Can you increase pacman performance by multithreading (CPU)

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

#7 2013-08-12 23:15:43

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Can you increase pacman performance by multithreading (CPU)

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

#8 2013-08-12 23:24:42

nullstring
Member
Registered: 2011-07-23
Posts: 14

Re: Can you increase pacman performance by multithreading (CPU)

karol wrote:

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

#9 2013-08-12 23:30:35

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Can you increase pacman performance by multithreading (CPU)

I don't have a multicore cpu to test it, but it may be the case.

Offline

#10 2015-01-15 15:57:16

yurikoles
Member
Registered: 2014-12-28
Posts: 5

Re: Can you increase pacman performance by multithreading (CPU)

xz already assumes usage of LZMA2 algorithm, one of the main features of it is multithreading support.
So format is not changed.

Offline

#11 2015-01-16 00:35:26

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,395
Website

Re: Can you increase pacman performance by multithreading (CPU)

We can not use delta packages if we use multithreaded support in xz.

Offline

#12 2015-01-16 00:40:00

bstaletic
Member
Registered: 2014-02-02
Posts: 658

Re: Can you increase pacman performance by multithreading (CPU)

Allan,
Why is that? I can see no correlation between parallel xz and delta packages.

Offline

#13 2015-01-16 14:50:26

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,395
Website

Re: Can you increase pacman performance by multithreading (CPU)

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

Board footer

Powered by FluxBB