vmm
Command Function
This command is used to query the virtual memory usage of a process.
Syntax
vmm [-a / -h / --help]
vmm [pid]
Parameters
Table 1 Parameter description
Parameter
|
Description
|
Value Range
|
-a
|
Displays the virtual memory usage of all processes.
|
N/A
|
-h | --help
|
Displays help information.
|
N/A
|
pid
|
Specifies the ID of the process to query.
|
[0,63]
|
Usage
By default, the virtual memory usage of all processes is displayed.
Example
Run vmm 3.
Output
Figure 1 Virtual memory usage of the process with PID 3
Table 2 Basic process information
Parameter
|
Description
|
PID
|
Process ID
|
aspace
|
Address of the virtual memory control block
|
name
|
Process name
|
base
|
Start address of the virtual memory
|
size
|
Size of virtual memory
|
pages
|
Number of used physical pages
|
Table 3 Virtual memory region information
Output
|
Description
|
region
|
Address of the control block in the virtual memory region
|
name
|
Name of the virtual memory region
|
base
|
Start address of the virtual memory region
|
size
|
Size of the virtual memory region
|
mmu_flags
|
MMU mapping attribute of the virtual memory region
|
pages
|
Number of used physical pages, including that of the shared memory
|
pg/ref
|
Number of used physical pages
|