Diag tool#9
Merged
Merged
Conversation
Expose per-ring `dropped_count` / `lost_count` atomics in SubRingHeader (placed inside existing write_pos cache-line padding — no sizeof change, no new coherency traffic). Publisher bumps dropped_count on the self- repair / drop path; Subscriber bumps lost_count at each loss site. New SharedRegion::stats() returns a RegionStats snapshot: per-ring state, in_flight, write_pos, dropped_count, lost_count plus aggregates (total_writes, total_drops, total_losses, live_rings, approximate pool_free). Safe under live traffic. Python bindings expose RingStats, RegionStats, and SharedRegion.stats() so external monitoring can read counters without a CLI.
Closed
trns1997
reviewed
Apr 20, 2026
trns1997
reviewed
Apr 20, 2026
trns1997
reviewed
Apr 20, 2026
a07a9dd to
78d3d4b
Compare
trns1997
reviewed
Apr 24, 2026
trns1997
reviewed
Apr 24, 2026
trns1997
reviewed
Apr 24, 2026
trns1997
reviewed
Apr 24, 2026
trns1997
reviewed
Apr 24, 2026
trns1997
reviewed
Apr 24, 2026
trns1997
reviewed
Apr 24, 2026
trns1997
reviewed
Apr 24, 2026
| def cmd_repair(args) -> int: | ||
| target = _resolve_shm_name(args) | ||
| if not (args.locked or args.retired or args.reclaim): | ||
| args.locked = True # default: safe operation only |
Collaborator
There was a problem hiding this comment.
add this to the parser description so that the user is aware
trns1997
approved these changes
Apr 27, 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.
No description provided.