limit-resource cpu
Use limit-resource cpu to specify a CPU weight for an MDC.
Use undo limit-resource cpu to restore the default.
Syntax
limit-resource cpu weight weight-value
undo limit-resource cpu
Default
The default MDC has a CPU weight of 10 on each MPU and each interface card. Each non-default MDC has a CPU weight of 10 on each MPU and each interface card that it is authorized to use.
Views
MDC view
Predefined user roles
network-admin
mdc-admin
Parameters
weight weight-value: Specifies a CPU weight value in the range of 1 to 10.
Usage guidelines
The number of CPU resources available for an MDC depends on the CPU weight settings for all MDCs that share the same CPU. For example, if three MDCs share the same CPU, setting their weights to 10, 10, and 5 is equivalent to setting their weights to 2, 2, and 1.
The two MDCs with the same weight can use the CPU for approximately the same period of time.
The third MDC can use the CPU for about half of the time for each of the other two MDCs.
The CPU weight for the default MDC is fixed at 10. You cannot change it.
The CPU weight specified for an MDC takes effect on all MPUs and all interface cards that the MDC is authorized to use. To authorize an MDC to use an interface card, use the location command.
Examples
# Set the CPU weight to 2 for MDC sub1.
<Sysname> system-view [Sysname] mdc sub1 [Sysname-mdc-2-sub1] limit-resource cpu weight 2