Archiver sur plusieurs coeurs avec pbzip2
Le nœud de connexion (frontale) du mésocentre est multi-coeurs. Il est donc possible d’extraire ou de faire des archives en utilisant plusieurs cœurs.
Voici la page d’aide :
$ pbzip2 --help Parallel BZIP2 v1.1.6 - by: Jeff Gilchrist [http://compression.ca] [Oct. 30, 2011] (uses libbzip2 by Julian Seward) Major contributions: Yavor NikolovUsage: pbzip2 [-1 .. -9] [-b#cdfhklm#p#qrS#tVz] -1 .. -9 set BWT block size to 100k .. 900k (default 900k) -b# Block size in 100k steps (default 9 = 900k) -c,--stdout Output to standard out (stdout) -d,--decompress Decompress file -f,--force Overwrite existing output file -h,--help Print this help message -k,--keep Keep input file, don't delete -l,--loadavg Load average determines max number processors to use -m# Maximum memory usage in 1MB steps (default 100 = 100MB) -p# Number of processors to use (default: autodetect [8]) -q,--quiet Quiet mode (default) -r,--read Read entire input file into RAM and split between processors -S# Child thread stack size in 1KB steps (default stack size if unspecified) -t,--test Test compressed file integrity -v,--verbose Verbose mode -V,--version Display version info for pbzip2 then exit -z,--compress Compress file (default) --ignore-trailing-garbage=# Ignore trailing garbage flag (1 - ignored; 0 - forbidden) If no file names are given, pbzip2 compresses or decompresses from standard input to standard output. Example: pbzip2 -b15vk myfile.tar Example: pbzip2 -p4 -r -5 myfile.tar second*.txt Example: tar cf myfile.tar.bz2 --use-compress-prog=pbzip2 dir_to_compress/ Example: pbzip2 -d -m500 myfile.tar.bz2 Example: pbzip2 -dc myfile.tar.bz2 | tar x Example: pbzip2 -c < myfile.txt > myfile.txt.bz2
L’information importante est le nombre de processeurs demandé. Par exemple, pour 4 cœurs : pbzip2 -d -p4 mon_fichier.tar.gz
Last updated : 15 septembre 2014