Skip to content

Phase 5: Reliability & Production Hardening#6

Merged
ALJainProjects merged 2 commits into
mainfrom
phase5/reliability-hardening
Feb 9, 2026
Merged

Phase 5: Reliability & Production Hardening#6
ALJainProjects merged 2 commits into
mainfrom
phase5/reliability-hardening

Conversation

@ALJainProjects
Copy link
Copy Markdown
Owner

Summary

  • Buffer pool: Discard oversized vectors (>2x default size) on release instead of pooling them. Prevents a single large outlier image from permanently inflating the pool's memory footprint.
  • Pipeline: Add samples_skipped_ atomic counter incremented on each corrupted sample skip (both GPU and CPU decode paths). Expose skipped_samples() accessor for monitoring data quality from Python.

Test plan

  • Added oversized vector discard test: verifies pool doesn't retain buffers grown beyond 2x threshold
  • Verified stats tracking counts oversized releases

Buffer pool:
- Discard oversized vectors (>2x default size) on release instead of
  pooling them. Prevents a single large outlier image from permanently
  inflating the pool's memory footprint.

Pipeline:
- Add samples_skipped_ atomic counter incremented on each corrupted
  sample skip (both GPU and CPU decode paths)
- Add skipped_samples() public accessor for monitoring data quality
  from Python bindings

Tests:
- Add oversized vector discard test verifying pool doesn't retain
  buffers grown beyond 2x threshold
The samples_skipped_ atomic counter is owned by UnifiedPipeline but
was referenced directly inside TarWorker::run() which is a separate
class. Fix by passing a pointer through the constructor.
@ALJainProjects ALJainProjects merged commit 087be32 into main Feb 9, 2026
7 checks passed
@ALJainProjects ALJainProjects deleted the phase5/reliability-hardening branch February 9, 2026 00:51
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.

1 participant