You are not logged in.

#1 2013-07-26 13:47:40

baronmax
Member
From: Missouri, USA
Registered: 2012-04-22
Posts: 37

[SOLVED] "compressing package" - Any way to make multithreaded?

Hello everyone.  I was wondering if there was any way to make yaourt/pacaur use multiple threads while doing the final compression of the packages toward the end of installation?  On larger packages like the ATI driver, for example, it can take quite a bit of time to do that final compression before pacman takes over and installs the application. 

I noticed that Graysky did a comparison last year between xz and lrz, showing a pretty dramatic speedup when using lrz, and of course lrz has a multi-threaded option built in, whereas xz does not (or at least not that I can find, anyway).  So is this an issue with pacman, ultimately, or with AUR helpers?  And is there any way to speed-up the process of compression?

Thanks in advance and have a great weekend.  smile

Last edited by baronmax (2013-07-26 13:57:04)


Intel 980x| 24GB RAM| Arch + Cinnamon/i3
Intel 2600K| 8GB RAM| Arch + Awesome/XFCE
Intel Q740| 6GB RAM| Arch + XFCE/Cinnamon
AMD Phenom x6 1090T| Ubuntu/Winblowz (gaming)

Offline

#2 2013-07-26 13:54:52

Allan
is always right
From: Brisbane, AU
Registered: 2007-06-09
Posts: 10,465
Website

Re: [SOLVED] "compressing package" - Any way to make multithreaded?

Not what you are asking for, but even better...   If the package is just going to be installed on your system, there is no need to compress it.  It will just be decompressed again anyway.

Edit makepkg.conf and change  PKGEXT='.pkg.tar.xz'  to PKGEXT='.pkg.tar'

Offline

#3 2013-07-26 13:56:34

baronmax
Member
From: Missouri, USA
Registered: 2012-04-22
Posts: 37

Re: [SOLVED] "compressing package" - Any way to make multithreaded?

Allan wrote:

Not what you are asking for, but even better...   If the package is just going to be installed on your system, there is no need to compress it.  It will just be decompressed again anyway.

Edit makepkg.conf and change  PKGEXT='.pkg.tar.xz'  to PKGEXT='.pkg.tar'

Awesome!  That will work wonderfully.  Thank you!  smile


Intel 980x| 24GB RAM| Arch + Cinnamon/i3
Intel 2600K| 8GB RAM| Arch + Awesome/XFCE
Intel Q740| 6GB RAM| Arch + XFCE/Cinnamon
AMD Phenom x6 1090T| Ubuntu/Winblowz (gaming)

Offline

#4 2016-11-30 23:33:31

boscowitch
Member
Registered: 2010-04-10
Posts: 12

Re: [SOLVED] "compressing package" - Any way to make multithreaded?

Just stumbled over this little genious energy and time saver...

i guess it would be good to add an option to makepkg to skip compression on a commandline option that way tools like yaourt could invoke it when installing packets locally and would not need to run the full release style compression...

EDIT:
or the other way around make not compression default and add an option to invoke compression for releases ... anyway most devs read the wiki anyway but on the other hand non dev will probably just use defaults and waste cpu by not finding this...

Last edited by boscowitch (2016-11-30 23:35:28)

Offline

#5 2016-11-30 23:42:27

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 13,823

Re: [SOLVED] "compressing package" - Any way to make multithreaded?

Taking this opportunity to close this old thread.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
You assume people are rational and influenced by evidence.  You must not work with the public much. -- Trilby
----
How to Ask Questions the Smart Way

Offline

Board footer

Powered by FluxBB