一个并行压缩的工具zipmt

随着数据的积累,被备份的文件也越来越大,通常都是采用linux自带的压缩工具进行压缩备份。今天发现一个并行压缩的工具zipmt,可以充分利用机器上的cpu来并行压缩,减少压缩时间。
压缩方法

Usage:
  zipmt [OPTION...]  - muti threaded bzip2 compression utility

   - The name of the file to compress or just use “-” to indicate
        stdandard input.

Help Options:
  -?, –help        Show help options

Application Options:
  -t, –threads     The number of threads to use.
  -v, –verbose     Show Progress
  -o, –outfile     The name of an output file to write to
  -c, –stdout      Write data to standard out
  -s, –stream      Compress using the stream method

压缩时主要注意要用 -t n选项指定用来并行压缩的线程数量(一般和机器上安装的cpu数量对应),根据这个参数的设定以及机器实际的cpu数量,一般压缩时间会缩短到约为原先的 1/n 时间。

解压方式
zipmt不提供解压功能,需要用 bunzip2 来解压。

Popularity: 27% [?]

Random Posts

Comments

Leave a Reply