]> git.proxmox.com Git - dab.git/commit
zstd: use higher level by default and add a max option
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 24 May 2021 12:19:35 +0000 (14:19 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 24 May 2021 12:19:44 +0000 (14:19 +0200)
commit7ed25022a3b874d8f313b76ff3bdd785ec82db82
tree78db0025a014185a2ae59279c8efd5d2318e3aa2
parentfd8faee52ebea47b790963543f5a66985857a783
zstd: use higher level by default and add a max option

levle 9 is what Arch Linux uses for their packages, so it's a widely
used level which is a good default tradeoff for such images.

Add also zstd-max level, which uses the highest default level which
is still highly efficient on decompression, i.e., while compression
needs more time and resources the decompression doesn't.

Some number for a Debian 11 minimal template from 2021-05-06:

uncomp.    321M    100.0%
gzip       116M     36.1%
zstd  0    106M     33.0%
zstd  9     98M     30.5%
zstd 19     83M     26.8%

So, the still cheap to extract zstd lvl19 need 33M less than the
current default gzip, the access log from our german cdn server show
about 490 successful access to our system images per day, that would
mean that changes saves `490 download/day * 30.4375 days/month * 33M
saved/download` =~ 490 G/month traffic for us and for users.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
DAB.pm