tractor/scripts
Gud Boi f61ed0e102 Fix `_burn` bigint blowup, ctx-mgr `_read_mhz`
Both `_burn()` impls (the `cpu-perf-check` script + the
`_measure_sustained_headroom()` probe in `tests.conftest`) grew `x`
~x**2 per iter, so the loop quickly went bigint alloc/mul-bound — a
noisy CPU load + needless memory across N procs. Mask each step to
64-bit for a steady, fixed-width ALU burn (still pegs every core,
which is all the freq probe needs).

Also, `_read_mhz()` opened the sysfs freq files without a ctx-mgr;
`with open(...)` so the FD closes deterministically (matches the
script's own `_read()`).

Review: PR #468 (Copilot)
https://github.com/goodboy/tractor/pull/468

(this patch was generated in some part by [`claude-code`][claude-code-gh])
[claude-code-gh]: https://github.com/anthropics/claude-code
2026-06-29 17:00:53 -04:00
..
cpu-perf-check Fix `_burn` bigint blowup, ctx-mgr `_read_mhz` 2026-06-29 17:00:53 -04:00
hung-dump.xsh Add `hung-dump.xsh` hang-triage tool to `scripts` 2026-06-25 15:07:15 -04:00
tractor-reap Add `--uds`/`--uds-only` flags to `tractor-reap` 2026-06-17 17:39:44 -04:00