Skip to content

osd: be more verbose in OSD::run_osd_bench_test#62866

Merged
ifed01 merged 1 commit intoceph:mainfrom
ifed01:wip-ifed-osd-bench-more-logging
May 1, 2025
Merged

osd: be more verbose in OSD::run_osd_bench_test#62866
ifed01 merged 1 commit intoceph:mainfrom
ifed01:wip-ifed-osd-bench-more-logging

Conversation

@ifed01
Copy link
Contributor

@ifed01 ifed01 commented Apr 17, 2025

Likely build-in OSD benchmarking is a source for bluestore slow ops in BlueStore at Teuthology runs.
Let's have more logging for this procedure.

Related-to: https://tracker.ceph.com/issues/68337

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 x between the brackets: [x]. Spaces and capitalization matter when checking off items this way.

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
Show available Jenkins commands

@ifed01 ifed01 requested a review from a team as a code owner April 17, 2025 14:43
@github-actions github-actions bot added the core label Apr 17, 2025
Copy link
Contributor

@sseshasa sseshasa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM apart from minor logging nits.

}
}
dout(0) << __func__
<< " prefill took " << ceph_clock_now() - start
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Log with precision of 3 maybe?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My plan is to leave it as visible as possible. Some tests run with debug_osd set to 0 and hence this info would be invisible with level = 3.
Given this is a seldom op I don't think it's a big deal to have it at level 0. Or am I missing anything?

Copy link
Contributor

@sseshasa sseshasa Apr 18, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ifed01 I was not referring to the logging level. I am suggesting to use std::precision to truncate the decimal places for the duration to 3 places. Sorry for not being clearer.

Likely build-in OSD benchmarking is a source for bluestore slow ops in
BlueStore at Teuthology runs.
Let's have more logging for this procedure.

Related-to: https://tracker.ceph.com/issues/68337
Signed-off-by: Igor Fedotov <igor.fedotov@croit.io>
@sseshasa
Copy link
Contributor

@ifed01 ifed01 merged commit 9db8e84 into ceph:main May 1, 2025
12 checks passed
@ifed01 ifed01 deleted the wip-ifed-osd-bench-more-logging branch May 1, 2025 11:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants