327
chassis chassis-number slot slot-number: Specifies a card on an IRF member device. The
chassis-number argument represents the member ID of the IRF member device. The slot-number
argument represents the slot number of the card. If you do not specify a card, this command displays
information for the global active MPU. (Distributed devices in IRF mode.)
cpu cpu-number: Specifies a CPU by its number. (Centralized devices in IRF mode/distributed
devices in IRF or standalone mode.)
Usage guidelines
When a user process starts, it requests the following types of memory from the system:
Text memory—Stores code for the user process.
Data memory—Stores data for the user process.
Stack memory—Stores temporary data.
Dynamic memory—Heap memory dynamically assigned and released by the system
according to the needs of the user process. To view dynamic memory information, execute the
display process memory heap command.
Examples
# Display memory usage for all user processes.
<Sysname> display process memory
JID Text Data Stack Dynamic Name
1 384 1800 16 36 scmd
2 0 0 0 0 [kthreadd]
3 0 0 0 0 [ksoftirqd/0]
4 0 0 0 0 [watchdog/0]
5 0 0 0 0 [events/0]
6 0 0 0 0 [khelper]
29 0 0 0 0 [kblockd/0]
49 0 0 0 0 [vzmond]
52 0 0 0 0 [pdflush]
---- More ----
Table 72 Command output
JID Job ID of a process. It never changes.
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