Testing larger memory pages. (mksquashfs ... -b 256K vs -b 1M ...)
SYSTEM SPECS: CPU Intel Core i5, RAM: 8GB's
A compressor using bigger chunks of data should be able to compress more efficiently, but it relies on the memory of the host computer where compressed data will be used. Also,
there is no point in using large memory pages if you are going to compress a few Mb's. (<=100 Mb),
but...
COMPRESSION TIME:
XZ has clearly better times. While it seems to lag at the beginning, it almost halves the whole process. I.e. The more room is allocated, the faster the CPU will move the data.
ZSTD seems not to benefit of this matter.
COMPRESSION RATIO:
When using large memory pages, final size is around 6% less in both cases, but XZ compression factor was 13% better.
DECOMPRESSION SPEED:
I haven't really tested the decompression speed which seems to be the real deal, but I'd swear I didn't noticed any substantial improvement.
Code: Select all
time mksquashfs 001-core-20200310/ 001-core-20200310.xzm -b 1M -comp xz -Xbcj x86 -noappend
real 2m20,282s
user 6m55,109s
sys 0m1,013s
time mksquashfs 001-core-20200310/ 001-core-20200310.zstd -b 1M -comp zstd -Xcompression-level 22 -noappend
real 1m18,504s
user 3m35,465s
sys 0m0,873s
-rwxrwxrwx 1 root root 115814400 may 21 11:53 001-core-20200310.xzm*
-rwxrwxrwx 1 root root 130097152 may 21 12:03 001-core-20200310.zstd*
time mksquashfs 001-core-20200310/ 001-core-20200310.xzm -b 256K -comp xz -Xbcj x86 -noappend
real 1m34,769s
user 7m36,185s
sys 0m1,793s
time mksquashfs 001-core-20200310/ 001-core-20200310.zstd -b 256K -comp zstd -Xcompression-level 22 -noappend
real 1m8,756s
user 5m17,440s
sys 0m0,832s
-rwxrwxrwx 1 root root 123674624 may 21 12:15 001-core-20200310.xzm*
-rwxrwxrwx 1 root root 139001856 may 21 12:17 001-core-20200310.zstd*
Cheers!
> Does not compute_
https://forum.porteus.org/viewtopic.php?p=94310#p94310
https://forum.porteus.org/viewtopic.php?p=102066#p102066
https://forum.porteus.org/viewtopic.php?p=102306#p102306
https://forum.porteus.org/viewtopic.php?p=72741#p72741