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

[config] Reduce Calls to SONiC Cfggen #1052

Merged

Conversation

tahmed-dev
Copy link
Contributor

Calls to sonic-cfggen is CPU expensive. This PR reduces calls to
sonic-cfggen during config-setup when configuring buffer/qos.

singed-off-by: Tamer Ahmed [email protected]

- What I did
Reduce time required to start config-setup service

- How I did it
Used template batch mode to batch together 4 calls into one call to sonic-cfggen

- How to verify it
flame graph showed gain of ~1.5% sonic-cfggen CPU util.

- Previous command output (if the output of a command-line utility has changed)
N/A

- New command output (if the output of a command-line utility has changed)
N/A

@tahmed-dev tahmed-dev requested review from lguohan and jleveque August 14, 2020 03:02
@tahmed-dev
Copy link
Contributor Author

Will remove commit from the other branch.

@tahmed-dev tahmed-dev force-pushed the taahme/qos-reduce-calls-cfggen branch from 129fe94 to c7f2d5c Compare August 14, 2020 03:06
@jleveque
Copy link
Contributor

Will remove commit from the other branch.

Which commit and which branch are you referring to?

@tahmed-dev tahmed-dev requested a review from jleveque August 14, 2020 03:06
@tahmed-dev
Copy link
Contributor Author

Will remove commit from the other branch.

Which commit and which branch are you referring to?

I branched off another branch and so there commit that is not in master nor part of this particular PR. Removed those now. Sorry about this inconvenience.

Calls to sonic-cfggen is CPU expensive. This PR reduces calls to
sonic-cfggen during config-setup when configuring buffer/qos.

singed-off-by: Tamer Ahmed <[email protected]>
@tahmed-dev tahmed-dev force-pushed the taahme/qos-reduce-calls-cfggen branch from c7f2d5c to c8d6ba5 Compare August 14, 2020 17:07
@jleveque
Copy link
Contributor

@tahmed-dev: FYI, "retest default please" will not work. If there is only one test named "default", you must use "retest this please".

pavel-shirshov
pavel-shirshov previously approved these changes Aug 17, 2020
neethajohn
neethajohn previously approved these changes Aug 18, 2020
@tahmed-dev tahmed-dev merged commit 5263b54 into sonic-net:master Aug 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants