Export using zstd multithreaded?

Hello!

Is it possible? At the time I’m seeing 3.9% cpu use, only one core is used.

incus 6.12 here.

incus config show

config:
backups.compression_algorithm: zstd
core.https_address: :8443
storage.backups_volume: backuptemp/backups_tmp

Modern zstd should automatically use multi-threading from what I can tell in the manpage.

Well, I’m in Rocky 9.5, and zstd is version 1.5.7.

What I’m seeing in htop is the command zstd -c

The man page says that zstdmt command is equivalent to zstd -T0, but the default when using zstd is -T1, at least in this version.

From the man page:

-T#, --threads=#: Compress using # working threads (default: 1). If # is 0, attempt to detect and use the number of physical CPU cores. In all cases, the nb of threads is
capped to ZSTDMT_NBWORKERS_MAX, which is either 64 in 32-bit mode, or 256 for 64-bit environments. This modifier does nothing if zstd is compiled without multithread sup‐
port.