Amarillo Linux Users Group

Meeting Information   •    IRC & XChat Howto   •    IRC   •    Stuff To Wear   •    RSS
User Info
 
 
Welcome, Guest. Please login or register.

Search


Who's Online
Dot Online Guests : 3
Dot Online Users : 0
Dot Hidden Users : 0
Dot Total Users : 3

Pages: [1]
Print
Author Topic: Pigz!  (Read 96 times)
0 Members and 1 Guest are viewing this topic.
Marty
Administrator
Addicted to ALUG
*****
Offline Offline

Posts: 1313


The Real Slim Shady


View Profile
« on: January 09, 2012, 11:37:37 pm »

Hey guys,
I just discovered a nifty little tool called pigz. Its basically a drop in replacement for gzip that allows you to compress / uncompress things using multiple cores. From what I can tell on my 6 core amd, its using 4 cores... This greatly speeds up the compression and decompression process. As I type this, I'm compressing a folder with 136,000 files inside consisting of a total of 80GB!

I'm not 100% sure this is the correct way to use it, but here's what I did.

First, install it.
Code:
sudo apt-get install pigz

Then I simply replace my gzip file with a symbolic link to pigz and use tar like normal.
Backup gzip...
Code:
sudo mv /bin/gzip /bin/gzip.old

and make the symbolic link.
Code:
sudo ln -s /usr/bin/pigz /bin/gzip

Then you simply use tar and gzip like you normally would. You should notice much faster compression times of multiple files!

Typical tar usage is like this:
tar -zcvf prog-1-jan-2005.tar.gz /home/marty/prog

Enjoy!

Logged

-Marty

whatis sex
sex: nothing appropriate.
Pages: [1]
Print
 
Jump to:  


Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC
SimplePortal 2.1.1

Mesh design by Bloc | XHTML | CSS