Skip to content

Commit e4bbd0f

Browse files
Update cpu_queues_stats.md
1 parent 30233ae commit e4bbd0f

File tree

1 file changed

+63
-2
lines changed

1 file changed

+63
-2
lines changed

doc/cpu_queues_stats.md

Lines changed: 63 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,13 @@ Single line changes are made to *sonic-py-swsssdk*, *sonic-snmpagent* and *so
118118
*sonic-sairedis* repo changes are made to enable cpu queues on vslib.
119119

120120
SAI calls:
121-
SAI API *get_port_attribute()* with attribute *SAI_PORT_ATTR_QOS_NUMBER_OF_QUEUES* is called to fetch the number of CPU queues supported by switch.
122-
SAI API *get_port_attribute()* with attribute *SAI_PORT_ATTR_QOS_QUEUE_LIST* to fetch the CPU queue list.
121+
SAI API *get_port_attribute()* with attribute *SAI_PORT_ATTR_QOS_NUMBER_OF_QUEUES* is called to fetch the number of CPU queues supported by switch.
122+
SAI API *get_port_attribute()* with attribute *SAI_PORT_ATTR_QOS_QUEUE_LIST* to fetch the CPU queue list.
123+
124+
Synd calls SAI API *getStats()* with attributes *SAI_OBJECT_TYPE_PORT* and *SAI_OBJECT_TYPE_QUEUE* to fetch the stats.
125+
126+
Handling SAI implementations without CPU queue support:
127+
Existing PortsOrch::initializeQueues() API throws *runtime_error("PortsOrch initialization failure.")* when above mentioned attributes are not supported. The code can be made to handle/ignore this exception for CPU queues.
123128

124129
Flex counters:
125130
Along with other flex counter stats, Syncd periodically fetches the CPU port and queue stats to update the counters-DB.
@@ -191,3 +196,59 @@ https://github.com/Azure/sonic-utilities/pull/1314
191196
https://github.com/Azure/sonic-snmpagent/pull/182
192197
https://github.com/Azure/sonic-sairedis/pull/732
193198

199+
200+
Possible future additions (not included in above PR list):
201+
```
202+
root@sonic:/home/admin# show queue watermark CPU
203+
Egress shared pool occupancy per CPU queue
204+
Queue Bytes
205+
------- -------
206+
CPU:0 0
207+
CPU:1 0
208+
CPU:2 0
209+
CPU:3 0
210+
CPU:4 0
211+
CPU:5 0
212+
CPU:6 0
213+
CPU:7 0
214+
CPU:8 0
215+
CPU:9 0
216+
CPU:10 0
217+
CPU:11 0
218+
CPU:12 0
219+
CPU:13 0
220+
CPU:14 0
221+
CPU:15 0
222+
CPU:16 0
223+
CPU:17 0
224+
CPU:18 512
225+
CPU:19 0
226+
CPU:20 0
227+
CPU:21 0
228+
CPU:22 0
229+
CPU:23 1792
230+
CPU:24 0
231+
CPU:25 0
232+
CPU:26 0
233+
CPU:27 0
234+
CPU:28 0
235+
CPU:29 0
236+
CPU:30 0
237+
CPU:31 0
238+
CPU:32 0
239+
CPU:33 0
240+
CPU:34 0
241+
CPU:35 0
242+
CPU:36 0
243+
CPU:37 0
244+
CPU:38 0
245+
CPU:39 0
246+
CPU:40 0
247+
CPU:41 0
248+
CPU:42 0
249+
CPU:43 0
250+
CPU:44 0
251+
CPU:45 0
252+
CPU:46 0
253+
CPU:47 0
254+
```

0 commit comments

Comments
 (0)