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

Fixes #1107 - Use a tiered list of read-grant amounts based on percen… #1110

Merged
merged 5 commits into from
Jun 5, 2023

Conversation

ted-ross
Copy link
Member

@ted-ross ted-ross commented Jun 2, 2023

…tage of buffer capacity that's in use.

…ased on percentage of buffer capacity that's in use.
@codecov
Copy link

codecov bot commented Jun 2, 2023

Codecov Report

Merging #1110 (a8a3056) into main (66f3668) will increase coverage by 0.02%.
The diff coverage is 75.00%.

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     
Flag Coverage Δ
pysystemtests 87.35% <ø> (-0.02%) ⬇️
pyunittests 54.51% <ø> (ø)
systemtests 71.70% <75.00%> (+0.06%) ⬆️
unittests 27.21% <30.55%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
calculator 30.82% <30.55%> (+<0.01%) ⬆️
systemtests 78.53% <75.00%> (+0.02%) ⬆️

@ted-ross ted-ross requested review from ganeshmurthy and kgiusti June 2, 2023 19:15
@@ -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)
Copy link
Contributor

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

Copy link
Member Author

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.

@kgiusti
Copy link
Contributor

kgiusti commented Jun 5, 2023

I think it is safe to suppress the race error, since this doesn't require synchronous access to the held_in_threads counter:

https://github.com/skupperproject/skupper-router/actions/runs/5158636146/jobs/9292547028?pr=1110#step:34:5156

@ted-ross ted-ross merged commit 0489951 into skupperproject:main Jun 5, 2023
@ted-ross ted-ross deleted the tross-1107 branch June 5, 2023 18:35
ganeshmurthy pushed a commit that referenced this pull request Jun 5, 2023
#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)
jiridanek pushed a commit to jiridanek/skupper-router that referenced this pull request Sep 19, 2023
…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.
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