|
| 1 | +# bd-2g7oyh.390 malloc_free_64 focused allocator gate |
| 2 | + |
| 3 | +Date: 2026-06-13 |
| 4 | +Agent: BoldFalcon |
| 5 | +Status: NO-CODE REJECTED |
| 6 | + |
| 7 | +## Target |
| 8 | + |
| 9 | +Post-`bd-2g7oyh.389` broad non-math profile on RCH `vmi1227854` showed a |
| 10 | +fresh allocator residual: |
| 11 | + |
| 12 | +| row | FrankenLibC p50 ns | host p50 ns | FrankenLibC mean ns | host mean ns | |
| 13 | +| --- | ---: | ---: | ---: | ---: | |
| 14 | +| broad `malloc_free_64` | 6.076 | 3.562 | 7.505 | 5.112 | |
| 15 | + |
| 16 | +The allocator lane has extensive prior history. Recent no-retry families |
| 17 | +include exact-size/cache shortcuts, Trace lifecycle gates, fixed magazine/plain |
| 18 | +storage swaps, certificate/log micro-specialization, hot-slot metadata tweaks, |
| 19 | +lazy-accounting retunes, and bitmap-only hot-slot representation changes. |
| 20 | + |
| 21 | +The only admissible source route would have been a deeper allocator primitive: |
| 22 | +segregated slab/LIFO refill or intrusive per-size-class hot-list layout with |
| 23 | +lazy materialized observability and exact lifecycle/golden preservation. |
| 24 | + |
| 25 | +## Focused Baseline Attempts |
| 26 | + |
| 27 | +Two initial RCH attempts with `RCH_REQUIRE_REMOTE=1` refused local fallback and |
| 28 | +produced no usable evidence: |
| 29 | + |
| 30 | +```text |
| 31 | +RCH_WORKER=vmi1227854 RCH_PREFERRED_WORKER=vmi1227854 RCH_REQUIRE_REMOTE=1 ... |
| 32 | +cargo bench -j 1 -p frankenlibc-bench --bench glibc_baseline_bench -- 'glibc_baseline_malloc_free_(64|256|large)' |
| 33 | +``` |
| 34 | + |
| 35 | +```text |
| 36 | +RCH_REQUIRE_REMOTE=1 ... |
| 37 | +cargo bench -j 1 -p frankenlibc-bench --bench glibc_baseline_bench -- 'glibc_baseline_malloc_free_(64|256|large)' |
| 38 | +``` |
| 39 | + |
| 40 | +Both returned: |
| 41 | + |
| 42 | +```text |
| 43 | +[RCH] local (no admissible workers: critical_pressure=1,insufficient_slots=2,hard_preflight=9) |
| 44 | +[RCH] remote required; refusing local fallback (no worker assigned) |
| 45 | +``` |
| 46 | + |
| 47 | +## Focused RCH Gate |
| 48 | + |
| 49 | +The valid focused gate used an explicit one-slot remote request: |
| 50 | + |
| 51 | +```text |
| 52 | +RCH_BUILD_SLOTS=1 RCH_REQUIRE_REMOTE=1 RCH_VISIBILITY=summary \ |
| 53 | +RCH_QUEUE_WHEN_BUSY=1 RCH_DAEMON_WAIT_RESPONSE_TIMEOUT_SECS=1800 \ |
| 54 | +rch exec -v -- env AGENT_NAME=BoldFalcon FRANKENLIBC_BENCH_PIN=1 \ |
| 55 | +CARGO_BUILD_JOBS=1 \ |
| 56 | +CARGO_TARGET_DIR=/data/tmp/frankenlibc-bd390-malloc-focused-baseline-target-20260613T2144 \ |
| 57 | +cargo bench -j 1 -p frankenlibc-bench --bench glibc_baseline_bench -- \ |
| 58 | +glibc_baseline_malloc_free_64 --noplot --sample-size 50 --warm-up-time 1 \ |
| 59 | +--measurement-time 3 |
| 60 | +``` |
| 61 | + |
| 62 | +RCH selected `vmi1227854`. |
| 63 | + |
| 64 | +| impl | Criterion interval | p50 ns | mean ns | p95 ns | p99 ns | |
| 65 | +| --- | --- | ---: | ---: | ---: | ---: | |
| 66 | +| FrankenLibC | `[5.8978 ns 6.1722 ns 6.3740 ns]` | 4.989 | 6.027 | 7.500 | 25.000 | |
| 67 | +| host glibc | `[3.8424 ns 3.9830 ns 4.1575 ns]` | 4.238 | 11.317 | 5.704 | 170.000 | |
| 68 | + |
| 69 | +## Isomorphism |
| 70 | + |
| 71 | +No source code changed. |
| 72 | + |
| 73 | +- Allocation size-class mapping, LIFO ordering, hot-slot behavior, central-bin |
| 74 | + spill order, large-allocation fast slot, and elimination semantics are |
| 75 | + unchanged by construction. |
| 76 | +- `active_count`, `total_allocated`, lifecycle logs, and trace/certificate rows |
| 77 | + are unchanged by construction. |
| 78 | +- Floating point and RNG are not involved. |
| 79 | + |
| 80 | +## Verdict |
| 81 | + |
| 82 | +NO-CODE REJECTED. Score `0.0`. |
| 83 | + |
| 84 | +The focused p50 gap collapsed to `1.177x` with only `0.751 ns` absolute gap, and |
| 85 | +the mean comparison reversed in FrankenLibC's favor because host glibc had a |
| 86 | +tail outlier. That is below the edit gate for a heavily mined allocator lane. |
| 87 | + |
| 88 | +Next route: reprofile or continue from the current broad table with a different |
| 89 | +focused residual. Only return to allocator with a material focused same-worker |
| 90 | +gap and a true slab/LIFO or intrusive-list primitive, not another hot-slot |
| 91 | +metadata or observability micro-lever. |
0 commit comments