buffer queue shared

Use buffer queue shared to set the maximum shared-area ratio for a queue.

Use undo buffer queue shared to restore the default.

Syntax

buffer egress [ slot slot-number ] cell queue queue-id shared ratio ratio-value

undo buffer egress [ slot slot-number ] cell queue queue-id shared

Default

The maximum shared-area ratio for a queue is 33%.

Views

System view

Predefined user roles

network-admin

Parameters

egress: Specifies the egress buffer.

slot slot-number: Specifies an IRF member device by its member ID (slot number). If you do not specify an IRF member device, this command applies to all IRF member devices.

cell: Specifies cell resources.

queue-id: Specifies a queue by its ID in the range of 0 to 7.

ratio ratio-value: Specifies the maximum shared-area ratio in percentage.

Usage guidelines

By default, all queues have an equal share of the shared area. You can set the shared-area ratio for a queue. The unconfigured queues use the default setting. The shared-area ratio for each queue is finally determined by the chip based on your configuration and the number of packets to be sent.

For the maximum shared-area ratio for a queue, the percentage values 0 to 100 are divided into 10 ranges. Table 42 shows the effective values that correspond to the configured values of ratio-value.

Table 42: Mapping between configured values of ratio-value and effective values

Configured value of ratio-value

Effective value

0 to 1

1

2 to 3

3

4 to 7

6

8 to 16

11

17 to 29

20

30 to 42

33

43 to 60

50

61 to 76

67

77 to 86

80

87 to 100

89

Examples

# Configure queue 0 to use up to 5% shared-area space of cell resources in the egress buffer of IRF member device 2.

<Sysname> system-view
[Sysname] buffer egress slot 2 cell queue 0 shared ratio 5