< Home

display memory-usage

Function

The display memory-usage command displays the memory usage of the device.

Format

display memory-usage [ slave | slot slot-id ] [ vcpu vcpu-index ]

The slave parameter is not supported if the switch does not support the stacking function or does not have the stacking function enabled.

Only the S5720-HI, S5730-HI, S5731-H, S5731-S, S5731S-H, S5731S-S, S5732-H, S6720-HI, S6730-H, S6730S-H, S6730-S, and S6730S-S support the vcpu vcpu-index parameter.

Parameters

Parameter Description Value
slave

Displays memory usage of a slave switch in a stack. This parameter is valid only when multiple switches form a stack.

-

slot slot-id

Displays memory usage of a slot ID.

The value depends on the device configuration.

vcpu vcpu-index

Specifies the virtual CPU number.

Specify the vcpu-index parameter based on the hardware configuration.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Memory usage is an important index to evaluate device performance. A high memory usage will cause service faults. You can use the display memory-usage command to view memory usage to check whether devices are working properly.

The memory usage displayed using the display memory-usage command is based on the total available memory of a process.

Example

# Display memory usage of the current device.

<HUAWEI> display memory-usage
 Memory utilization statistics at 2008-12-15 15:17:42+08:00
 System Total Memory Is: 394152720 bytes
 Total Memory Used Is: 130975664 bytes
 Memory Using Percentage Is: 33% 
# Display memory usage of the virtual CPU 1 in slot 0.
<HUAWEI> display memory-usage slot 0 vcpu 1
 Vcpu 1 Memory utilization Info:                                                
 Memory utilization statistics at 2017-08-26 06:11:20+00:00                     
 System Total Memory Is: 30408904 bytes                                         
 Total Memory Used Is: 22938332 bytes                                           
 Memory Using Percentage Is: 75%                                                
Table 1 Description of the display memory-usage command output

Item

Description

Memory utilization statistics at

Time when memory usage is collected.

System Total Memory

Total memory of the device network operating system.

Total Memory Used

Total used memory of the device network operating system.

Memory Using Percentage

Memory usage.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >