on it road .com

说明

物理内存统计信息是从内存管理器的页框号 (PFN) 数据库表中收集的。

此命令需要很长时间才能运行,尤其是64 位系统上。在加载 PFN 数据库时,计数器会显示其进度。要加快加载速度,请使用CTRL+A(切换波特率)键增加 COM 端口速度,或者使用.cache(设置缓存大小)命令增加缓存大小(可能增加到 10 MB 左右)。

Windows WinDBG !memusage 命令

查看物理内存的使用情况

!memusage [Flags]

参数

Flags

可以是以下值之一。默认值为 0x0。

0x0
显示一般摘要信息,以及 PFN 数据库中页面的更详细描述。

0x1
仅显示有关 PFN 数据库中修改的无写入页面的摘要信息。

0x2
仅显示有关 PFN 数据库中修改的无写入页面的详细信息。

0x8
仅显示有关内存使用的一般摘要信息。

!memusage 示例

kd> !memusage
 loading PFN database
loading (98% complete)

Compiling memory usage data (100% Complete).
             Zeroed:     49 (   196 kb)
               Free:      5 (    20 kb)
            Standby:   5489 ( 21956 kb)
           Modified:    714 (  2856 kb)
    ModifiedNoWrite:      1 (     4 kb)
       Active/Valid:  10119 ( 40476 kb)
         Transition:      6 (    24 kb)
            Unknown:      0 (     0 kb)
              TOTAL:  16383 ( 65532 kb)

  Building kernel map
  Finished building kernel map
Scanning PFN database - (99% complete) 

  Usage Summary (in Kb):

Control Valid Standby Dirty Shared Locked PageTables  name

8251a258    12    108     0     0     0     0  mapped_file( cscui.dll )
827ab1b8     8   1708     0     0     0     0  mapped_file( $Mft )
8263c408   908     48     0     0     0     0  mapped_file( win32k.sys )
8252dda8     0    324     0     0     0     0  mapped_file( ShellIconCache )
8272f638   128    112     0   116     0     0  mapped_file( advapi32.dll )
......
82755958     0      4     0     0     0     0  mapped_file( $Directory )
8250b518     0      4     0     0     0     0    No Name for File
日期:2020-09-17 00:15:31 来源:oir作者:oir