Command Line Reference
QoS Configuration
Buffer Management
9 min
buffer view buffer view table 1 buffer view table 1 buffer view command purpose show buffer profile display buffer profile configuration show buffer profile show buffer profile \[command] show buffer profile \[purpose] display buffer profile configuration \[view] privileged user view \[use cases] sonic# show buffer profile { "egress lossless profile" { "pool" "\[buffer pool|ingress lossless pool]", "size" "0", "static th" "23001600" }, "egress lossy profile" { "dynamic th" "2", "pool" "\[buffer pool|lossy pool]", "size" "1518" }, "ingress lossless profile" { "dynamic th" "1", "pool" "\[buffer pool|ingress lossless pool]", "size" "1518", "xoff" "38816", "xon offset" "13440" }, "ingress lossy profile" { "pool" "\[buffer pool|lossy pool]", "size" "0", "static th" "23001600" }, "pg lossless 100000 40m profile" { "dynamic th" "1", "pool" "\[buffer pool|ingress lossless pool]", "size" "1518", "xoff" "38816", "xon" "0", "xon offset" "13440" }, "pg lossless 25000 40m profile" { "dynamic th" "1", "pool" "\[buffer pool|ingress lossless pool]", "size" "1518", "xoff" "16928", "xon" "0", "xon offset" "13440" } } buffer config buffer config table 2 buffer config table 2 buffer config command purpose buffer profile buffer profile name create a buffer profile, and enter buffer configuration view mode lossless { static static th | dynamic dynamic th } size size xoff xoff xon offset xon offset \[ xon xon ] set a lossless buffer profile mode lossy { static static th | dynamic dynamic th } size size set a lossy buffer profile buffer profile buffer profile buffer profile name \[command] buffer profile buffer profile name \[purpose] create a buffer profile, and enter buffer configuration view \[parameters] parameter description buffer profile name profile name \[view] global configuration view \[notes] run command no buffer profile buffer profile name to delete the buffer profile \[use cases] sonic(config)# buffer profile test sonic(config buffer profile test)# mode lossless {static mode lossless {static static th |dynamic dynamic th } size size xoff xoff xon offset xon offset \[xon xon ] \[command] mode lossless { static static th | dynamic dynamic th } size size xoff xoff xon offset xon offset \[ xon xon ] \[purpose] set a lossless buffer profile \[parameters] parameter description static th set the static threshold value in bytes the range is from 0 to 47218432 dynamic th set the dynamic threshold value in integer the range is from 4 to 3 dynamic threshold = 2dynamic th remaining available buffer for example, if dynamic th is set to 1, then dynamic threshold is two times the remaining available buffer, that is, the actual threshold is two thirds of the total available buffer recommended value is 3 for cx308p 48y n v2, cx532p n v2 and cx732q n v2, and 1 for other models size set the guaranteed buffer in bytes the recommended value is 1518 xoff set pfc pause frame trigger cache threshold value in bytes, which is recommended to be an integer multiple of the cell size xoff value must be greater than xon value this parameter is not supported on cx308p 48y n v2, cx532p n v2 and cx732q n v2 xon offset set pfc pause frame stop buffer threshold value in bytes, it is recommended to be an integer multiple of cell size the recommended value is 13440 this parameter is not supported on cx308p 48y n v2, cx532p n v2 and cx732q n v2 xon (optional) it should be an integer multiple of cell size and the unit is byte it is recommended to configure 0, since the actual xon takes the larger value of xon and xon offset, so it is generally not necessary to set the value of xon this parameter is not supported on cx308p 48y n v2, cx532p n v2 and cx732q n v2 \[view] buffer configuration view \[notes] info the cell size varies by model on cx308p 48y n v2, cx532p n v2 and cx732q n v2, the cell size is 128 bytes on cx864e n, the cell size is 512 bytes on other models, the cell size is 224 bytes the sum of the lossless buffers allocated to each queue shall be no greater than the lossless pool size it is generally not recommended to modify the interface egress queue buffer manually, so please be careful setting unreasonable parameters may cause loss of packets while forwarding traffic on the interface \[use cases] sonic(config)# buffer profile buffer test1 sonic(config buffer profile buffer test1)# mode lossless dynamic 1 size 1518 xoff 46496 xon offset 13440 mode lossy{static mode lossy{static static th |dynamic dynamic th } size size \[command] mode lossy { static static th | dynamic dynamic th } size size \[purpose] set a lossy buffer profile \[parameters] parameter description static th set the static threshold value in bytes this parameter is meaningless on cx308p 48y n v2, cx532p n v2 and cx732q n v2, and should be configured as 0 on other models of switches, it should be no larger than the lossy pool size dynamic th set the dynamic threshold value in integer dynamic threshold = (dynamic th + 6) remaining available buffer on cx308p 48y n v2, cx532p n v2 and cx732q n v2 on other models of switches, dynamic threshold = 2dynamic th remaining available buffer size set the guaranteed buffer in bytes on cx308p 48y n v2, cx532p n v2 and cx732q n v2, it is recommended to be an integer multiple of the cell size on other switch models, the recommended value is 1518 \[view] buffer configuration view \[notes] the sum of the lossy buffers allocated to each queue shall be no greater than the lossy pool size \[use cases] sonic(config)# buffer profile buffer test sonic(config buffer profile buffer test)# mode lossy size 1518 dynamic 1 wa it is generally not recommended to modify the interface egress queue buffer manually, so please be careful setting unreasonable parameters may cause loss of packets while forwarding traffic on the interface
