Files
RitzDaCat 99a1ff5aa9 scx_cake: docs: keep the nightly research and state records
Upstream carries cake 1.4.1 with a trimmed doc set. The nightly keeps
the dated research folders that STATE and the later nightly commits
link to. No source file changes.
2026-12-02 22:24:33 +01:00

5.6 KiB
Raw Permalink Blame History

Research and experimental patches

The Cake 1.4.2 system review includes editable CAD and Blender models, a cache-line map, a measured ShadowGate frame and the corresponding placement and progress checks.

Verdicts live in the STATE.md pattern ledger, each with its kernel need. This page indexes the investigations. Kernel patches now ship per feature in experimental-patches kernel/sched-ext/cachyos-<ver>/; the host was observed on stock 7.3.0-2 on 2026-10-22.

Legend · ✅ kept / default · ❌ rejected · ➖ no effect · 🧪 open · ⏳ planned · 🐧 stock · 🧩 custom patch

Investigation Status Start here
✅ 🧩 Kernel patch: scalar kfuncs, fastcall, bounds, DSQ index, wake signals ran on 7.2.9-custom; native CTZ/POPCNT default · fastcall, bounds ➖ · DSQ index untested · signals tag nothing on KWin + NVIDIA JIT prototype · full patch
✅ 🧩 All-in-one patch + lean idle claim (K1–K4) ran from 10-11; lazy default since 10-12 patch (sections in its header)
🧪 Cake/kernel caching source review; DSQ direct index built into the patch cache review
➖ Unary fastcall no measurable effect on hardware fastcall review
🧪 BPF / compiler / JIT boundary compiler probes, JIT inspection investigation
➖ ISA opportunities (10-01) compiler probes and offline checks only, no timings; recommended fastcall first, which then measured ➖ report
❌ Exact reciprocal quotient removed 10-04 (BPF +5.8 %); sources kept implementation · sources
✅❌ Counting, classifiers, inclusion–exclusion spread pick ❌ · wide-host idle count, interlock, exit/census checks ✅ (committed) · K3 premise holds report
❌ Block stash: wake classes from one line no frame effect in KovaaK's; reverted report
❌ claimhome: lean lazy placement without the patch placement reproduced; the frame win needs the cheaper claim too report
❌ burstkey: cosmos-style requeue key no gain; cosmos itself loses to cake lazy in CPU-limited KovaaK's report
❌ sibwake: same-process wake → waker's SMT sibling idle cores: lows −43 %; saturated: tails +6 % (weak) report
⏳ 🐧 CPU-bound tail (Deadlock: nightly worst 5.14 ms vs LAVD 2.84) planned, nothing built; trace first, then 7 guarded ideas plan
Needs clean rerun Bounded integer superoptimization three new targets: proved slice removes 16 BPF ops / two branches per caller and passed stock verifier; timing screen excluded for noise. Earlier ceil -0.135 ns mean inconclusive; tools kept, source unchanged investigation
🧪 🐧 Spin latency under stress (tester charts: extreme median ×19 rusty) reproduced 10-29: the cpu_release re-enqueue (S8) is the RT-load loss (same-CPU resume 7–28 % vs 100 %, 3.5 CPUs of BPF); §G99 release hold ❌ (overshoot fixed, sleeper wakes 3.7 ms late); §G93 gate or a v3 hold next, chop rule after plan
✅🧪 🐧 CPU-to-CPU wake map vs EEVDF (c2clat) §G100 and §G101 default (26b8f2604, 1218ad972) · §G100 pinned fast lane: p50 beats EEVDF (cross-core 644 vs 673 ns), p90 −37 to −41 % vs HEAD; §G101 ops.yield keep: under a yield spin BPF −32 %, idle kicks −94 %, same-CPU p50 991 → 697 ns (EEVDF 731); p99/p99.9 still behind EEVDF; ShadowGate, both together: worst frame lower in 8/9 pairs (p 0.039), fps +2 % beside Blender report
Also
📊 meeting page summarizes the work
📏 cost audit explains evidence levels
⚠️ the prototype's 0002-scx-cake-opt-in-native-bitops.patch is historical: do not apply it to this checkout

📁 Rules for an investigation

Rule
One directory each; objects, patches, harness and manifests stay together (moving them needs a provenance update)
Build outputs → repo target/ · run outputs → scx_cake_bench/runs/
README states the evidence level (source review → model → verifier → VM → hardware → game) and the kernel need
A passed build or VM test is not a speedup