[ArchiveUtils] Limited xz memory to what is left #510
All Vouch review confidence checks passed
Residual risk 0.11 = Change Risk (0.31) × (1 − Review Confidence (0.64)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.31 · 105 lines diff across 1 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 70%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Shallow Review Depth
shallow_review_depth
0.289
Diff Size
diff_size
0.279
Real PR Conversation Timeline
1 comments
"Review active on #510"
general
weight: 0.35
maleadt
xz -T0 -9starts one thread per CPU, each needing about 1.25 GiB, so with 16 CPUs it needs about 20 GiB. In a TensorRT build on Yggdrasil's CI, this exceeded the job's 16 GiB limit and the kernel killed xz (https://buildkite.com/julialang/yggdrasil/builds/35318). xz's default limit ignores cgroup memory limits; per the xz 5.8.2 release notes: "Other memory limits can still trigger the same issue, for example, Linux cgroup v2 memory.max." xz now gets a memory limit and starts fewer threads to stay within it, which does not change the output. The limit isSys.total_memory(), which honours cgroup memory limits (cgroup v2 from Julia 1.11), minus the peak memory use of the Julia process and 1 GiB. It is at least 1 GiB, which is enough for xz's single-threaded mode; with less, xz would shrink its dictionary and make the tarball larger.