Priority aging in xenia-cpu/scheduler.rs:pick_runnable
(effective_priority = base + age_bonus(now_round - last_run_round),
capped at +31, AGING_ROUNDS_PER_BONUS=1). Strict-priority was parking
priority=0 threads behind CPU-bound priority=15 audio mixer
(sub_824D1328 guest spinwait at PC=0x824d1404 on CPU5). Aging
eventually picks the starved thread, breaking the producer-consumer
cycle that caused 5-tid wedge at PC=0x824ac578 since AUDIT-049 (10 May).
Cascade observed: tid=13 clean exit; events 121K -> 13M (107x); last
host_ns 767ms -> 51,011ms (66x); 8 new threads spawn; VdSwap 1 -> 2.
Complete two-day iterate sequence (2026-05-27 -> 2026-05-28):
- 2.F: VdSwap drain timeout 900ms -> 1ms (xenia-gpu/handle.rs); 876x
perf win on VdSwap kernel callback
- 2.H: vA0000000 physical heap bucket added (state.rs, exports.rs);
ctx_ptrs now in 0xA0000000-0xBFFFFFFF range matching canary
- 2.L: Phase-A diff harness categorized [return_value mismatch],
[status mismatch], [args_resolved.path mismatch] tags
(tools/diff-events/diff_events.py); closes reading-error #41
(silent test-harness state leak invalidating trace diffs)
- 2.M: always-on exit-thread-state.json sibling to Phase-A JSONL
(event_log.rs + xenia-app/main.rs); closes reading-error #42
(Phase-A blind to blocked-forever waits)
- 2.Q: signal.match kernel instrumentation in NtSetEvent /
NtReleaseSemaphore / KeSetEvent / KeReleaseSemaphore
(exports.rs); emits target_handle + waiter_count + waiter_tids
- 2.T: wake.requested kernel instrumentation in wake_eligible_waiters
(exports.rs); emits target_tid + transition + new_state
- 2.V: scheduler priority aging (xenia-cpu/scheduler.rs) [keystone]
Plus accumulated WIP from earlier May (contention_manifest,
phase_b_snapshot, xam/xaudio enhancements, analysis db, xex loader,
xenia-app main loop, etc.). Audit-runs/ artifacts remain untracked
per project convention.
Tests: 300 xenia-cpu / 227 xenia-kernel / 5 xenia-app / 19 xenia-path
/ 30+ smaller suites -- all PASS, 0 regressions. Determinism preserved
(2x cold runs bit-identical at 13,003,881 events post-2.V).
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
67 lines
1.7 KiB
TOML
67 lines
1.7 KiB
TOML
[workspace]
|
|
resolver = "2"
|
|
members = [
|
|
"crates/xenia-types",
|
|
"crates/xenia-memory",
|
|
"crates/xenia-cpu",
|
|
"crates/xenia-xex",
|
|
"crates/xenia-vfs",
|
|
"crates/xenia-kernel",
|
|
"crates/xenia-gpu",
|
|
"crates/xenia-apu",
|
|
"crates/xenia-hid",
|
|
"crates/xenia-debugger",
|
|
"crates/xenia-analysis",
|
|
"crates/xenia-ui",
|
|
"crates/xenia-app",
|
|
]
|
|
|
|
[workspace.package]
|
|
version = "0.1.0"
|
|
edition = "2024"
|
|
license = "BSD-3-Clause"
|
|
|
|
[workspace.dependencies]
|
|
# Shared types
|
|
xenia-types = { path = "crates/xenia-types" }
|
|
xenia-memory = { path = "crates/xenia-memory" }
|
|
xenia-cpu = { path = "crates/xenia-cpu" }
|
|
xenia-xex = { path = "crates/xenia-xex" }
|
|
xenia-vfs = { path = "crates/xenia-vfs" }
|
|
xenia-kernel = { path = "crates/xenia-kernel" }
|
|
xenia-gpu = { path = "crates/xenia-gpu" }
|
|
xenia-apu = { path = "crates/xenia-apu" }
|
|
xenia-hid = { path = "crates/xenia-hid" }
|
|
xenia-debugger = { path = "crates/xenia-debugger" }
|
|
xenia-analysis = { path = "crates/xenia-analysis" }
|
|
xenia-ui = { path = "crates/xenia-ui" }
|
|
|
|
# External dependencies
|
|
tracing = "0.1"
|
|
tracing-subscriber = { version = "0.3", features = ["env-filter", "json", "registry"] }
|
|
tracing-appender = "0.2"
|
|
tracing-chrome = "0.7"
|
|
tracing-error = "0.2"
|
|
metrics = "0.24"
|
|
metrics-util = "0.19"
|
|
pprof = { version = "0.14", features = ["flamegraph", "protobuf-codec"] }
|
|
bitflags = "2"
|
|
byteorder = "1"
|
|
thiserror = "2"
|
|
anyhow = "1"
|
|
serde = { version = "1", features = ["derive"] }
|
|
serde_json = "1"
|
|
sha1 = "0.10"
|
|
sha2 = "0.10"
|
|
aes = "0.8"
|
|
duckdb = { version = "1", features = ["bundled"] }
|
|
|
|
# UI / rendering / input (used by xenia-ui and xenia-app with --ui)
|
|
winit = "0.30"
|
|
wgpu = "22"
|
|
gilrs = "0.11"
|
|
pollster = "0.3"
|
|
crossbeam-utils = "0.8"
|
|
crossbeam-channel = "0.5"
|
|
bytemuck = { version = "1", features = ["derive"] }
|