nx_loadceil.nx
buildroot/runtime/nx_loadceil.nx
about
nx_loadceil.nx -- CLI for the build-admission load-ceiling calibrator (LV3, loadgov.plan, 2026-08-24).
Thin main; the ruler is nx_loadceil_lib.lc_recommend so nx_loadceil_gate composes it in-process.
nx_loadceil [report] [logpath] [confpath]
Reads a resmon.log, splits beats by state=GREEN, prints the GREEN load1_centi distribution and RECOMMENDS
max_centiload = (green load at loadceil-quantile-permil) / BA_HARD_FACTOR. Refuses below
loadceil-min-green-samples. Arm by writing the value to build_admit.conf as max_centiload= (a conf value
re-armed without a rebuild). exit 0 RECOMMENDED / 2 unreadable / 3 insufficient-history.
license_tier: ORIGINAL
dependencies 1 imports · 0 importers
imports: nx_loadceil_lib.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| none |
functions
| 13 | func lc_w(fd: i64, s: *u8) -> i64 { let n: i64 = lc_slen(s); if n > 0 { sys_write(fd, s, n) } return 0 } |
| 14 | func lc_out(s: *u8) -> i64 { return lc_w(1, s) } |
| 15 | func lc_num(v0: i64) -> i64 called by 1: main |
| 32 | func main(argc: i64, argv: *i64) -> i64 |