resource cpu weight (Resource template view of admin)

Function

The resource cpu weight command assigns CPU weight to a virtual system (VS).

The undo resource cpu weight command restores the default CPU weight of a VS.

By default, CPU weight values assigned to Admin-VS and other VSs are 10 and 5 respectively.

Format

resource cpu weight resValue

undo resource cpu weight

Parameters

Parameter Description Value
resValue

Specifies CPU weight.

The value is an integer ranging from 1 to 10.

Views

Resource template view of admin

Default Level

3: Management level

Task Name and Operations

Task Name Operations
lsvs write

Usage Guidelines

Usage Scenario

To assign CPU weight to a VS, run the resource cpu weight command.

Precautions

In VS mode, this command is supported only by the admin VS.

Example

# Change the CPU weight of a VS to 1.
<HUAWEI> system-view
[~HUAWEI] admin
[~HUAWEI-admin] virtual-system vs1
[*HUAWEI-admin-vs:vs1] port-mode port
[*HUAWEI-admin-vs:vs1] resource cpu weight 1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >