Skip to content

feat: [DSM-106] Move observe_canisters_memory_usage() into background thread#10144

Open
alin-at-dfinity wants to merge 2 commits intoalin/DSM-106-observe-ReplicatedState-metrics-in-backgroundfrom
alin/DSM-106-observe_canisters_memory_usage-in-background
Open

feat: [DSM-106] Move observe_canisters_memory_usage() into background thread#10144
alin-at-dfinity wants to merge 2 commits intoalin/DSM-106-observe-ReplicatedState-metrics-in-backgroundfrom
alin/DSM-106-observe_canisters_memory_usage-in-background

Conversation

@alin-at-dfinity
Copy link
Copy Markdown
Contributor

Move the logic from observe_canisters_memory_usage() into ReplicatedStateMetrics::observe(), which now runs in a background thread. Unfortunately, we still need to compute the total canister memory usage on the critical path in order to populate SubnetMetrics::canister_state_bytes, but we don't need to do that every round.

… thread

Move the logic from observe_canisters_memory_usage() into ReplicatedStateMetrics::observe(), which now runs in a background thread. Unfortunately, we still need to compute the total canister memory usage on the critical path in order to populate SubnetMetrics::canister_state_bytes, but we don't need to do that every round.
@alin-at-dfinity alin-at-dfinity requested a review from a team as a code owner May 8, 2026 12:58
@github-actions github-actions Bot added the feat label May 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant