Create a directory, say, /tmp/a (you should have enough free space on that partition)
Unzip this file to that directory: 00000601.ppm.gz under name 1.ppm (this is normal ppm image)
Create 299 more copies of this file (so total number is 300), for example (in bash): cd /tmp/a; for I in {2..300}; do cp 1.ppm $I.ppm; done
Run this: time -p ./lzbench -elzlib,0 -j -r -x /tmp/a
The command will finish in some reasonable time, for my computer this is 47.20 seconds
Now run this: time -p ./lzbench -elzlib,0 -j -r -x -s1000 /tmp/a
The command will not finish in 4 minutes and it seems it will run forever. This is very strange, because, as well as I understand, adding -s1000 should not slow down computation, so, this computation should take no more time than computation without -s1000, i. e. 47.20 seconds
My system is Debian stretch amd64 (with some packages from Debian buster). Linux 4.19.0. GCC 6.3.0. Tests performed on real hardware
Steps to reproduce:
/tmp/a
(you should have enough free space on that partition)1.ppm
(this is normal ppm image)cd /tmp/a; for I in {2..300}; do cp 1.ppm $I.ppm; done
time -p ./lzbench -elzlib,0 -j -r -x /tmp/a
time -p ./lzbench -elzlib,0 -j -r -x -s1000 /tmp/a
-s1000
should not slow down computation, so, this computation should take no more time than computation without-s1000
, i. e. 47.20 secondsMy system is Debian stretch amd64 (with some packages from Debian buster). Linux 4.19.0. GCC 6.3.0. Tests performed on real hardware