buffer total-shared
Use buffer total-shared to set the shared area size.
Use undo buffer total-shared to restore the default setting.
Syntax
In standalone mode:
buffer { ingress | egress } [ slot slot-number ] packet total-shared size-value
undo buffer { ingress | egress } [ slot slot-number ] packet total-shared
In IRF mode:
buffer { ingress | egress } [ chassis chassis-number slot slot-number ] packet total-shared size-value
undo buffer { ingress | egress } [ chassis chassis-number slot slot-number ] packet total-shared
Default
The default setting is 1024 buffer resources for the ingress buffer and 4096 buffer resources for the egress buffer.
Views
System view
Predefined user roles
network-admin
mdc-admin
Parameters
ingress: Specifies the ingress buffer.
egress: Specifies the egress buffer.
slot slot-number: Specifies an interface card by its slot number. Without this option, the command applies to all interface cards. (In standalone mode.)
chassis chassis-number slot slot-number: Specifies an interface card on a specific IRF member device. The chassis-number argument specifies the IRF member device. The slot-number argument specifies the interface card. Without this option, the command applies to all interface cards of the IRF fabric. (In IRF mode.)
size-value: Specifies the size of the shared area, in the number of buffer resources. Valid values for this argument are multiples of 512 between 0 to 2048 for the ingress buffer and multiples of 512 between 0 and 5120 for the egress buffer.
Usage guidelines
After you configure the shared area size, the remaining buffer space is automatically assigned to the fixed area.
Only FD cards, FG cards, and cards with silk screen LST1XP16LEB1, or LST1XP16LEC1 support configuring the ingress buffer (the ingress keyword). FD and FG cards refer to the cards with silk screen ending with FD and FG, respectively.
The configuration of the ingress buffer takes effect only on the default MDC. For information about MDCs, see Virtual Technologies Configuration Guide.
Examples
# In standalone mode, configure the shared area of the egress buffer on interface card 2 as 2048 buffer resources.
<Sysname> system-view [Sysname] buffer egress slot 2 packet total-shared 2048
# In IRF mode, configure the shared area of the egress buffer of interface card 2 on IRF member device 2 as 2048 buffer resources.
<Sysname> system-view [Sysname] buffer egress chassis 2 slot 2 packet total-shared 2048