-_-
Limit for chunk size people is 2GB, because I don't think there is a deflate stream that is more than 2GB.
Plus chunk size is for detecting streams, someone guy set 1GB chunk size as if there is a game that has a stream that big, how much ram would that need to run the game first of all? The only game that has weird streams is DOOM which is not supported by pZLib v2.
Plus a higher chunk size results in a higher ram usage.
Ram usage is calculated this way approximately.
(Chunk size x Number of scanning threads + ChunkSize) x Inflation ratio
So setting chunk size as 1024m for example using 8 threads and compressing GTAV which inflates to 201%, ram usage will be
(1024 x 8 + 1024) x 2.01 =18524.16 MB, about 18GB ram is needed.
But decompression memory is calculated as
ChunkSize x Inflation ratio
Use ZlibChecker to be sure what chunk size should you really set because chunk size doesn't mean ratio is always better.
http://fileforums.com/showthread.php?t=97657