• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# pmm
2
3
4## Command Function
5
6This command is used to check the usage of the physical pages of the system memory and the page cache.
7
8
9## Syntax
10
11pmm
12
13
14## Parameters
15
16None.
17
18
19## Usage Guidelines
20
21This command is available only in the **Debug** version.
22
23
24## Example
25
26Run **pmm**.
27
28
29## Output
30
31Usage of physical pages:
32
33```
34OHOS # pmm
35 phys_seg      base         size        free_pages
36 --------      -------      ----------  ---------
37 0x4065552c    0x809b0000   0x07550000      22344
38order = 0, free_count = 16
39order = 1, free_count = 12
40order = 2, free_count = 8
41order = 3, free_count = 6
42order = 4, free_count = 13
43order = 5, free_count = 16
44order = 6, free_count = 12
45order = 7, free_count = 4
46order = 8, free_count = 79
47active   anon   0
48inactive anon   0
49active   file   1385
50inactice file   84
51pmm pages: total = 30032, used = 7688, free = 22344
52pathCache number = 325
53pathCache memory size = 17621(B)
54Vnode number = 67
55Vnode memory size = 10720(B)
56```
57
58**Table 1** Output description
59
60| Parameter| Description|
61| -------- | -------- |
62| phys_seg | Address of the physical page control block.|
63| base | First physical page address, that is, start address of the physical page memory.|
64| size | Size of the physical page memory.|
65| free_pages | Number of free physical pages.|
66| active anon | Number of active anonymous pages in the page cache.|
67| inactive anon | Number of inactive anonymous pages in the page cache.|
68| active file | Number of active file pages in the page cache.|
69| inactive file | Number of inactive file pages in the page cache.|
70| pmm&nbsp;pages | **total** indicates the total number of physical pages. <br/>**used** indicates the number of used physical pages. <br/>**free** indicates the number of idle physical pages. |
71
72