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

[orchstats]: Add orch stats for orchagent profiling #2812

Draft
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

Pterosaur
Copy link
Contributor

@Pterosaur Pterosaur commented Jun 5, 2023

What I did
Add a new orchstats class and background thread for orchagent task statistics.

Why I did it
The original record, swss.rec, will take too much CPU and disk space in the scenario of a huge entry scale. So, a flyweight statistic method is needed for monitoring the performance of orchagent.

How I verified it
The SWSS Azp should pass and the PR: sonic-net/sonic-mgmt#8505 provides a script for profiling orchagent.

Details if related

Signed-off-by: Ze Gan <ganze718@gmail.com>
Pterosaur added 3 commits June 5, 2023 23:52
Signed-off-by: Ze Gan <ganze718@gmail.com>
Signed-off-by: Ze Gan <ganze718@gmail.com>
Signed-off-by: Ze Gan <ganze718@gmail.com>
@Pterosaur Pterosaur force-pushed the orchstats branch 3 times, most recently from 93f3852 to 3ede8b4 Compare June 7, 2023 00:18
Signed-off-by: Ze Gan <ganze718@gmail.com>
Signed-off-by: Ze Gan <ganze718@gmail.com>
@Pterosaur Pterosaur force-pushed the orchstats branch 2 times, most recently from 3b9a4bb to e0f839b Compare June 9, 2023 14:30
Signed-off-by: Ze Gan <ganze718@gmail.com>
@Pterosaur
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@Pterosaur Pterosaur marked this pull request as ready for review June 17, 2023 10:04
@Pterosaur Pterosaur requested a review from lguohan June 17, 2023 10:04
@Pterosaur Pterosaur changed the title [draft]: Add orch stats [orchstats]: Add orch stats Jun 17, 2023
@Pterosaur Pterosaur changed the title [orchstats]: Add orch stats [orchstats]: Add orch stats for orchagent profiling Jun 17, 2023
@Pterosaur Pterosaur marked this pull request as draft September 19, 2023 05:45
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.

1 participant