Skip to content

check free space and pause decode instead of failing#258

Merged
harrypm merged 5 commits intooyvindln:vhs_decodefrom
JonasCz:jonas/check-free-space-and-pause
Jan 20, 2026
Merged

check free space and pause decode instead of failing#258
harrypm merged 5 commits intooyvindln:vhs_decodefrom
JonasCz:jonas/check-free-space-and-pause

Conversation

@JonasCz
Copy link
Copy Markdown

@JonasCz JonasCz commented Dec 15, 2025

This happens often enough to me that I wrote a fix for it: running out of space leaving an unusable partial decode, and running out of space with multiple decodes in parallel results in all of them being unusable.

This adds a free space check that pauses decoding until more than 10GB of space is available (again).

Performance impact is minimal because it's only done every 500 fields (after the first 100).

@harrypm
Copy link
Copy Markdown
Collaborator

harrypm commented Jan 20, 2026

After testing this, the decoding impact time is only a couple seconds, given this safeguarding feature can save hours of re-running things, this is probably one of the most useful additions I've ever seen.

This should be added to HiFi-Decode and CVBS-Decode and upstream ld-decode ideally too.

@harrypm harrypm merged commit 091c468 into oyvindln:vhs_decode Jan 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants