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: content/cumulus-linux-517/Layer-1-and-Switch-Ports/Quality-of-Service/_index.md
+41Lines changed: 41 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -772,6 +772,47 @@ To show PFC watchdog data for a specific traffic class, run the `nv show interfa
772
772
773
773
To clear the PFC watchdog `deadlock-count` on an interface, run the `nv action clear interface <interface-id> qos pfc-watchdog deadlock-count` command.
774
774
775
+
### Lossless Headroom Based on Small Packet Probability
776
+
777
+
Cumulus Linux calculates the headroom size for lossless priority groups based on the assumption that all packets are small (64 bytes). On Spectrum-5 and earlier, the switch assumes a 100 percent probability of such packets arriving at line rate. On Spectrum-6, the switch assumes a 50 percent probability of such packets arriving at line rate. As a result, the configured headroom is often larger than necessary, as traffic typically consists of a mix of packet sizes.
778
+
779
+
To enable more accurate headroom calculations, providing for better buffer allocation and improved shared buffer utilization, you can configure the probability of small packets on ports applied with {{<linkurl="#priority-flow-control-(pfc)"text="priority flow control">}}.
780
+
781
+
To configure the probability of small packets on a port:
782
+
783
+
{{< tabs "TabID783 ">}}
784
+
{{< tab "NVUE Commands ">}}
785
+
786
+
Run the `nv set interface <interface-id> qos small-packet-probability <percent>` command.
787
+
788
+
The following command sets the small packet probability on swp1 to 60 percent:
789
+
790
+
```
791
+
cumulus@switch:~$ nv set interface swp1 qos small-packet-probability 60
792
+
cumulus@switch:~$ nv config apply
793
+
```
794
+
795
+
The following command sets the small packet probability on swp1 through swp10 to 60 percent:
796
+
797
+
```
798
+
cumulus@switch:~$ nv set interface swp1-10 qos small-packet-probability 60
799
+
cumulus@switch:~$ nv config apply
800
+
```
801
+
802
+
{{< /tab >}}
803
+
{{< tab "Linux Commands ">}}
804
+
805
+
Edit the `small_pcket_probablity` section of the `/etc/cumulus/datapath/qos/qos_features.conf` file.
806
+
807
+
```
808
+
swp1.qos.small_packet_probability = 60
809
+
```
810
+
811
+
{{< /tab >}}
812
+
{{< /tabs >}}
813
+
814
+
To show the small packet probability configuration, run the `nv show interface <interface-id> qos small-packet-probability` command.
815
+
775
816
## Congestion Control (ECN)
776
817
777
818
Explicit Congestion Notification (ECN) is an end-to-end layer 3 congestion control protocol. Defined by RFC 3168, ECN relies on bits in the IPv4 header Traffic Class to signal congestion conditions. ECN requires one or both server endpoints to support ECN to be effective.
-{{<linkurl="Quality-of-Service/#lossless-headroom-based-on-small-packet-probability"text="Lossless headroom size based on small packet probability">}}
0 commit comments