code wiki / _hdl_build / nx_resource_prove.nx
nx_resource_prove.nx
buildroot/runtime/_hdl_build/nx_resource_prove.nx
about
nx_resource_prove.nx -- PROVE-NOT-ASSERT that the polite resource governor is REAL: read THIS host live
(nx_sysload over /proc) and show the governor's actual decision (nx_resource_governor), then demonstrate the
"sensor -> supercomputer, any hardware" scaling by computing the polite budget for hypothetical core counts
at the SAME live load. Read-only (no side effects, no work fired). Composes the shipped organs (Cardinal 15).
Operator: "resource polite -- run in low-resource periods, step back when high; intelligent SOTA management
on any hardware dynamically, in conjunction with other parallel systems." This proves that capability EXISTS
and WORKS on the real machine, rather than asserting it. license_tier: ORIGINAL expect_exit: 0
dependencies 4 imports · 0 importers
imports: nx_syscalls.nxnx_itoa_lib.nxnx_sysload.nxnx_resource_governor.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
| 14 | func rp_puts(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 } |
| 19 | func rp_putn(v: i64) -> i64 { nxi_out(v); return 0 } |
| 22 | func rp_decide(label: *u8, ncpu: i64, load_milli: i64, free_mb: i64) -> i64 called by 1: main calls 6: rg_hw_class_reserverg_hw_budgetrg_should_backoffrg_memory_okrp_putsrp_putn |
| 37 | func main() -> i64 |