What does the "m" mean in "LZMA2:192m" from 7z t?

Questions about applications and software
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
HyperBear
Level 2
Level 2
Posts: 92
Joined: Thu May 04, 2023 3:39 am

What does the "m" mean in "LZMA2:192m" from 7z t?

Post by HyperBear »

When creating an archive with high compression settings ( 7z a -md=1024m -mfb=128 -ms=on -mx=9 ) and then running 7z t, one line from the output is:

Code: Select all

Method = LZMA2:192m
For an archive created using file-roller or the default 7z settings (no additional parameters):

Code: Select all

Method = LZMA2:24
What does the "m" from "192m" mean?

I am assuming the number means dictionary size in megabytes, and it is not "1024m" because the archive only contains 170 MB of uncompressed data. However, if it means "megabytes", how come "LZMA2:24" has no "m" after it?
Last edited by LockBot on Mon Aug 26, 2024 10:00 pm, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
stevengarland
Level 10
Level 10
Posts: 3252
Joined: Tue Mar 05, 2019 4:04 pm
Location: Michigan

Re: What does the "m" mean in "LZMA2:192m" from 7z t?

Post by stevengarland »

Keep It Simple Sweetheart
karlchen
Level 24
Level 24
Posts: 20122
Joined: Sat Dec 31, 2011 7:21 am
Location: Germany

Re: What does the "m" mean in "LZMA2:192m" from 7z t?

Post by karlchen »

Hello, HyperBear.

Your understanding of Method = LZMA2:192m is correct: dictionary size of 192 MiB. Reduced from 1024m given on the commandline to 192m, because dictionary size much larger than data size does not improve the compression ratio.

Method = LZMA2:24 means dictionary size: 2^24. If no size is suffixed to the given number it is interpreted as a power of two: 24 => 2^24.
Cf. LZMA2:24 (or 192k), please.

Karl
Image
The people of Alderaan have been desperately fighting back the clone warriors sent out by the unscrupulous Sith Lord Palpatine for 3 years, just to be betrayed by their most powerful ally.
Locked

Return to “Software & Applications”