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

Add missing ldlm pool stats #79

Merged
merged 2 commits into from
May 24, 2017
Merged

Add missing ldlm pool stats #79

merged 2 commits into from
May 24, 2017

Conversation

roclark
Copy link
Contributor

@roclark roclark commented May 19, 2017

Fixes #67

Signed-Off-By: Robert Clark robert.d.clark@hpe.com

@roclark roclark requested a review from joehandzik May 19, 2017 16:11
@roclark roclark mentioned this pull request May 19, 2017
{"pool/granted", "locks_granted_total", "Number of granted locks", s.counterMetric},
{"pool/grant_plan", "lock_grant_plan", "Number of planned lock grants for time period", s.gaugeMetric},
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we know what the time period is? We should clarify that...otherwise we may not understand the metric.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I will do some more digging, but I couldn't find anything immediately obvious.

Copy link
Contributor

Choose a reason for hiding this comment

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

From issue #67:

lustre/ldlm/ldlm_pool.c: lprocfs_counter_init(pl->pl_stats, LDLM_POOL_GRANT_PLAN_STAT,
lustre/ldlm/ldlm_pool.c- LPROCFS_CNTR_AVGMINMAX | LPROCFS_CNTR_STDDEV,
lustre/ldlm/ldlm_pool.c- "grant_plan", "locks/s");

So, it's per second. I would change the help text to indicate that. Otherwise, everything else looked good.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good catch!

@roclark
Copy link
Contributor Author

roclark commented May 19, 2017

Also would appreciate @knweiss taking a look at this to make sure we resolve his issue (#67) appropriately.

@roclark roclark force-pushed the wip-fix-issue-67 branch from a44017d to a43f85a Compare May 19, 2017 16:27
@joehandzik
Copy link
Contributor

@roclark In the interest of making sure we get @knweiss's input on names the first time, I'll leave this unmerged until we hear back.

@roclark roclark force-pushed the wip-fix-issue-67 branch from a43f85a to 2e36a76 Compare May 23, 2017 14:24
@roclark
Copy link
Contributor Author

roclark commented May 23, 2017

Latest: I removed the grant_speed metric and verified granted is a counter. Anything else I am missing or need to change?

@knweiss
Copy link

knweiss commented May 24, 2017

Aren't the grant and cancel counter metrics missing in the latest commit?

Regarding granted: You could also define it as an untyped metric as long we are in doubt.

@roclark roclark force-pushed the wip-fix-issue-67 branch 2 times, most recently from 78c8f3b to 9d77869 Compare May 24, 2017 15:20
Signed-Off-By: Robert Clark <robert.d.clark@hpe.com>
@roclark roclark force-pushed the wip-fix-issue-67 branch from 9d77869 to baa57c7 Compare May 24, 2017 15:23
@roclark
Copy link
Contributor Author

roclark commented May 24, 2017

@knweiss good catch on grant and cancel - they are back in. Also, I added the untyped metric. I agree it is probably wise since we aren't absolutely positive on the type.

{"pool/recalc_freed", "recalc_freed_total", "Number of locks that have been freed", s.counterMetric},
{"pool/recalc_timing", "recalc_timing_seconds_total", "Number of seconds spent locked", s.counterMetric},
{"pool/shrink_freed", "shrink_freed_total", "Number of shrinks that have been freed", s.counterMetric},
{"pool/shrink_request", "shrink_requests", "Number of shrinks that have been requested", s.gaugeMetric},
Copy link
Contributor

Choose a reason for hiding this comment

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

shrink_requests_total

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good catch. This should probably be changed to a counter as well then.

Signed-Off-By: Robert Clark <robert.d.clark@hpe.com>
@roclark roclark force-pushed the wip-fix-issue-67 branch from baa57c7 to f6e7e22 Compare May 24, 2017 16:09
@joehandzik joehandzik merged commit 0a1fa5e into master May 24, 2017
@roclark roclark deleted the wip-fix-issue-67 branch May 24, 2017 16:27
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.

3 participants