Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

common: Add throttle_get_started perf counter #12163

Merged
merged 1 commit into from Dec 4, 2016

Conversation

byo
Copy link

@byo byo commented Nov 23, 2016

This change adds 'get_started' performance counter which
is increased at the beginning of Throttle::get() call,
before any potential wait is started. It's purpose is
to measure in realtime the number of jobs waiting for the
throttle (get_started - get) and get the characteristic of
get cals before throttler does it's job.

Signed-off-by: Bartłomiej Święcki bartlomiej.swiecki@corp.ovh.com

@byo
Copy link
Author

byo commented Dec 2, 2016

ping @liewegas @dachary @tchaikov

@ghost ghost added core feature labels Dec 2, 2016
@@ -45,7 +46,8 @@ Throttle::Throttle(CephContext *cct, const std::string& n, int64_t m, bool _use_
PerfCountersBuilder b(cct, string("throttle-") + name, l_throttle_first, l_throttle_last);
b.add_u64(l_throttle_val, "val", "Currently available throttle");
b.add_u64(l_throttle_max, "max", "Max value for throttle");
b.add_u64_counter(l_throttle_get, "get", "Gets");
b.add_u64_counter(l_throttle_get_started, "get_started", "Number of get calls, increased before wait");
b.add_u64_counter(l_throttle_get, "get", "Gets"); // throttle_get_started - throttle_get == no. of waiters
Copy link

Choose a reason for hiding this comment

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

nit: the comment is cryptic: it should either be reworded or removed

@ghost ghost self-assigned this Dec 2, 2016
@ghost ghost added the needs-qa label Dec 2, 2016
This change adds 'get_started' performance counter which
is increased at the beginning of Throttle::get() call,
before any potential wait is started. It's purpose is
to measure in realtime the number of jobs waiting for the
throttle (get_started - get) and get the characteristic of
get cals before throttler does it's job.

Signed-off-by: Bartłomiej Święcki <bartlomiej.swiecki@corp.ovh.com>
@byo byo force-pushed the wip-throttle-get-started-perf-counter branch from 9941ec7 to 8c93517 Compare December 2, 2016 13:10
@liewegas liewegas added this to the kraken milestone Dec 2, 2016
@liewegas liewegas merged commit c3d3589 into ceph:master Dec 4, 2016
@byo byo deleted the wip-throttle-get-started-perf-counter branch December 16, 2016 15:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants