Add memory-headroom breadcrumbs across the ingest/stems pipeline - #84
Merged
sanylax0 merged 1 commit intoJul 18, 2026
Merged
Conversation
The device still jetsams with no stems log lines in the console, so stop guessing which stage eats the budget: log os_proc_available_memory headroom at analysis begin/end, separation task start, model ensure, ORT session load, every 10th inference window, and separation end. One run's console output now names the eater and its size.
sanylax0
approved these changes
Jul 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
The device still jetsams (~50 s after launch, mid-playback) and — importantly — the console shows no stems log lines at all, so it's not certain the separator is even the eater. Rather than tuning blind, this adds jetsam-debugging breadcrumbs.
How
New
MemoryFootprint.breadcrumb(_:)logsos_proc_available_memory(the process's remaining allowance before the OS kills it, categorymem) at:backfillTrackDetailsre-analysis path)What to do with it
Run once until the kill, then filter the console for
mem[. The last breadcrumbs before death name the stage and show the headroom slope:window Nlines → inference intermediates (next lever: shorter windows / model-side fix)ort session load→ model load (next lever: .ort format conversion)analysislines → the analyzer, not the separatormem[lines at all before death → the eater is outside ingest entirely (playback/UI), which redirects the investigationPlease paste the tail of the
mem[lines from a run that gets killed.🤖 Generated with Claude Code
https://claude.ai/code/session_013TJoWkqg8bzkGdzxWhWjWP
Generated by Claude Code