-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
CRM available counters does not decrease with route added #9171
Comments
Are you observing this issue while adding only 1 entry or is it the same available count even if you add ~10-15 entries? It is possible that h/w may use some shared resource and available count may not change for just 1 entry. So this is more like an approximate available count rather than exact value. Please check the following:
|
@prsunny Hi, I added 10 routes, and still only used counter changed. Also I noticed 2 changes. 1. sonic-db-cli took a long time after reboot to function correctly, like more than 5 minutes. 2. When I posted this issue, the used counter was refreshed almost immediately. Now it changes after about 2 minutes. |
Description
There are 2 counters that keep track of CRM resources, one of them counts used and the other counts available. The expectation is that once a route is added, the used counter will increase by one and availble decrease by one. Now we are observing changes in used counter but not availble counter. When a route is added, SWSS will call SAI create_route_entry, once that is successful, used counter will be increased. SAI get_switch_attribute will also be called to retrieve the available counter and synced to redis database. Currently we are seeing logs that indicates success of create_route_entry, but calls to get_switch_attribute remains the same, which is not expected.
Steps to reproduce the issue:
On the dut:
sonic-db-cli COUNTERS_DB HMGET CRM:STATS crm_stats_ipv6_route_used crm_stats_ipv6_route_available
to retrieve the 2 countersip -6 route add 2001::/126 via fc00::72
to add route. Useip -6 route show
to verify that it's been added. /var/log/syslog should also contain logs that indicate route has been added.sonic-db-cli COUNTERS_DB HMGET CRM:STATS crm_stats_ipv6_route_used crm_stats_ipv6_route_available
again and see that used counter has been increased but available counter remains unchanged.ip -6 route del 2001::/126 via fc00::72
to remove route.Describe the results you received:
Available counter remains unchanged before and after adding route and deleting route.
Describe the results you expected:
Available counter decreases by 1 as a route is added.
Output of
show version
:Platform: x86_64-cel_e1031-r0
HwSku: Celestica-E1031-T48S4
ASIC: broadcom
SONIC.20201231.39
Output of
show techsupport
:Additional information you deem important (e.g. issue happens only occasionally):
The text was updated successfully, but these errors were encountered: