FileForums

FileForums (https://fileforums.com/index.php)
-   Conversion Tutorials (https://fileforums.com/forumdisplay.php?f=55)
-   -   NEW LOLZ V22c4 (https://fileforums.com/showthread.php?t=102509)

doofoo24 29-12-2018 07:06

New lolz
 
1 Attachment(s)
BIG THANK TO ProFrager from krinkels :)
updated lolz test22c4b

shazzla 29-12-2018 07:10

do u have any changelog ?

nevermind. got it :

implemented ldmf (long distance match finder), which looks for matches outside the range of the main matchfinder dictionary. It was developed as an alternative to srep, with its pluses and minuses. Disable / Enabled with the option -ldmf [0..1]. The ratio of the compression ratio to the required memory for decompression is set with the option -ldc [0..9] at 0, the decompression memory control is disabled, maximizing the compression ratio. The size of the minimum search length is specified by the option -ldl [5..12]. This option affects compression (the smaller, the better compression), the used memory for compression (the smaller, the more memory according to the formula ldmf_compr_mem = src_size / ((2 ^ [ldl]) / 16), i.e. ldl5 will add another half of the size of the input file to the memory already used by lolz, the used memory for unpacking (the smaller, the more memory will be needed) and the compression speed (the smaller, the slower). Added the option -lde [0..2] specifying the level of parsing ldmf matches. 2nd mode is the slowest, 0 is the fastest, but there is a minimum difference in compression. 1st mode is almost as fast as 2nd mode, but compression is usually worse than even the 0th mode. Therefore, at the moment I recommend using either -lde0 or -lde2. The default is -lde0;
added for anpak console and cls.ini parameters -ldmfTempPath and -ldmfMaxMemoryUsage, specifying the path to the ldmf swap files and the size of the memory for ldmf, respectively. The ldmfMaxMemoryUsage parameter when calculating memory includes the size of the main dictionary and even a penny on the model (but the latter is considered by eye, from the balda), for example, if -ldmfMaxMemoryUsage = 64m, one stream and the size of the 16 MB dictionary will be allocated for ldmf memory 16MB, the rest will be discarded in swap. The parameter -ldmfDeleteTmp [0..1] disables / enables deletion of the swap file after unpacking. Disabling is only necessary for debugging purposes and controlling the size of this file. Default = 1;
remade the synchronization function of the thread of the optimal parser and matchfighters. The efficiency of the use of cores in compression with detection has increased, respectively, the overall compression rate has increased;
knocked out the use of large pages, no difference anyway;
added the option -ac [0..1], which includes transferring pricing coding of matches in the matchfinder thread, which speeds up compression with -tt is greater than 4, with less -tt the speed is either the same or worse. Compression may differ slightly from the -ac0 mode, both in plus and minus. Also in this mode, you need a little more memory for compression, which depends on the -tt parameter (add_mem = 200k + 450k * tt);
reduced the size of the statistics of the basic models by limiting some parameters -b * that do not change in practice;
changed the coding model dxt color idx and alpha idx. Now, better compression and faster unpacking of dxt textures;
fixed small jambs and added additional contexts for the raw graphics compression model. The size of the statistics of the graphical model increased from 700kb to 2mb, but compression also improved (in a 24-bit picture from 5'544'705 to 5'406'975).
repaired the -fbb option that was inoperable from some point, but at least the sense of it;

doofoo24 29-12-2018 07:19

lolz v22c4 [Dec 29 2018 17:22:52]

Settings:
----------------------------- detection settings -----------------------------
detection is enabled(-dt)
use probs propagate(-dtp[0..1]): 1 use brute detect(-dtb[0..1]): 0
o1 detect(-dto[0..1]): 1
raw graphic mm detect(-dtm[0..1]): 1 width detect algo(-dtw[0..1]): 1
dxt detect(-dtd[0..1]): 1
--------------------------- multithreading settings --------------------------
mt type(-mtt[0..1]): 0
mt threads(-mt[1..16]): 1 mt block size MB(-mtb[2..512]): 8m
---------------------------- lz & parser settings ----------------------------
dict size in MB(-d[0..2047]): 16m num parser arrivals(-tt[1..256]): 4
parser hard lim(-oh[8..14]): 12 parser soft lim(-os[0..hard_lim]): 8
fb type A(-fba[0..4096,0=off]): 256 fb type B(-fbb[0..4096,0=off]): 0
calc all literals(-al[0..1]): 1 slow parser mode (mlr)(-x[0..2]): 0
move some of calculations to lz matchfinder thread(-ac[0..1]): 0
---------------------------- matchfinder settings ----------------------------
use only lz matchfinder (-rt[0..2]: 0)
lz mf cycles(-mc[2..1023]): 128
use long distance mf(-ldmf[0..1]): 1
ldmf min len exp(-ldl[5..12]): 8 ldmf compr/mem coeff (-ldc[0..9]): 1
ldmf efficient lvl (-lde[0..2]): 0
------------------------------- models settings ------------------------------
general models :
use simple cm(-cm[0..1]): 1
context mixer o1 ctx (-bc[0..6]): 4
use only o1 nibble literal model (-lm[0..4]): 0
literal hi o1 ctx (-blo[0..8]): 8 literal lo o1 ctx (-bll[0..8]): 8
literal hi rep0lit ctx (-blr[0..6]): 4
match flag rep0lit ctx (-bm[0..6]): 4
all -p* settings are ignored due to using detect
dxt models :
dxt color(X) and alpha(Y) model (-dmXY[X[0..3], Y[0..4]]: 34)
raw graphic models :
color mdl options (-gmXY[X[0..2], Y[0..1]]): 00

doofoo24 29-12-2018 10:55

*note
ldmf does not work with -mtt1.
ldmf option more like srep just use it for testing , very unlikely to help improve ratio
setting for ldmf -ldl -ldc -lde.
ac1 help speed up compression when tt larger than 4...
also fbb option work...

felice2011 29-12-2018 13:35

@doofoo24 ... I try some quick tests to realize the real news.

Test On Enwik9: 1GB

Quote:

Old Lolz_x64

Mthd Default :tt1

Comp/Time = 14m20s

Ratio = 21.83%

Used CPU % = (20% - 23%)

Used RAM = (733MB) Max Peak
Quote:

New Lolz_x64

Mthd Default :tt1

Comp/Time = 15m25s

Ratio = 21.72%

Used CPU(%) = (20% - 27%)

Used RAM(MB) = (798MB) Max Peak
Improves the compression ratio, but with about 1 min more time.

Quote:

Extraction Time: cpu 3.25 sec/real 10.05 sec = 32%. Speed 99.50 mB/s
I Try :

Quote:

-mlolz_x64:ldmf1:ldl5:mt6:mc1023

-mlolz_x64:ldmf0:ldl12:mt6:mc1023
I did not see any difference same time and compression ratio...any tip or fix?

doofoo24 29-12-2018 15:24

"mlolz_x64:ldmf0:ldl12:mt6:mc1023"
:confused:
why ldl with ldmf set to 0
ldl -ldc -lde options when ldmf are enabled (set to 1)

felice2011 29-12-2018 16:01

Quote:

Originally Posted by doofoo24 (Post 478294)
"mlolz_x64:ldmf0:ldl12:mt6:mc1023"
:confused:
why ldl with ldmf set to 0

logically I'm trying to understand the difference in performance, speed and compression with the switches enabled or without.:confused::rolleyes:

Quote:

Originally Posted by doofoo24 (Post 478294)
ldl -ldc -lde options when ldmf are enabled (set to 1)

ok I'll try with different options.:)

KaktoR 30-12-2018 02:28

Can't get unpack to work.

"Archive data corrupted"

felice2011 30-12-2018 03:57

yes you need new *.dll files in unpacked.

KaktoR 30-12-2018 04:35

I have.

It seems that archives created with previous lolz version are not compatible anymore (I have compressed a game with previous lolz version).

I will test this with a small file and report back.

doofoo24 30-12-2018 06:41

new lolz test22c4b
 
1 Attachment(s)
fix for unpacking error or something

yasitha 30-12-2018 12:25

I can help just tell me what to do :)

oltjon 30-12-2018 22:43

file size 219.585.545 srep+lolz 135.655.003

file size 219.585.545 lolz:ldmf1 135.602.872

file size 219.585.545 srep+lolz:ldmf1 135.658.543

doofoo24 31-12-2018 04:56

the issue for me using ldmf ram usage on large games in decompression
you need to limit idmf in cls.ini

[lolz]
Bufsize=512k
transfer_ReadBufSize=512k
transfer_WriteBufSize=512k
MaxThreadsUsage=50%
MaxMemoryUsage=50%
ldmfTempPath={app}
ldmfMaxMemoryUsage=1024m
ldmfDeleteTmp=0
*ldmfMaxMemoryUsage you need to specify ram, percentage option does not work..

doofoo24 31-12-2018 05:07

Quote:

Originally Posted by oltjon (Post 478317)
file size 219.585.545 srep+lolz 135.655.003

file size 219.585.545 lolz:ldmf1 135.602.872

file size 219.585.545 srep+lolz:ldmf1 135.658.543

@oltjon

can you test ldmf1 with ldl5 and ldc0

yasitha 31-12-2018 05:34

Quote:

Originally Posted by doofoo24 (Post 478329)
@oltjon

can you test ldmf1 with ldl5 and ldc0

I like to help so tell me what should I do? :)

oltjon 31-12-2018 08:19

Quote:

Originally Posted by doofoo24 (Post 478329)
@oltjon

can you test ldmf1 with ldl5 and ldc0

file size 219.585.545 lolz:ldmf1:ldl5:ldc0 135.602.872

Simorq 07-01-2019 10:39

Code:

Dead Island Definitive Collection *.rpack; 9.31 GB

Creating archive: Test.Bin using lolz:d96m:mtb48mb:mt8:ldmf1:ldl5:mc1023
Compressed 85 files, 9,998,947,300 => 3,573,858,833 bytes. Ratio 35.74%
Compression time: cpu 49.33 sec/real 6819.44 sec = 1%. Speed 1.47 mB/s
All OK

Creating archive: Test.Bin using srep:m3f:l256+lolz:d96m:mtt1:mt8:mc1023
Compressed 85 files, 9,998,947,300 => 2,428,264,000 bytes. Ratio 24.29%
Compression time: cpu 34.17 sec/real 3551.16 sec = 1%. Speed 2.82 mB/s
All OK


yasitha 07-01-2019 11:39

Hy bro, doofoo24
How do i change Srep decompressing
Virtual Memory.tmp size?

How do i keep it under 5GB?
srep settings is (l512/c512 a4)
This is the default Srep.. I use default settings.

Simorq 07-01-2019 21:28

Quote:

Originally Posted by Simorq (Post 478507)
Code:

Dead Island Definitive Collection *.rpack; 9.31 GB

Creating archive: Test.Bin using lolz:d96m:mtb48mb:mt8:ldmf1:ldl5:mc1023
Compressed 85 files, 9,998,947,300 => 3,573,858,833 bytes. Ratio 35.74%
Compression time: cpu 49.33 sec/real 6819.44 sec = 1%. Speed 1.47 mB/s
All OK

Creating archive: Test.Bin using srep:m3f:l256+lolz:d96m:mtt1:mt8:mc1023
Compressed 85 files, 9,998,947,300 => 2,428,264,000 bytes. Ratio 24.29%
Compression time: cpu 34.17 sec/real 3551.16 sec = 1%. Speed 2.82 mB/s
All OK


Code:

Creating archive: Test.Bin using lolz:dtb1:d192:mtb96:ldl5:mc128
Compressed 85 files, 9,998,947,300 => 2,411,589,568 bytes. Ratio 24.12%   
Compression time: cpu 46.08 sec/real 20318.99 sec = 0%. Speed 0.49 mB/s
All OK

ldmf only work mt1:(

yasitha 07-01-2019 21:45

@Simorq can you please check the inbox.. and reply me back... It's about Srep virtual memory issue :( help please..

shazzla 07-01-2019 21:50

@Simorq: nope ,it works for me with d256mb:mt2:ldmf1

@yashita : patience man. :)


V 3.93x has additional precompressing parameters. It is -d .
It can decrease well the decomp memory req. :)
But v3.93 has bugs,too:
For me,it creates crc errors @decompression if i use my pc @compress-stage(browsing,etc).

Examples for the -d parameter:

Srep64 -a8 -m5f -l512 -d1g input.dat output.srep
-d1g can be modified until out of RAM. (D2g ,d4g,d512mb,d1536mb,etc) :D

And now,here goes my question to the real professionals,especially @Bulat : :)

V393x, the -d (dict. compression) parameter has additional settings. h,l and c. Yes,dont mess with them,but sometimes i must. :)
Srep -l512 -d8g:h2g input.dat output.srep
It creates srepfile with 2.5 gb decomp. meamreq. Without the -d its 8.3 gb.
I pass those to arc.exe with the following ,but it IGNORES:
arc.exe -msrep:l512:d8g:dh2g output.arc input.dat
Resulting files decomp memory req still 8.3gb ,while the created with srep is 2.5 gb.

What am i did wrong?!

@mods : sorry,wrong thread(?). Please move it to the correct place. Thank you very much !

yasitha 07-01-2019 22:17

@shazzal can you help me?
Im stuck with this question almost 2 days, try different kind of things... But still not fixed..

:( problem is. Srep create big virtual memory tmp file while decompressing..

i used srep:m3f:l128:c128:a4 some times l512:c512:a4

VM file create almost 15GB on some big games ot create 35GB Tmp file why. How do i get rid of it :(
Help me bro please..

shazzla 07-01-2019 22:25

Try srep v393 and use its -d parameter.

Arc.exe -msrep:a8:m5f:l512:d1g archive.arc yourdata.dat

As u see above...
But imho write here : https://www.fileforums.com/showthrea...=102501&page=3

yasitha 07-01-2019 22:34

Quote:

Originally Posted by shazzla (Post 478528)
Try srep v393 and use its -d parameter.

Arc.exe -msrep:a8:m5f:l512:d1g archive.arc yourdata.dat

As u see above...
But imho write here : https://www.fileforums.com/showthrea...=102501&page=3

Thanks but i use 3.92 cause 93 is buggy..

Simorq 08-01-2019 00:14

Quote:

Originally Posted by yasitha (Post 478527)
@shazzal can you help me?
Im stuck with this question almost 2 days, try different kind of things... But still not fixed..

:( problem is. Srep create big virtual memory tmp file while decompressing..

i used srep:m3f:l128:c128:a4 some times l512:c512:a4

VM file create almost 15GB on some big games ot create 35GB Tmp file why. How do i get rid of it :(
Help me bro please..

35GB srep-virtual-memory.tmp:confused:
What is this game? Its size is more than 100 gigabytes?

yasitha 08-01-2019 01:57

Quote:

Originally Posted by Simorq (Post 478531)
35GB srep-virtual-memory.tmp:confused:
What is this game? Its size is more than 100 gigabytes?

Yes 103GB Middle Earth Shadow of War

any idea what should i do?
I have pack mad max to 1DVD5 4.23GB
while decompressing that.
VMT File Creating... 15 - 17 GB Why :(

How can i keep it under 5GB or 10GB...? :(

Or how do i fix this?
Do i have to pack all game again?
Or can I fix this with setup.exe?

I've try many ways... Nothing works....
That's why i ask you to help me.
No matter what i do,
it will create VMT File bigger :(

Please help me... :(

Simorq 08-01-2019 02:16

Well, your hand is not to create step-virtual-memory.tmp.
The decompression operation does not take place.
Unless you have 64GB of RAM.

You can from
Srep: m1f
Srep: m2f
use.
But the Ratio may increase. (About 200 mb to 1 gb depends on the size of the game)

-------------------------
MAD MAX >> srep:m1f:l512 >> 2GB ram or srep-virtual-memory.tmp
MAD MAX >> srep:m3f:l512 >> 12GB ram or srep-virtual-memory.tmp

yasitha 08-01-2019 02:21

Quote:

Originally Posted by Simorq (Post 478535)
Well, your hand is not to create step-virtual-memory.tmp.
The decompression operation does not take place.
Unless you have 64GB of RAM.

You can from
Srep: m1f
Srep: m2f
use.
But the Ratio may increase. (About 200 mb to 1 gb depends on the size of the game)

-------------------------
MAD MAX >> srep:m1f:l512 >> 2GB ram or srep-virtual-memory.tmp
MAD MAX >> srep:m3f:l512 >> 12GB ram or srep-virtual-memory.tmp

I have pack all my games with this settings..
srep:m3f:l128:c128:a4 / srep:m3f:l512:c512:a4

os is there any other way to keep this low?
While decompressing?

Simorq 08-01-2019 02:24

Quote:

Originally Posted by yasitha (Post 478536)
I have pack all my games with this settings..
srep:m3f:l128:c128:a4 / srep:m3f:l512:c512:a4

os is there any other way to keep this low?
While decompressing?

Unfortunately no
But you can increase the memory. To use all your RAM.

CLS.ini
[SREP]
Memory=95%

yasitha 08-01-2019 02:28

Quote:

Originally Posted by Simorq (Post 478537)
Unfortunately no
But you can increase the memory. To use all your RAM.

CLS.ini
[SREP]
Memory=95%

Ohh.. That means, if memory use more...
Then VMTF will low... Right?

The thing is my C drive space is always low.
otherwise i don't care how much gb crate for temp...

Simorq 08-01-2019 02:37

Quote:

Originally Posted by yasitha (Post 478539)
Ohh.. That means, if memory use more...
Then VMTF will low... Right?

The thing is my C drive space is always low.
otherwise i don't care how much gb crate for temp...

1. Yes

2. :confused:

TmpDir To APPDIR

Code:

Source: Include\CLS.ini; DestDir: {tmp}; Flags: dontcopy

//if not SrepInit(ExpandConstant('{app}\'), 512, 0) then MyError := True;
    ExtractTemporaryFile('CLS.ini');
    SetIniString('Srep', 'TempPath', ExpandConstant('{app}'), ExpandConstant('{tmp}\CLS.ini'));


yasitha 08-01-2019 02:46

Quote:

Originally Posted by Simorq (Post 478541)
1. Yes

2. :confused:

TmpDir To APPDIR

Code:

Source: Include\CLS.ini; DestDir: {tmp}; Flags: dontcopy

//if not SrepInit(ExpandConstant('{app}\'), 512, 0) then MyError := True;
    ExtractTemporaryFile('CLS.ini');
    SetIniString('Srep', 'TempPath', ExpandConstant('{app}'), ExpandConstant('{tmp}\CLS.ini'));


My script doesn't have CLS.ini

Only arc.ini it's smaller one.
From CLS-DISKSPAN R2 IS_Example scripts

That's what i use...


One last question about this,

This cause by M3F Or L512?

i have used on Mad Max
srep:l128 and it takes 16GB for decompressing

Full code srep:l128:c128:a4

So why am i missing here.. who cause this VMT Big file trouble :confused:

shazzla 08-01-2019 02:56

Srep's decomp.mem.req depends on the data.
Sometimes you can dedupe 20 gb to its half with 100mb memory,other times it needs 3 gb.

yasitha 08-01-2019 03:01

Quote:

Originally Posted by shazzla (Post 478546)
Srep's decomp.mem.req depends on the data.
Sometimes you can dedupe 20 gb to its half with 100mb memory,other times it needs 3 gb.

so Virtual Memory.tmp decide what to do with Data.
it's out of our hands? Right?

VMTF Size depends on the game data? so its normal
Thigh i messed up :D m3f:l128 / l512 is fine with a4 right

What is this a4 mean speed accelerate for what decompressing?

kj911 15-11-2021 02:18

1 Attachment(s)
This parameters tested from members?? (found from lolz_x64.exe file)

Code:

rolz idx size in MB(-rd[2..512]): %um          rolz mf cycles(-rmc[2..1023]): %u
and lm1/4 switches?? (default: lm0)

lm4 --> ...fcm binary model
lm2 --> ...o1 nibble lit model and fcm binary model
lm0 --> o1 nibble lit model

Note: lm0 its work and make decompresseable archive. lm1-4 get better ratio and decompression error! Not yet implemented lm1-4 settings from decompressor?? (cls-lolz_x86/64.exe files) Use from testing only!

some testings from my datasets:

dt:dtb1:dtw1:dtm1:dto1:dtd1:mtt1:mt4:d128m:tt32:fb a4096:mc1023 --> 32669kB (its works)
dt:dtb1:dtw1:dtm1:dto1:dtd1:mtt1:mt4:d160m:tt32:gm 01:oh14:fba4096:mc1023 --> 32620kB (its best and working version)

Better compression, and not decompresseable archives:

dt:dtb1:dtw1:dtm1:dto1:dtd1:mtt1:mt4:d128m:tt32:oh 14:gm01:lm4:fba4096:mc1023 --> 32067kB (gain 2%, big dataset (10+ GB) more than ~4.5% gain!!)
dt:dtb1:dtw1:dtm1:dto1:dtd1:mtt1:mt4:d160m:tt32:oh 14:gm01:lm2:fba4096:mc1023 --> 31361kB! (gain 4%, big dataset estimated gain ~8-12%!)

Not decompresseable archive posted in the topic post

Note: precompressors switches before lolz --> xZLib+srep:m3f+a0

-rd and -rmc testing now compare than 32620/32669kB's archive size.

Note2: Try use -rt1 or -rt2 switch to enable rolz matchfinder. And crashed in now! Not implemented the rolz mode?? USe any combinations of switches and dont work. Hmm.

Added three mini sample from decompression testing. Don't need arc/cls.ini! Pure LOLZ archives.

This files compressed use simple switch: lolz_x64.exe -lmX file.ext lmX.lolz archive.lolz (X = 0 or 2 or 4)
Decompress: cls-lolz_x86/64.exe lmX.lolz file.ext

KaktoR 15-11-2021 05:24

Maybe this helps you

https://krinkels-org.translate.goog/...o=ajax,nv,elem

kj911 15-11-2021 12:46

KaktoR: The newest LOLZ versions in future time, fixed by ProFrager the some rt/lm switches, algorithms in future?? In last v22c4b released in ~3 years ago.

The lm2 or lm4 switches, use from testing only, from demonstrate better compression ratio than working ones. A couple of little mini-tests on this would be nice. Its compression differences.

This compression use lm1/4 its works. Decompression fails. Will hope for wait fix.

Dragonis40 27-03-2022 12:41

Good evening everybody. As far as I know, one of the best settings to have a very high compression is: dtb1:d512m:mtt1:mc1023. Is there any setting for higher compression? Maybe it's up to the files I want to compress, but are there any setting for higher compression? Thank you!!!

Spotless 07-05-2022 06:12

Can someone give me good config for faster compression?


All times are GMT -7. The time now is 08:35.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
FileForums @ https://fileforums.com