-
Notifications
You must be signed in to change notification settings - Fork 19
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
Fixes #1107 - Use a tiered list of read-grant amounts based on percen… #1110
Conversation
…ased on percentage of buffer capacity that's in use.
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #1110 +/- ##
==========================================
+ Coverage 77.90% 77.93% +0.02%
==========================================
Files 238 238
Lines 60656 60691 +35
Branches 5567 5678 +111
==========================================
+ Hits 47257 47297 +40
+ Misses 10775 10771 -4
+ Partials 2624 2623 -1
Flags with carried forward coverage won't be shown. Click here to find out more.
|
@@ -111,7 +111,8 @@ static inline void *qd_alloc_deref_safe_ptr(const qd_alloc_safe_ptr_t *sp) | |||
void free_##T(T *p); \ | |||
typedef qd_alloc_safe_ptr_t T##_sp; \ | |||
void set_safe_ptr_##T(T *p, T##_sp *sp); \ | |||
T *safe_deref_##T(T##_sp sp) | |||
T *safe_deref_##T(T##_sp sp); \ | |||
qd_alloc_stats_t *alloc_stats_##T(void) |
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.
It would be nice if we could call this get_alloc_stats_##T
instead of alloc_stats_##T
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.
Make this a separate issue. It was already there, I just added it to the declaration.
I think it is safe to suppress the race error, since this doesn't require synchronous access to the held_in_threads counter: |
…e grant logic.
…e max-read-buffers from Proton.
…cessing memory stats.
#1110) * Fixes #1107 - Use a tiered list of read-grant amounts based on percentage of buffer capacity that's in use. * Fixes #1107 - No logic changes - clarified intent of the grant logic. * Fixes #1107 - Fixed bug identified by kguisti. Infer the max-read-buffers from Proton. * Fixes #1107 - Renamed the env variable and added a log statement. * Fixes #1107 - Suppress the race warning (TSAN) while accessing memory stats. (cherry picked from commit 0489951)
…ased on percen… (skupperproject#1110) * Fixes skupperproject#1107 - Use a tiered list of read-grant amounts based on percentage of buffer capacity that's in use. * Fixes skupperproject#1107 - No logic changes - clarified intent of the grant logic. * Fixes skupperproject#1107 - Fixed bug identified by kguisti. Infer the max-read-buffers from Proton. * Fixes skupperproject#1107 - Renamed the env variable and added a log statement. * Fixes skupperproject#1107 - Suppress the race warning (TSAN) while accessing memory stats.
…tage of buffer capacity that's in use.