openharmony 鸿蒙 kernel-small-debug-shell-cmd-pmm

2022-08-09 浏览 (761)

pmm

Command Function

This command is used to check the usage of the physical pages of the system memory and the page cache.

Syntax

pmm

Parameters

None.

Usage Guidelines

This command is available only in the Debug version.

Example

Run pmm.

Output

Usage of physical pages:

OHOS # pmm
 phys_seg      base         size        free_pages
 --------      -------      ----------  ---------
 0x4065552c    0x809b0000   0x07550000      22344
order = 0, free_count = 16
order = 1, free_count = 12
order = 2, free_count = 8
order = 3, free_count = 6
order = 4, free_count = 13
order = 5, free_count = 16
order = 6, free_count = 12
order = 7, free_count = 4
order = 8, free_count = 79
active   anon   0
inactive anon   0
active   file   1385
inactice file   84
pmm pages: total = 30032, used = 7688, free = 22344
pathCache number = 325
pathCache memory size = 17621(B)
Vnode number = 67
Vnode memory size = 10720(B)

Table 1 Output description

ParameterDescription
phys_segAddress of the physical page control block.
baseFirst physical page address, that is, start address of the physical page memory.
sizeSize of the physical page memory.
free_pagesNumber of free physical pages.
active anonNumber of active anonymous pages in the page cache.
inactive anonNumber of inactive anonymous pages in the page cache.
active fileNumber of active file pages in the page cache.
inactive fileNumber of inactive file pages in the page cache.
pmm pagestotal indicates the total number of physical pages.
used indicates the number of used physical pages.
free indicates the number of idle physical pages.

你可能感兴趣的鸿蒙文章

harmony 鸿蒙Kernel

harmony 鸿蒙Kernel Coding Specification

harmony 鸿蒙Standard Libraries

harmony 鸿蒙Interrupt Management

harmony 鸿蒙Event

harmony 鸿蒙Mutex

harmony 鸿蒙Queue

harmony 鸿蒙Semaphore

harmony 鸿蒙Doubly Linked List

harmony 鸿蒙Memory Management

  • 所属分类: 后端技术
  • 本文标签: 软件 鸿蒙
  • 版权声明: 本文链接 https://seaxiang.com/blog/8c838bc86ccd472bac16ffea10aa8121