Markk116
  • Joined on 2025-06-22
Markk116 pushed to master at Markk116/smarm 2026-06-20 10:01:48 +00:00
8d1605638e statem: add gen_statem! authoring macro (RFC 017 chunk 1)
acc37c5fc9 RFC 017 chunk 1: gen_statem primitives (no macro yet)
0d6fc970a7 scheduler: gate send_after_to runtime tests out of the loom build
e9c39bff46 roadmap: introspection & observability shipped as RFC 016
2d15834b24 RFC 016 Chunk 4: observer example with ps-style + tree dump
Compare 39 commits »
Markk116 pushed to master at Markk116/urus-benches 2026-06-14 22:08:26 +00:00
f25b460d3c Commit baseline results
Markk116 pushed to master at Markk116/urus-benches 2026-06-14 22:08:13 +00:00
943080805c loadgen: fix two latent lua bugs that voided every wrk run
Markk116 pushed to master at Markk116/urus-benches 2026-06-14 22:00:24 +00:00
926aba4344 bench: flag void (high non-2xx) runs; add status-code diagnostic
Markk116 pushed to master at Markk116/urus-benches 2026-06-14 21:44:41 +00:00
5f342858e7 bench: retune spin A/B sweep for saturation (4/6 cores, 16 loadgen)
Markk116 pushed to master at Markk116/urus-benches 2026-06-14 21:12:51 +00:00
56e490c205 bench: port urus memory store to gen_server; add spinning A/B harness
Markk116 pushed to master at Markk116/smarm 2026-06-14 20:16:50 +00:00
2f011f6ce4 fix(rfc-004): gate spinning on max_spinners>0, killing wake-nobody futex_wake at N=1
debcb4e33b docs: per-switch N=1 local profile — shims are ~1% at N=1; cost is schedule_loop + run-queue + a hot-path futex_wake (revises handoff shim hypothesis to a many-core one)
683f2ed02d bench: add switch_cost local-mode per-switch microbench (rdtsc+wall, RFC per-switch spike)
4c1e5f19f1 RFC 004: default spin_budget_cycles=2000 (DEFAULT_SPIN_BUDGET_CYCLES, ~0.5us @3.7GHz), gate spinner cap on pool size (n<=1:0, 2..=4:n, n>=5:0) replacing N/2. From spin_sweep fork-join knee: ~4x p50 win at n<=4, pure cost at n>=8. Budget inert on large pools via 0 cap; explicit max_spinners() still overrides.
Compare 4 commits »
Markk116 pushed to master at Markk116/smarm 2026-06-14 16:07:21 +00:00
7fcc9f2ec5 benches: document spin_sweep in README (catalog + RFC 004 section, knobs, 1-core caveat); add vs-tokio summary to sweep.py. print_results emits a human 'vs tokio' block + greppable VSTOKIO,<bench>,<smarm_label>,<smarm_us>,<tokio_label>,<tokio_us>,<ratio>,<winner> lines, paired like-for-like by thread count (single vs current_thread; multi vs multi; multi_thread_scaling per matching count). ratio = tokio/smarm so >1 = smarm faster. Also gitignore __pycache__/*.pyc.
7ec453920b RFC 004 bench: spin_sweep measurement tool. Latency (p50/p90/p99/min/max, pooled across runs) vs idle-CPU (cores-busy via getrusage RUSAGE_SELF) over spin_budget_cycles x max_spinners x threads. Four workloads: remote-wake (latency target), fork-join, half-load (cost target), pure-idle (floor check). Env-knobbed SMARM_SPIN_*, greppable SPINCSV lines. Smoke-runs clean on 1 core (no hang); 1-core correctly shows the spinner-starves-producer pathology, real curve needs the many-core box.
87416f903a RFC 004 chunk 3: spinning-worker regression tests. Watchdog-timeout harness turns a lost wakeup into a failed assertion. Key test shutdown_releases_pinned_parked_siblings pins siblings in futex_wait while live>0 — verified to FAIL (15s timeout) when the AllDone broadcast is gutted, pass when restored. Also covers bounce/fanout (park+hot-spinner), N=1 cap=0 inertness, budget-0 opt-out, repeated lifecycles.
2ab82ac032 RFC 004 chunk 2: spin-then-park idle policy — submit rule (Dekker-paired wake), CAS-capped spinner enlistment, bounded spin on queue_len, futex park with lost-wakeup + shutdown guards, last-spinner handoff, AllDone broadcast. Gated on spin_budget_cycles>0; default-off path unchanged (full suite green).
d8b5c8db02 RFC 004 chunk 1: substrate — queue_len counter, n_spinning/park_seq/spinning state, spin_budget_cycles+max_spinners Config knobs, pub(crate) futex helpers. Behavioural no-op (feature off by default).
Compare 5 commits »
Markk116 pushed to master at Markk116/smarm 2026-06-13 16:58:54 +00:00
b0c9685c89 plan: roadmap refresh
Markk116 pushed to master at Markk116/urus 2026-06-13 16:00:32 +00:00
86c8d31b93 docs(channels): example, README section, ROADMAP v0.6 mark-done — chunk 4
0de2baa72d feat(channels): opt-in session persistence — v0.6 chunk 3
39e4f70e9d feat(channels): phoenix V2 JSON codec — v0.6 chunk 2
0531390613 feat(channels): core protocol machinery — v0.6 chunk 1
a676c01adc docs(roadmap): ratify v0.6 Channels design
Compare 22 commits »
Markk116 pushed to master at Markk116/smarm 2026-06-11 22:06:00 +00:00
cc4000a165 fix bug in test that only shows on multicore enviroments
156dcca496 doc: note bug report form urus agent
Compare 2 commits »
Markk116 pushed to master at Markk116/smarm 2026-06-11 21:20:28 +00:00
8e5b754249 docs(roadmap): record the chunk-2 session candidates — no-io idle sleep gap, cross-thread unpark
7bab4d23ea fix(scheduler): entry-side check_cancelled in park_current — stop against a QUEUED actor was lossy
eddf3fe929 fix(runtime): wake idle sibling schedulers at termination
Compare 3 commits »
Markk116 pushed to master at Markk116/smarm 2026-06-11 21:07:30 +00:00
51f1a61a40 perf: check in cleaner baseline
Markk116 pushed to master at Markk116/smarm 2026-06-11 21:03:09 +00:00
1ed179fc12 benches: stable medians via independent process sets in sweep.py
Markk116 pushed to master at Markk116/smarm 2026-06-11 20:51:10 +00:00
f9f60a43d1 benches: add SMARM_BENCH_SETS (default 5) for stable medians
Markk116 pushed to master at Markk116/smarm 2026-06-11 20:41:30 +00:00
37d931968e fix(scheduler): align(64) on SchedulerStats to prevent false sharing
Markk116 pushed to master at Markk116/smarm 2026-06-11 18:20:14 +00:00
2708042990 feat(scheduler): RFC 005 wake slot — per-scheduler capacity-one wake cache
Markk116 pushed to master at Markk116/smarm 2026-06-11 18:18:57 +00:00
f09e992f32 commit new baseline before perf work
Markk116 pushed to master at Markk116/urus 2026-06-11 18:05:23 +00:00
3da553b9b2 docs(roadmap): state assessment vs smarm v0.8 + v0.2-v0.6 plan
Markk116 pushed to master at Markk116/smarm 2026-06-11 18:04:20 +00:00
393cdd01f4 feat(select): fd arms in select + timed fd waits (RFC 008 phase 1)
4e4b617559 docs(roadmap): restructure around the rq shootout verdict
Compare 2 commits »