2018-09-21 06:12:42 UTC
a server with multiple CPUs.
This is because "gzip" is used, which can only use one CPU, i.e.:
gzip -c -n
Is it possible to specify an alternative compression program which is
able to do parallel compression?
I see it doesn't work for pigz:
# lxc publish $container --alias $container --compression pigz
Error: exec: "pigz": executable file not found in $PATH
This is because it looks up the binary in /snap/core/4917/bin/ and pigz
does not exist there.
xz is able to do parallel compression (i.e. xz -T 0), but sadly, lxd is
not using it, so it's even slower than gzip:
# lxc publish $container --alias $container --compression xz
And this notation is not allowed:
# lxc publish $container --alias $container --compression "xz -T 0"
Are there any possible workarounds to use parallel compression for "lxc