-
Notifications
You must be signed in to change notification settings - Fork 17
add blk metrics for gc #385
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 blk metrics for gc #385
Conversation
d6e600a to
a182180
Compare
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #385 +/- ##
==========================================
- Coverage 63.15% 55.46% -7.70%
==========================================
Files 32 35 +3
Lines 1900 4875 +2975
Branches 204 613 +409
==========================================
+ Hits 1200 2704 +1504
- Misses 600 1886 +1286
- Partials 100 285 +185 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
a182180 to
b1325fb
Compare
| REGISTER_GAUGE(failed_egc_task_count, "Number of failed emergent gc tasks"); | ||
| REGISTER_GAUGE(total_reclaimed_space_by_gc, "Total reclaimed space by gc task"); | ||
| REGISTER_GAUGE(total_reclaimed_space_by_egc, "Total reclaimed space by emergent gc task"); | ||
| REGISTER_GAUGE(gc_read_blk_count, "Total read blk count by gc in this pdev"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use REGISTER_COUNTER, then you can use COUNTER_INC(gc_read_blk_count, new_pba.blk_count()
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks , done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some of other metrics like failed_egc_task_count can be moved to counter as well, but it can be done seperately.
| REGISTER_GAUGE(total_reclaimed_space_by_gc, "Total reclaimed space by gc task"); | ||
| REGISTER_GAUGE(total_reclaimed_space_by_egc, "Total reclaimed space by emergent gc task"); | ||
| REGISTER_COUNTER(gc_read_blk_count, "Total read blk count by gc in this pdev"); | ||
| REGISTER_COUNTER(gc_write_blk_count, "Total writted blk count by gc in this pdev"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/writted/written
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done , thanks
4241bd5 to
43aae12
Compare
add two metrics for gc:
gc_read_blk_count : total read blk count in this pdev issued by gc
gc_write_blk_count : total write blk count in this pdev issued by gc
these two metrics are not persisted, which means they will start from 0 if sm restarts