Skip to content

cmon: Add the remaining dtrace display fields and a default set. - #1971

Merged
leftwo merged 2 commits into
mainfrom
alan/cmon-fields
Sep 10, 2026
Merged

leftwo merged 2 commits into
mainfrom
alan/cmon-fields

Conversation

@leftwo

@leftwo leftwo commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

Added eight more fields from DtraceInfo that had no way to be displayed:
ds_reconciled and ds_reconcile_needed on their own rather than only as part of the reconcile trio.
write_bytes_out, ds_ro_lr_skipped, and the four ds_io_count categories split out so a row can show just the ones you care about.

Give -o a default set worth looking at, and share it as default_display_fields() so anything else displaying this data starts
from the same place.

Three columns were wrong. ds_delay printed three per-client values under a single DELAY heading, so everything to its right was shifted. Delay now gets DLY0 DLY1 DLY2 like the other per-client fields.
live_repair labelled its third column LRC0 instead of LRC2.
next_job_id was seven wide, which a long lived upstairs overflows, so it goes to ten.

With ds_delay fixed, every field's header and row are the same width, so the known-broken exemption in that test goes away.

@leftwo
leftwo added this pull request to stack #1969 September 9, 2026 21:58
Comment thread cmon-common/src/lib.rs
Comment thread cmon-common/src/lib.rs Outdated
Base automatically changed from alan/dtrace-pid-session to main September 10, 2026 17:17
Added eight more fields from DtraceInfo that had no way to be displayed.
Show ds_reconciled and ds_reconcile_needed on their own rather than only
as part of the reconcile trio.  write_bytes_out, ds_ro_lr_skipped, and
the four ds_io_count categories are now split out so a row can show
just the ones you care about.

Give -o a default set worth looking at, and share it as
default_display_fields() so anything else displaying this data starts
from the same place.

Three columns were wrong.  ds_delay printed three per-client values
under a single DELAY heading, so everything to its right was shifted;
it gets DLY0 DLY1 DLY2 like the other per-client fields.  live_repair
labelled its third column LRC0 instead of LRC2.  next_job_id was seven
wide, which a long lived upstairs overflows, so it goes to ten.

With ds_delay fixed, every field's header and row are the same width,
so the known-broken exemption in that test goes away.

The README example is regenerated: it was drawn at the old next_job_id
width, and it now shows the default fields rather than an explicit -o.
@leftwo
leftwo merged commit a47c276 into main Sep 10, 2026
17 checks passed
@leftwo
leftwo deleted the alan/cmon-fields branch September 10, 2026 20:57
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