You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: system/Counters_Rate_Utilization_Load_Interval_Support.md
+30-2
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,8 @@
25
25
*[3.1 Overview](#31-overview)
26
26
*[3.1.1 Orchagent](#311-orchagent)
27
27
*[3.1.2 SYNCD](#312-syncd)
28
-
*[3.1.3 Mgmt-framework](#313-mgmt-framework)
28
+
*[3.1.3 SAI](#313-sai)
29
+
*[3.1.4 Mgmt-framework](#314-mgmt-framework)
29
30
*[3.2 DB Changes](#32-db-changes)
30
31
*[3.2.1 CONFIG DB](#321-config-db)
31
32
*[3.2.2 APP DB](#322-app-db)
@@ -130,7 +131,7 @@ Queue counters are fetched every 10 seconds, so the load interval can only be mu
130
131
131
132
SYNCD flex counter thread fetches the interface and queue counters from SAI and updates the COUNTERS DB.
132
133
When load interval is set, then thread caches the counters and after every load interval, will generate the interface utilization counters and update the new fields to same COUNTERS DB.
133
-
134
+
Micro-second timestamp after generating rate counters is cached and used for next rate counter calculations.
134
135
135
136
```
136
137
// stats has current counters read from SAI
@@ -150,6 +151,8 @@ if (load_interval < poll_interval)
150
151
// This logic is called every load interval.
151
152
// counter overflow will be handled.
152
153
154
+
// In 3.1.0 release, load_divisor is used for rate calculations
155
+
153
156
# Interface IN counters
154
157
current = stats[SAI_PORT_STAT_IF_IN_UCAST_PKTS] + stats[SAI_PORT_STAT_IF_IN_NON_UCAST_PKTS];
0 commit comments