Configuring Ingress and Egress Dedicated Buffers
This topic describes how to adjust the size of the dedicated buffer, both globally and on a per-port basis.
The switch partitions its buffer into dedicated and shared buffers. As the name suggests, the dedicated buffer is exclusive to each port and only that port can use its dedicated buffer. The shared buffer is shared across all ports. When there is little traffic on many ports and few ports have bursty traffic, the dedicated buffers of the ports carrying little traffic are unused, and bursty traffic ports cannot use these unused buffers.
However, you can decrease the global dedicated buffer space from the default value, effectively increasing the global shared buffer space so that bursty traffic ports can use more of the buffer space according to their dynamic-threshold value.
You can also define a dedicated buffer profile to increase or decrease the dedicated buffer allocated to an individual port. This is particularly useful for decreasing dedicated buffer space on unused or down ports, thereby increasing dedicated buffer space available to active ports.
You can fine-tune the dedicated buffer settings, but do so with caution to prevent traffic loss due to buffer misconfiguration.
Use Feature Explorer to confirm platform and release support for specific features.
Decreasing the Global Dedicated Buffer
Set the global dedicated buffer pool of the device as a percent of its default. This, in effect, increases the shared buffer pool. The percentage can range from 15 to 100 percent of the default. The minimum of 15 percent is to ensure that each port receives some amount of minimal dedicated buffer to reduce the probability of all ports contending for the shared buffer.
You can decrease the
dedicated-buffer
(thereby increasing the shared buffer pool), or decrease the
shared-buffer
(thereby increasing the dedicated buffer pool), but not both.
Configuring and Applying Dedicated Buffer Profiles
By default, the operating system calculates port level dedicated buffers internally. Therefore, even ports that are down or unused also get an equal amount of dedicated buffer space that is then unavailable to any traffic burst. The dedicated buffer profile provides the ability to increase or decrease the default dedicated buffer at a physical interface level.
With the dedicated buffer profile you can separately set the ingress and egress
dedicated buffer size to be a number of cells, with each cell being 254 bytes.
You can also set the ingress and egress dedicated buffer size to be
none
. Setting the dedicated buffer size to
none
is useful for unused or down ports. Note that when a
port with no dedicated buffer becomes congested, the port directly consumes from
the shared buffer pool.
Once you define a dedicated buffer profile, you can attach it directly to a physical interface.
Remaining dedicated buffers that you do not allocate to any ports by a dedicated buffer profile are equally shared among ports (based on speed) that don't have a dedicated buffer profile assigned to them.
You cannot assign a
dedicated-buffer-profile
to aggregated Ethernet (ae-
) interfaces. You can
only assign a dedicated-buffer-profile
to a physical
interface.
If the buffer-size
of all dedicated buffer profiles combined
exceeds the total available dedicated buffer pool, the system logs a syslog
error and does not implement the new configuration even though the commit
succeeds.