# vmm
- [Command Function](#section445335110416)
- [Syntax](#section1795712553416)
- [Parameter Description](#section92544592410)
- [Usage](#section104151141252)
- [Example](#section11545171957)
- [Output](#section075617368542)
## Command Function
This command is used to query the virtual memory usage of a process.
## Syntax
vmm \[_-a / -h / --help_\]
vmm \[_pid_\]
## Parameter Description
**Table 1** Parameters
Parameter
|
Description
|
Value Range
|
-a
|
Displays the virtual memory usage of all processes.
|
N/A
|
-h | --help
|
Displays the help information.
|
N/A
|
pid
|
Indicates the ID of the process to query.
|
[0, 63]
|
## Usage
By default, the virtual memory usage of all processes is displayed.
## Example
Enter **vmm 3**.
## Output
**Figure 1** Virtual memory usage of the process with PID 3

**Table 2** Basic process information
Parameter
|
Description
|
PID
|
Indicates the process ID.
|
aspace
|
Indicates the address of the virtual memory control block.
|
name
|
Indicates the process name.
|
base
|
Indicates the start address of the virtual memory.
|
size
|
Indicates the size of virtual memory.
|
pages
|
Indicates the number of used physical pages.
|
**Table 3** Virtual memory region information
Parameter
|
Description
|
region
|
Indicates the address of the control block in the virtual memory region.
|
name
|
Indicates the name of the virtual memory region.
|
base
|
Indicates the start address of the virtual memory region.
|
size
|
Indicates the size of the virtual memory region.
|
mmu_flags
|
Indicates the MMU mapping attribute of the virtual memory region.
|
pages
|
Indicates the number of used physical pages (including the shared memory).
|
pg/ref
|
Indicates the number of used physical pages.
|