> As you can see, I'm trying to also take advantage of multi-threading for
> zstd compression. However what I've experienced is a pretty slow initrd
> image generation. I'm not sure if I'm having something misconfigured. Has
> any one tried using zstd and specified number of threads to use for it?
>
> Thanks !
I tested generating initramfs using various zstd thread and compression
settings options in mkinitpcio.conf while watching ram and cpu core usage, as
well as output image sizes.
My testing indicates that all zstd options are ignored, with the sole
exception of --single-thread, which correctly forces the use of only a single
thread that also utilizes less ram.
When used without --single-thread, zstd assumes -T0 and will use additional
cores based on the total size of the files in need of compression, just as xz
does with any value of -T n. Typically this means only one or two cores,
regardless of the system core count.
-jc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: This is a digitally signed message part.
URL: <https://lists.artixlinux.org/archives/artix-general/attachments/20201128/31571ec4/attachment.sig>
More information about the artix-general
mailing list