perf(infra): configure GCP runner host THP madvise/defer #3272
All Vouch review confidence checks passed
Residual risk 0.22 = Change Risk (0.55) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.55 · 123 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: 35%
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.288
Sensitive Paths
sensitive_paths
0.055
Real PR Conversation Timeline
1 comments
"Review active on #3272"
general
weight: 0.35
DefeatMan
TL;DR
Configure GCP runner hosts with THP
enabled=madviseanddefrag=deferon first boot and via OS Config (runner-thp), keepingKRUN_USE_THPopt-in viamstage.Design doc: https://github.com/boxlite-ai/boxlite/issues/3153
Documentation: [runners.md](apps/infra/docs/runners.md), [gcp/runners.md](apps/infra/docs/gcp/runners.md)
How it works
runner-thp.tswrites/etc/tmpfiles.d/boxlite-thp.conf(0644) and applies sysfsmadvise/deferwithout restartingboxlite-runner. First boot runsinstallbefore starting the service; GCP OS Config runsrunner-thpbeforerunner-unit-env. Stages opt in viaBOXLITE_RUNNER_ENV='{"KRUN_USE_THP":"1"}'.Verification
typecheck:mdeploy+ targeted mdeploy tests (runner-thp,runner-boot,gcp-pitfalls,runner-update) -> 126/126 passed.eslinton modifiedapps/infra/mdeployfiles -> 0 errors.make test:apps:infra(macOS lacksflock) and staging verification.