使用 RTX64 MSpaces 查看所有 RTSS 进程(可选内部系统进程和代理进程)的本地内存分配空间(memory allocation spaces)(MSpaces)。对于每个进程的 MSpace,该工具显示整个 MSpace,或者单独显示 MSpace 的本地池和池缓存内的摘要和碎片信息。详细信息,参阅本地内存中的空间分配(Allocation Spaces in Local Memory)。内存范围可以按范围起始地址升序排序。
查看 RTSS 进程 MSPACE 信息:
在 RTX64 安装目录(%INSTALL DIR%\IntervalZero\RTX64\bin)中启动命令提示符工具,并输入:
rtssrun RTX64Mspaces.rtss [/all] [/m] [/p] [/sort] [/help]
参数
参数 | 描述 |
---|---|
无 | 显示所有 RTSS 进程的 MSpace 摘要信息 |
/a 或 /all | 显示所有 RTSS 进程的 MSpace 摘要信息,包括内部系统进程和代理进程 |
/m | 显示 MSpace 摘要信息以 及MSpace 内的内存碎片 |
/p | 显示分为本地池和池缓存的 MSpace 摘要信息以及内存碎片 |
/s 或 /sort | 显示按起始地址范围升序排序的碎片(与 /m 或 /p 结合使用) |
结果
结果 | 含义 |
---|---|
MSpace minimum threshold | MSpace 的最小大小(字节) |
Commit memory at startup | 使用 RtssRun 和 /i initial_size 参数启动进程时,将非分页内存从 Windows 分配到 MSpace 的本地池中 |
Auto expand size | 最小 MSpace 扩展大小(字节) |
Auto expand MSpace | MSpace 耗尽时自动扩展 |
Auto shrink MSpace | 当内存分配组件修剪池缓存,或释放直接从本地池分配的内存时,自动收缩 MSpace |
MSpace peak usage | MSpace 内统计的最大内存大小。发生修剪时,该值会大于当前使用情况 注意:可以用来确定禁用自动扩展的最佳 MSpace 大小。 |
Current usage | MSpace 内的当前内存大小(字节) |
OS memory obtained | 分配给 MSpace 的 Windows 非分页内存(字节) |
Total memory in MSpace | MSpace 内的总内存(已用和空闲)(字节) |
Free MSpace | MSpace 中用户可用的内存量(字节) |
Used MSpace | MSpace 中已使用的内存量(字节) |
Largest free block | MSpace 内的最大虚拟连续可用内存(字节) |
Free local pool | 本地池中的可用内存量(字节) |
Used local pool | 本地池中已使用的内存量(字节) |
Free pool cache | 池缓存中的可用内存量(字节) |
Used pool cache | 池缓存中已使用的内存量(字节) |
Pool cache free blocks | 池缓存中的空闲块数 |
Top free block size | 池缓存中空闲块的大小,如果块大小大于请求大小(字节),将从中分配下一个内存 |
Start address | 内存范围的起始地址 |
End address | 内存范围上方的下一个地址。该地址不在范围内 |
碎片信息类型
结果 | 含义 |
---|---|
OS block | 分配给 MSpace 的 Windows 非分页内存范围 |
Free (Local Pool) | 本地池中可用内存范围 |
Free (Pool Cache) | 池缓存内可用内存范围 |
Free (Pool Cache top) | 池缓存中的顶部空闲块范围,如果块大小大于请求大小(字节),则从该范围分配下一个内存 |
Used | 已使用的内存范围 |
Chunk page | 本地池使用的块页(字节)范围 |
本地池碎片信息类型
结果 | 含义 |
---|---|
OS block | 分配给本地池的 Windows 非分页内存范围 |
Free | 本地池中可用内存范围 |
Used (Pool Cache) | 池缓存内可用内存范围 |
Used (Application) | 应用程序直接分配的已用内存范围 |
Chunk page | 本地池使用的块页(字节)范围 |
池缓存碎片信息类型
结果 | 含义 |
---|---|
Free | 池缓存内可用内存范围 |
Free (at top) | 池缓存中的顶部空闲块范围,如果块大小大于请求大小(字节),则从该范围分配下一个内存 |
Used | 池缓存内已用内存范围 |
输出示例:
输出示例使用以下命令生成:
Rtssrun RTX64MSpaces /m /sort
========== RTX64MSpaces – 4.5.0 =========
Process (0x000003e9) 0xffffa38c400e0010 App1.rtss
=== External MSpace Summary Information ===
MSpace minimum threshold: 0x00000000ffffe000 Commit memory at startup: True
Auto expand size: 0x00000000ffffe000 Auto expand MSpace: True
Auto shrink MSpace: True
MSpace peak usage: 0x00000000fde90000 Current usage: 0x0000000000210000
OS memory obtained: 0x00000001007feff8 Total memory in MSpace: 0x00000000ffffdfc0
Free MSpace: 0x00000000ffff9d80 Used MSpace: 0x0000000000004240
Largest free block: 0x00000000e6bc9000
Free local pool: 0x00000000ffdedba0 Used local pool: 0x0000000000210420
Free pool cache: 0x000000000020c1e0 Used pool cache: 0x0000000000003e00
Pool cache free blocks: 0x0000000000000003 Top free block size: 0x00000000001fffb0
--- Fragmentation Information ---
Start address End address Size (bytes) Type
0xffffa38a37001000 0xffffa38b36fff000 0xffffe000 OS block
0xffffa38a37001000 0xffffa38b1dbca000 0xe6bc9000 Free (Local Pool)
0xffffa38b1dbca000 0xffffa38b1ddca000 0x00200000 Free (Pool Cache top)
0xffffa38b1ddca000 0xffffa38b36fee000 0x19224000 Free (Local Pool)
0xffffa38b36fee000 0xffffa38b36fef000 0x00001000 Chunk Page (free: 0xba0, used: 0x420)
0xffffa38b36fef000 0xffffa38b36fef3e0 0x000003e0 Used
0xffffa38b36fef3e0 0xffffa38b36ff03f0 0x00001010 Used
0xffffa38b36ff03f0 0xffffa38b36ff0410 0x00000020 Used
0xffffa38b36ff0410 0xffffa38b36ff0520 0x00000110 Used
0xffffa38b36ff0520 0xffffa38b36ff0560 0x00000040 Used
0xffffa38b36ff0560 0xffffa38b36ff0d70 0x00000810 Used
0xffffa38b36ff0d70 0xffffa38b36ff0d90 0x00000020 Free (Pool Cache)
0xffffa38b36ff0d90 0xffffa38b36ff0db0 0x00000020 Used
0xffffa38b36ff0db0 0xffffa38b36ff0dd0 0x00000020 Used
0xffffa38b36ff0dd0 0xffffa38b36ff1de0 0x00001010 Used
0xffffa38b36ff1de0 0xffffa38b36ff2df0 0x00001010 Used
0xffffa38b36ff2df0 0xffffa38b36ffefb0 0x0000c1c0 Free (Pool Cache)
0xffffa38b36ffefb0 0xffffa38b36ffefe0 0x00000030 Used
=== Internal MSpace Summary Information ===
MSpace minimum threshold: 0x0000000000100000 Commit memory at startup: False
Auto expand size: 0x00000000ffffe000 Auto expand MSpace: True
Auto shrink MSpace: True
MSpace peak usage: 0x0000000000010000 Current usage: 0x0000000000010000
OS memory obtained: 0x0000000000101000 Total memory in MSpace: 0x00000000000fffc0
Free MSpace: 0x00000000000f7830 Used MSpace: 0x0000000000008790
Largest free block: 0x00000000000ef000
Free local pool: 0x00000000000effa0 Used local pool: 0x0000000000010020
Free pool cache: 0x0000000000007890 Used pool cache: 0x0000000000008770
Pool cache free blocks: 0x0000000000000001 Top free block size: 0x0000000000007840
--- Fragmentations Information ---
Start address End address Size (bytes) Type
0xffffa38c40231000 0xffffa38c40331000 0x00100000 OS block
0xffffa38c40231000 0xffffa38c40320000 0x000ef000 Free (Local Pool)
0xffffa38c40320000 0xffffa38c40321000 0x00001000 Chunk Page (free: 0xfa0, used: 0x20)
0xffffa38c40321000 0xffffa38c40321020 0x00000020 Used
0xffffa38c40321020 0xffffa38c40321040 0x00000020 Used
0xffffa38c40321040 0xffffa38c40321060 0x00000020 Used
0xffffa38c40321060 0xffffa38c40321080 0x00000020 Used
0xffffa38c40321080 0xffffa38c40321100 0x00000080 Used
0xffffa38c40321100 0xffffa38c40321150 0x00000050 Used
0xffffa38c40321150 0xffffa38c40329160 0x00008010 Used
0xffffa38c40329160 0xffffa38c40329490 0x00000330 Used
0xffffa38c40329490 0xffffa38c40329560 0x000000d0 Used
0xffffa38c40329560 0xffffa38c40329770 0x00000210 Used
0xffffa38c40329770 0xffffa38c40331000 0x00007890 Free (Pool Cache top)
Process (0x000003eb) 0xffffa38c40080010 App2.rtss
=== External MSpace Summary Information ===
MSpace minimum threshold: 0x0000000000100000 Commit memory at startup: False
Auto expand size: 0x0000000000100000 Auto expand MSpace: True
Auto shrink MSpace: True
MSpace peak usage: 0x00000000fde90000 Current usage: 0x0000000000100000
OS memory obtained: 0x0000000000303000 Total memory in MSpace: 0x00000000002fff80
Free MSpace: 0x00000000002fc050 Used MSpace: 0x0000000000003f30
Largest free block: 0x00000000000f6000
Free local pool: 0x00000000001ffec0 Used local pool: 0x00000000001000c0
Free pool cache: 0x00000000000fc190 Used pool cache: 0x0000000000003e30
Pool cache free blocks: 0x0000000000000004 Top free block size: 0x000000000002ffb0
--- Fragmentation Information ---
Start address End address Size (bytes) Type
0xffffa38c05011000 0xffffa38c05111000 0x00100000 OS block
0xffffa38c05011000 0xffffa38c0501a000 0x00009000 Free (Local Pool)
0xffffa38c0501a000 0xffffa38c0501b000 0x00001000 Chunk Page (free: 0xfa0, used: 0x20)
0xffffa38c0501b000 0xffffa38c05111000 0x000f6000 Free (Local Pool)
0xffffa38c13891000 0xffffa38c13991000 0x00100000 OS block
0xffffa38c13891000 0xffffa38c13961000 0x000d0000 Free (Local Pool)
0xffffa38c13961000 0xffffa38c13991000 0x00030000 Free (Pool Cache top)
0xffffa38c40451000 0xffffa38c40551000 0x00100000 OS block
0xffffa38c40451000 0xffffa38c40480000 0x0002f000 Free (Local Pool)
0xffffa38c40480000 0xffffa38c4053ffb0 0x000bffb0 Free (Pool Cache)
0xffffa38c4053ffb0 0xffffa38c4053ffe0 0x00000030 Used
0xffffa38c40540000 0xffffa38c40541000 0x00001000 Chunk Page (free: 0xf20, used: 0xa0)
0xffffa38c40541000 0xffffa38c405413e0 0x000003e0 Used
0xffffa38c405413e0 0xffffa38c405423f0 0x00001010 Used
0xffffa38c405423f0 0xffffa38c40542410 0x00000020 Used
0xffffa38c40542410 0xffffa38c40542520 0x00000110 Used
0xffffa38c40542520 0xffffa38c40542560 0x00000040 Used
0xffffa38c40542560 0xffffa38c40542d70 0x00000810 Used
0xffffa38c40542d70 0xffffa38c40542d90 0x00000020 Free (Pool Cache)
0xffffa38c40542d90 0xffffa38c40542db0 0x00000020 Used
0xffffa38c40542db0 0xffffa38c40542dd0 0x00000020 Used
0xffffa38c40542dd0 0xffffa38c40543de0 0x00001010 Used
0xffffa38c40543de0 0xffffa38c40544df0 0x00001010 Used
0xffffa38c40544df0 0xffffa38c40550fb0 0x0000c1c0 Free (Pool Cache)
0xffffa38c40550fb0 0xffffa38c40550fe0 0x00000030 Used
=== Internal MSpace Summary Information ===
MSpace minimum threshold: 0x0000000000100000 Commit memory at startup: False
Auto expand size: 0x0000000000100000 Auto expand MSpace: True
Auto shrink MSpace: True
MSpace peak usage: 0x0000000000010000 Current usage: 0x0000000000010000
OS memory obtained: 0x0000000000101000 Total memory in MSpace: 0x00000000000fffc0
Free MSpace: 0x00000000000f7830 Used MSpace: 0x0000000000008790
Largest free block: 0x00000000000ef000
Free local pool: 0x00000000000effa0 Used local pool: 0x0000000000010020
Free pool cache: 0x0000000000007890 Used pool cache: 0x0000000000008770
Pool cache free blocks: 0x0000000000000001 Top free block size: 0x0000000000007840
--- Fragmentations Information ---
Start address End address Size (bytes) Type
0xffffa38c40341000 0xffffa38c40441000 0x00100000 OS block
0xffffa38c40341000 0xffffa38c40430000 0x000ef000 Free (Local Pool)
0xffffa38c40430000 0xffffa38c40431000 0x00001000 Chunk Page (free: 0xfa0, used: 0x20)
0xffffa38c40431000 0xffffa38c40431020 0x00000020 Used
0xffffa38c40431020 0xffffa38c40431040 0x00000020 Used
0xffffa38c40431040 0xffffa38c40431060 0x00000020 Used
0xffffa38c40431060 0xffffa38c40431080 0x00000020 Used
0xffffa38c40431080 0xffffa38c40431100 0x00000080 Used
0xffffa38c40431100 0xffffa38c40431150 0x00000050 Used
0xffffa38c40431150 0xffffa38c40439160 0x00008010 Used
0xffffa38c40439160 0xffffa38c40439490 0x00000330 Used
0xffffa38c40439490 0xffffa38c40439560 0x000000d0 Used
0xffffa38c40439560 0xffffa38c40439770 0x00000210 Used
0xffffa38c40439770 0xffffa38c40441000 0x00007890 Free (Pool Cache top)
============== End RTX64MSpaces ==============