{"id":5917,"date":"2019-12-16T14:42:29","date_gmt":"2019-12-16T06:42:29","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=5917"},"modified":"2022-05-11T23:08:00","modified_gmt":"2022-05-11T15:08:00","slug":"pigz","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/pigz","title":{"rendered":"pigz\u547d\u4ee4 – \u591a\u7ebf\u7a0b\u7684\u89e3\u538b\u7f29\u6587\u4ef6"},"content":{"rendered":"\n

pigz\u547d\u4ee4\u6765\u81ea\u4e8e\u82f1\u6587\u8bcd\u7ec4\u201dparallel implementation of gzip\u201c\u7684\u7f29\u5199\uff0c\u5176\u529f\u80fd\u662f\u7528\u4e8e\u591a\u7ebf\u7a0b\u7684\u89e3\u538b\u7f29\u6587\u4ef6\u3002\u4e0e\u5176\u4ed6\u89e3\u538b\u7f29\u547d\u4ee4\u4e0d\u540c\u7684\u662fpigz\u547d\u4ee4\u652f\u6301\u591a\u7ebf\u7a0b\u7684\u5e76\u884c\u5904\u7406\u65b9\u5f0f\uff0c\u540c\u6bd4gzip\u80fd\u5feb60%\u4ee5\u4e0a\uff0c\u5f53\u7136CPU\u7684\u6d88\u8017\u4e5f\u4f1a\u66f4\u9ad8\u3002\u5982\u679c\u60f3\u5feb\u901f\u7684\u538b\u7f29\u3001\u89e3\u538b\u6587\u4ef6\uff0c\u90a3\u4e48\u5c31\u4e00\u5b9a\u8981\u9009\u5b83~\uff01<\/p>\n\n\n\n

\u8bed\u6cd5\u683c\u5f0f:<\/strong> pigz [\u53c2\u6570] \u6587\u4ef6<\/p>\n\n\n\n

\u5e38\u7528\u53c2\u6570<\/strong>:<\/p>\n\n\n\n

-b <\/td>\u66f4\u6539block\u5757\u5927\u5c0f <\/td><\/tr>
-p <\/td>\u8bbe\u7f6e\u7ebf\u7a0b\u6570 <\/td><\/tr>
-S <\/td>\u4f7f\u7528\u540e\u7f00.sss\u800c\u4e0d\u662f.gz(\u7528\u4e8e\u538b\u7f29)<\/td><\/tr>
-d <\/td>\u5c06\u538b\u7f29\u6587\u4ef6\u6062\u590d\u4e3a\u539f\u59cb\u6587\u4ef6<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n

\u53c2\u8003\u5b9e\u4f8b<\/strong><\/p>\n\n\n\n

\u5bf9\u6307\u5b9a\u7684\u5df2\u6709\u6253\u5305\u597d\u7684\u6587\u4ef6\u8fdb\u884c\u538b\u7f29\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# pigz etc.tar<\/strong><\/pre>\n\n\n\n

\u67e5\u770b\u6307\u5b9a\u6587\u4ef6\u7684\u538b\u7f29\u6bd4\u7387\u4fe1\u606f\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# pigz -l etc.tgz <\/strong>\ncompressed   original reduced  name\n   6300707   27074560   76.7%  etc.tar<\/pre>\n\n\n\n

\u89e3\u538b\u6307\u5b9a\u7684\u6587\u4ef6\uff0c\u7ebf\u7a0b\u8bbe\u5b9a\u4e3a8\u4e2a\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# pigz -d -p 8 etc.tgz<\/strong><\/pre>\n","protected":false},"excerpt":{"rendered":"

pigz\u547d\u4ee4\u6765\u81ea\u4e8e\u82f1\u6587\u8bcd\u7ec4\u201dparallel implementation of gzip\u201c\u7684\u7f29\u5199\uff0c\u5176\u529f\u80fd\u662f\u7528 […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[11],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/5917"}],"collection":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/comments?post=5917"}],"version-history":[{"count":22,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/5917\/revisions"}],"predecessor-version":[{"id":9569,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/5917\/revisions\/9569"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=5917"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=5917"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=5917"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}