When I do ch-convert to sqfs, mksquashfs defaults to use all the cores on the machine. This is actually just the normal, expected behavior of mkquashfs as far as I know. This is bad because in a shared cluster environment, usually you don't have or even want all the cores on a machine. Singularity had the same issue so they implemented an environment variable that would get passed to mksquashfs as a command line option to limit the number of cores it would use. I'm not saying that's the correct solution, I'm just saying the problem is previously known.
Brief search reveals that -processors was available at least as far back as SquashFS-Tools 4.2 (in Debian Jessie), released 2011. So we can probably just use it unconditionally.
When I do ch-convert to sqfs, mksquashfs defaults to use all the cores on the machine. This is actually just the normal, expected behavior of mkquashfs as far as I know. This is bad because in a shared cluster environment, usually you don't have or even want all the cores on a machine. Singularity had the same issue so they implemented an environment variable that would get passed to mksquashfs as a command line option to limit the number of cores it would use. I'm not saying that's the correct solution, I'm just saying the problem is previously known.