As per info from Juniper about memory buffers here, a switch memory is divided into 2 main parts: Dedicated buffer and Shared buffer. The memory allocated for a Dedicated buffer is equally distributed among all ports, and Shared buffer memory is available for shared consumption among ports based on specific traffic types. There is also a Shared headroom buffer that is used to keep traffic received during PFC Pause time window.
I want to understand how to get the following buffer limits in SONiC OS:
- Dedicated buffer size limit for a port
- Shared buffer size limit for a given port's queue
- Shared headroom size limit