[flex-counters] Delay flex counters stats init for faster boot time [202012]#1736
Merged
yxieca merged 2 commits intosonic-net:202012from May 4, 2021
shlomibitton:shlomi_delay_counters_202012
Merged
[flex-counters] Delay flex counters stats init for faster boot time [202012]#1736yxieca merged 2 commits intosonic-net:202012from shlomibitton:shlomi_delay_counters_202012
yxieca merged 2 commits intosonic-net:202012from
shlomibitton:shlomi_delay_counters_202012
Conversation
added 2 commits
May 2, 2021 10:30
Signed-off-by: Shlomi Bitton <[email protected]> Fix PortsOrch unit-test with new code.
Fix 'test_pg_drop' to adapt new change Signed-off-by: Shlomi Bitton <[email protected]>
yxieca
approved these changes
May 2, 2021
EdenGri
pushed a commit
to EdenGri/sonic-swss
that referenced
this pull request
Feb 28, 2022
1) Set default loglevel to SYSLOG_ERR 2) Make log level configurable via args
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Signed-off-by: Shlomi Bitton [email protected]
What I did
Update flex counters DB with counters stats only when counters are enabled.
As long as the polling counters are not enabled, flex counters information will stored internally on PortsOrch.
Why I did it
Creating flex counters objects on the DB will trigger 'SYNCD' to access the HW for query statistics capabilities.
This HW access takes time and will be better to finish boot before doing this (mainly for fast-reboot but good to have in general).
The flex counters are not crucial at boot time, we can delay it to the end of the boot process.
How I verified it
Reboot a switch and observer the flex counters DB populated after counters are enabled.
Details if related