Repository navigation
crimson/os/seastore: add xattr metrics like the classic chgattr_lat - #73924
Merged
shraddhaag merged 2 commits intoNov 19, 2026
Merged
Conversation
shraddhaag
force-pushed
the
wip-shraddhaag-seastore-xattr-metrics
branch
from
November 17, 2026 05:41
2a17262 to
007ceba
Compare
shraddhaag
marked this pull request as ready for review
November 17, 2026 06:29
4 of 14 tasks
knrt10
approved these changes
Nov 17, 2026
knrt10
left a comment
Member
There was a problem hiding this comment.
Thanks @shraddhaag , looks good, apart from make check failure, everything LGTM.
Contributor
Author
This was due to a bug on main. The fix, #73945, was just merged. |
Contributor
Author
|
jenkins test make check |
amathuria
approved these changes
Nov 17, 2026
SeaStore reports getattr/getattrs latency (op_lat GET_ATTR, GET_ATTRS), like the classic getattr_lat, but it has nothing for xattr changes and no data on the xattr omap tree. Add, per shard_store_index: - xattr_set_ops, xattr_rm_ops: setattr/setattrs and rmattr/rmattrs transaction ops. - xattr_change_count, xattr_change_usec: count and total time of those ops in the transaction build, like the classic chgattr_lat (avgcount and sum). A steady clock is used: one change takes microseconds, below the lowres_clock resolution of the op_lat histograms. - attr_inline / attr_overflow with attr="ss": SnapSet in the onode inline slot or in the xattr tree, next to the existing attr="oi". - xattr_tree_set_records, xattr_tree_set_bytes: entries and key + value bytes written to the xattr omap tree. - xattr_tree_kv_size: histogram of key + value size of each entry written to the xattr tree, 64 B to 64 KiB. The leaf limit is 16,382 B. The buckets are cumulative, as Prometheus expects, so histogram_quantile() works on it. The op counters count each build of the transaction, so a conflict replay counts again. Signed-off-by: Shraddha Agrawal <[email protected]>
Add three panels for the new SeaStore xattr metrics to the SeaStore row of the crimson OSD dashboard: - xattr ops / s: xattr_set_ops and xattr_rm_ops, the load for the next panel. - Avg xattr change time: xattr_change_usec / xattr_change_count, like the classic BlueStore chgattr_lat. - xattr tree entry size (over time range): the share of entries in each size band (0-64 B, 64-128 B, ... 16-64 KiB). It shows the sizes the xattr leaf must hold, and entries near the 16,382 B leaf limit. The xattr_tree_kv_size buckets are cumulative, so each band is the difference of two buckets, divided by xattr_tree_kv_size_count. The bar gauge uses one query per band, so that each bar has a range label; the "heatmap" format would label the bars with le. increase() extrapolates each bucket on its own, so a band is clamped at 0. The bucket query matches le both as "64" and as "64.000000". bars() now draws in one colour: a green-to-red gradient made a large share look like an error. ts() gets a min option. The change time panel uses min=0: without it, Grafana can draw a flat line outside the y axis range. Signed-off-by: Shraddha Agrawal <[email protected]>
shraddhaag
force-pushed
the
wip-shraddhaag-seastore-xattr-metrics
branch
from
November 18, 2026 20:18
007ceba to
78e514e
Compare
Contributor
Author
|
jenkins test windows |
1 similar comment
Contributor
Author
|
jenkins test windows |
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.
The PR adds metrics for
xattrmetrics. The following metrics dashboard changes were also added:Checklist
Show available Jenkins commands
jenkins test classic perfJenkins Job | Jenkins Job Definitionjenkins test crimson perfJenkins Job | Jenkins Job Definitionjenkins test signedJenkins Job | Jenkins Job Definitionjenkins test make checkJenkins Job | Jenkins Job Definitionjenkins test make check arm64Jenkins Job | Jenkins Job Definitionjenkins test submodulesJenkins Job | Jenkins Job Definitionjenkins test dashboardJenkins Job | Jenkins Job Definitionjenkins test dashboard cephadmJenkins Job | Jenkins Job Definitionjenkins test apiJenkins Job | Jenkins Job Definitionjenkins test docsReadTheDocs | Github Workflow Definitionjenkins test ceph-volume allJenkins Jobs | Jenkins Jobs Definitionjenkins test windowsJenkins Job | Jenkins Job Definitionjenkins test rook e2eJenkins Job | Jenkins Job DefinitionYou must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.