sonic-swss icon indicating copy to clipboard operation
sonic-swss copied to clipboard

[orchstats]: Add orch stats for orchagent profiling

Open Pterosaur opened this issue 2 years ago • 2 comments

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: https://github.com/sonic-net/sonic-mgmt/pull/8505 provides a script for profiling orchagent.

Details if related

Pterosaur avatar Jun 05 '23 12:06 Pterosaur

/azp run

Pterosaur avatar Jun 14 '23 00:06 Pterosaur

Azure Pipelines successfully started running 1 pipeline(s).

azure-pipelines[bot] avatar Jun 14 '23 00:06 azure-pipelines[bot]