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

[flex-counters] Delay flex counters stats init for faster boot time [202012] #1736

Merged
merged 2 commits into from
May 4, 2021
Merged

[flex-counters] Delay flex counters stats init for faster boot time [202012] #1736

merged 2 commits into from
May 4, 2021

Conversation

shlomibitton
Copy link
Contributor

Signed-off-by: Shlomi Bitton shlomibi@nvidia.com

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

Shlomi Bitton added 2 commits May 2, 2021 10:30
Signed-off-by: Shlomi Bitton <shlomibi@nvidia.com>

Fix PortsOrch unit-test with new code.
Fix 'test_pg_drop' to adapt new change

Signed-off-by: Shlomi Bitton <shlomibi@nvidia.com>
@yxieca yxieca merged commit 03774db into sonic-net:202012 May 4, 2021
qiluo-msft added a commit that referenced this pull request May 12, 2021
liat-grozovik pushed a commit that referenced this pull request May 13, 2021
@shlomibitton shlomibitton deleted the shlomi_delay_counters_202012 branch July 27, 2021 16:32
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
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.

2 participants