You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
image: cap xz memory with --memlimit-compress, lower thread cap to 16
Hand xz a hard memory ceiling via --memlimit-compress so it scales its own
thread count down instead of risking OOM when several image builds compress
in parallel on a shared runner. Default 10 GiB, lowered to MemAvailable on
smaller hosts; override with IMAGE_XZ_MEMLIMIT.
Lower the default thread cap 32 -> 16 (COMPRESS_MAX_THREADS) to match: at
-9 (~674MB/thread) 16 threads ~= 10.5GB, so -T16 is rarely trimmed by the
limit while keeping xz's sublinear speedup in its sweet spot.
xz --memlimit-compress="${xz_memlimit}" -T "${file_threads}""-${xz_compression_ratio_image}""${uncompressed_file}"# "If xz is provided with input but no output, it will delete the input"
164
174
compression_type=".xz"
165
175
elif [[ $COMPRESS_OUTPUTIMAGE==*zst* ]];then
166
176
# zstd auto-scales workers to input size, so no explicit cap needed here.
0 commit comments