Skip to content

Default viewer frame cache to 1 frame - #177

Merged
Osayi-ANL merged 3 commits into
mainfrom
change/default-frame-cache-1
Oct 9, 2026
Merged

Osayi-ANL merged 3 commits into
mainfrom
change/default-frame-cache-1

Conversation

@pecomyint

Copy link
Copy Markdown
Collaborator

Summary

  • Seeded profiles, sample_config.toml, and the reader fallback cached 1000 frames in alignment mode — every frame, all the time.
  • On a 17 MP detector that is ~34 GB in the Area Detector viewer (observed on 28-ID-C) and far more in HKL3D, which also caches Q. This is the Area Detector sluggishness.
  • Default is now 1; profiles that need Save HDF5 / Post-scan of whole scans set a larger value deliberately. Existing DB profiles are unchanged.

Test plan

  • pytest tests/unit passes; ruff check src/dashpva/ clean
  • New profile seeds CACHE_OPTIONS.*.MAX_CACHE_SIZE = 1
  • Area Detector RAM stays flat while streaming

🤖 Generated with Claude Code

@pecomyint
pecomyint requested a review from Osayi-ANL September 30, 2026 22:15
@Osayi-ANL
Osayi-ANL merged commit 65744dc into main Oct 9, 2026
3 checks passed
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