286
Field Description
Text
Text memory used by the user process, in KB. The value for a kernel thread is 0.
Data
Data memory used by the user process, in KB. The value for a kernel thread is 0.
Stack
Stack memory used by the user process, in KB. The value for a kernel thread is 0.
Dynamic
Dynamic memory used by the user process, in KB. The value for a kernel thread is 0.
Name
Name of the user process. If square brackets ([ ]) exist in a process name, the process is
a kernel thread.
Related commands
•
display process memory heap
•
display process memory heap address
•
display process memory heap size
display process memory heap
Use
display process memory heap
to display heap memory usage for a user process.
Syntax
display process memory heap job job-id
[
verbose
]
[
slot
slot-number
[
cpu
cpu-number
] ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
job job-id
: Specifies a user process by its job ID, in the range of 1 to 2147483647.
verbose
: Displays detailed information. If you do not specify this keyword, the command displays
brief information.
slot
slot-number
: Specifies an IRF member device by its ID. If you do not specify this option, the
command displays heap memory usage for the user process on the master device.
cpu
cpu-number
: Specifies a CPU by its number.
Usage guidelines
Heap memory comprises fixed-sized blocks such as 16-byte or 64-byte blocks. It stores data and
variables used by the user process. When a user process starts, the system dynamically allocates
heap memory to the process.
Each memory block has an address represented in hexadecimal format, which can be used to
access the memory block. You can view memory block addresses by using the
display process
memory heap size
command, and view memory block contents by using the
display process
memory heap address
command.
Examples
# Display brief information about heap memory usage for the process identified by job ID 148.
<Sysname> display process memory heap job 148
Total virtual memory heap space(in bytes) : 2228224
Total physical memory heap space(in bytes) : 262144