The correct parameter must be typed without the equal sign.Ĭommand to do a benchmark with 7z with only one thread: 7z b -mmt1Ĭommand to do a benchmark with 7z with only two threads: 7z b -mmt2Ĭommand to do a benchmark with 7za with only two threads: 7za b -mmt2Ĭommand to do a benchmark with 7za with only one thread: 7za b -mmt1 So to test the parameter i run a set of commands to do benchkmarks and that confirmed the typo error on some documentation. Not sure if i understand well, my english is really poor.īy the way, why you use "7za" instead of just "7z"? So if i understand well, the parameter you are typing "-mmt=2" may be misswritten and may be "-mmt2", without the equal sign. How i had discovered? After i run 7z without any parameter it shows the info about parameters, on switches it say "-mmt", not "-mmt=" Verified and tested: To use multithreading on 7za the parameter must be "-mmt#" not "-mmt=#", putting the equal sign makes it to ignore. Its been this way for several years, at this point, and I wish 7zip was multi-threaded by default in Linux too. My overall experience is that Zstandard compression isn't as strong as 7zip, but it is way faster and the zstdmt command tries to use all cores.īTW, on Window, 7zip uses all processors by default and I'm very disappointed that this is not the case in Linux. Medium compression (level 10): tar cf - /folder/you/want/to/compress | zstdmt -10 -o /location/to/output/fileName$(date '+%Y-%m-%d_%H:%M:%S').tar.zst Max compression (slowest): tar cf - /folder/you/want/to/compress | zstdmt -19 -o /location/to/output/fileName$(date '+%Y-%m-%d_%H:%M:%S').tar.zst You can specify compression levels 1-19 (3 is default). Super fast multi-threaded compression: tar cf - /folder/you/want/to/compress | zstdmt -o /location/to/output/fileName$(date '+%Y-%m-%d_%H:%M:%S').tar.zst On Ubuntu, you install it like this: sudo apt install zstd ![]() This container also handles the following algorithms: PPMd, BZip2, DEFLATE, BCJ, BCJ2 and no compression.Īnother option, to achieve multi-theaded compression on Linux is to use what Facebook uses, Zstandard. If you want to use the LZM Algorithm, use a. zip conatiners are DEFLATE(64), BZip2 and no compression. The syntax is: 7za a -mm=BZip2 archive.zip bigfileĪlso, the syntax error is caused by your attempt to use the LZM Algorithm for a. If you want to speed up the compression of a single file, you have two choices:įor example, 7zip's implementation of the BZip2 algorithm supports multi-threading. ![]() Try it and you'll see that 7za a archive.zip bigfile1. When compressing several files, the multi-threading option compresses one file per core at once. zip files compress every file individually. However, 7zip's implementation of the DEFLATE algorithm doesn't support multi-threading!Īs you have already discovered, 7za a archive.zip bigfileīut. According to -m (Set compression Method) switch # ZipMultiThread - 7ZIP manual & documentation, mt defaults to on, so there's no need to specify it at all.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |