Category: Linux

Utilizing multi core for tar+gzip/bzip compression/decompression

We have couple options: pigz and pbzip2. tar -c –use-compress-program=pigz -f my_archive.tar.gz /home/archive The other trick useful trick is that you can exclude some directories or files tar -zcvf my_archive.tar.gz –exclude=’cache’ –exclude=’.git’ /home/archive

EC2 Instance and SWAP space

EC2 Instances on Amazon out of the box, does not contain any SWAP space. So if you exhaust memory, machine probably stuck. It’s very good practice, to give them at least slow SWAP memory...