Repository navigation
seastore: Record slow transaction histograms - #69730
Conversation
xxhdx1985126
left a comment
There was a problem hiding this comment.
Generally, LGTM. If detailed time sampling impacts the performance significantly, we can add some dedicated compiling flag and wrap the time sampling code with it.
I've added the compile flag in #69670 as this adds counters for each lookup/comparison. |
|
jenkins test make check arm64 |
I think we can use |
Agree, will update. edit: switched all other timings to seastar lowres, its far less granular (~0.5ms cached now() ) but it is good enough for the purpose here and avoids extra cpu cycles. |
69145c9 to
bb0d9be
Compare
|
example: |
collock_wait already tells us how long a transaction waits for the per-collection ordering_lock, but not how long the lock is then held. comparing hold to wait time can point at either slow in-lock or contention of a hot pg. Signed-off-by: Matan Breizman <[email protected]>
on hot shards a small fraction of transactions dominate latency,collecting one histogram for all is not enough. Add two more histograms of the same strcutre for txns that take more than 5ms and more than 10ms. Signed-off-by: Matan Breizman <[email protected]>
do_transaction timing runs on the hot path and used for latency histograms. std::chrono::steady_clock's per-call clock_gettime is too costly for these needs. seastar::lowres_clock uses cached now() at every task_quota poll (~0.5ms) - which is granular enough. Signed-off-by: Matan Breizman <[email protected]>
The do_transaction latency histograms now source their samples from seastar::lowres_clock (~0.5ms default). Drop the sub 1ms buckets. Signed-off-by: Matan Breizman <[email protected]>
The do_transaction latency histograms were bucketed and summed in microseconds, but with seastar::lowres_clock (~task_quota, ~0.5ms) and the ms-scale buckets we keep - microsecond values only add noise to the exported numbers. Signed-off-by: Matan Breizman <[email protected]>
bb0d9be to
8e5606a
Compare
PR=wip-perezjos-crimson-only-09-07-2026-PR69730
$ teuthology-suite -s crimson-rados -p 101 --force-priority -c $PR -f debug --filter-out rgw --filter seastore --suite-branch main --suite-repo https://github.com/ceph/ceph.git
2026-07-13 09:24:36,590.590 INFO:teuthology.suite.run:Test results viewable at
|
Thank you! |
Signed-off-by: Matan Breizman <[email protected]>
This is a follow up to #69281 which adds a transaction breakdown metrics.
However, in order to better narrow down the histograms we need to collect stats for the tail txns only.
This will allow us to see which phases draw the most weight in these txns (over 5ms and over 10ms).
Also, adds a collection lock hold vs wait timings to measure queue depth (actual work vs waiting times).
For context: https://gist.github.com/Matan-B/44b17e2599bb409ca9d96a41fff390ae
Contribution Guidelines
To sign and title your commits, please refer to Submitting Patches to Ceph.
If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.
When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an
xbetween the brackets:[x]. Spaces and capitalization matter when checking off items this way.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.