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

Diagnostics: Adds performance improvement to GetContactedRegions() #2907

Merged
merged 54 commits into from
Jan 12, 2022

Conversation

sourabh1007
Copy link
Contributor

@sourabh1007 sourabh1007 commented Nov 24, 2021

Description

Getting region Contacted information from the diagnostics is very inefficient today. It is affecting Client Telemetry Performance by 2% to 3% .
Right now, Overall impact is 5% (Comparing run with Telemetry and Without Telemetry)

Performance Test:

Without Change:

image

After this change:

image

Reduction in memory allocation and increase RPS is noticed for this particular function.

Client Telemetry Stats (Calculating Overall Impact after the Change):

image

Impact in % is:

Maxima Difference = 10599 (w/o Telemetry) - 10120 (with Telemetry) = 479 = 4.5%
Minima Difference = 8528 (w/o Telemetry) - 8867 (with Telemetry) = -339 = 0%

Type of change

  • [] Bug fix (non-breaking change which fixes an issue)

Closing issues

To automatically close an issue: closes #2846 and closes #2952

@sourabh1007 sourabh1007 changed the title [Internal] Diagnostics: Fixes reinitialization of Region Contacted Information [Don't Review] [Internal] Diagnostics: Fixes reinitialization of Region Contacted Information Dec 1, 2021
@sourabh1007 sourabh1007 changed the title [Don't Review] [Internal] Diagnostics: Fixes reinitialization of Region Contacted Information [Don't Review] [Internal] Diagnostics: Fixes performance of Region Contacted Information Dec 15, 2021
@sourabh1007 sourabh1007 force-pushed the users/sourabhjain/regioncontactedOptimization branch 8 times, most recently from 43a0269 to d084f31 Compare December 20, 2021 15:02
@sourabh1007 sourabh1007 changed the title [Don't Review] [Internal] Diagnostics: Fixes performance of Region Contacted Information [Internal] Diagnostics: Fixes performance of Region Contacted Information Dec 23, 2021
@kirankumarkolli
Copy link
Member

kirankumarkolli commented Dec 28, 2021

What's the impact with-out regions-contracted collection in telemetry?
This data point will help us understand how much is it contributing even with optimization.

@sourabh1007
Copy link
Contributor Author

sourabh1007 commented Dec 29, 2021

What's the impact with-out regions-contracted collection in telemetry? This data point will help us understand how much is it contributing even with optimization.

#2952 This issue has RCA documented.

Copy link
Member

@FabianMeiswinkel FabianMeiswinkel left a comment

Choose a reason for hiding this comment

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

Please revert the breaking change making ITrace abstract base class instead of interface

@sourabh1007 sourabh1007 force-pushed the users/sourabhjain/regioncontactedOptimization branch from 3680d0f to 4ede83e Compare January 11, 2022 16:33
@j82w j82w changed the title [Internal] Diagnostics: Fixes performance of Region Contacted Information Diagnostics: Adds performance improvement to GetContactedRegions() Jan 12, 2022
@j82w j82w enabled auto-merge (squash) January 12, 2022 15:08
@j82w j82w merged commit 1d8a2d4 into master Jan 12, 2022
@j82w j82w deleted the users/sourabhjain/regioncontactedOptimization branch January 12, 2022 23:49
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.

Client Telemetry: Optimize overhead [Internal] Performance : Improve Region Contacted information Logic
5 participants