show system virtual-memory
语法
show system virtual-memory
语法(EX 系列)
show system virtual-memory <all-members> <local> <member member-id>
语法(TX 矩阵路由器)
show system virtual-memory <all-chassis | all-lcc | lcc number | scc>
语法(TX Matrix Plus 路由器)
show system virtual-memory <all-chassis | all-lcc | lcc number | sfc number>
语法(MX 系列路由器)
show system virtual-memory <all-members> <local> <member member-id>
语法(QFX 系列)
show system virtual-memory <infrastructure name> <interconnect-device name> <node-group name>
语法(Junos OS 演化版)
show system virtual-memory <node node-name>
描述
显示首先按分配大小然后按使用类型列出的 Junos OS 内核内存使用情况。使用命令通过 show system virtual-memory
瞻博网络客户支持进行故障排除。
选项
none | 显示内核动态内存使用情况信息。 |
all-chassis | (仅限 TX Matrix 路由器和 TX Matrix Plus 路由器)(可选)显示所有机箱的内核动态内存使用信息。 |
all-lcc | (仅限 TX Matrix 路由器和 TX Matrix Plus 路由器)(可选)在 TX 矩阵路由器上,显示连接到 TX 矩阵路由器的所有 T640 路由器的内核动态内存使用情况信息。在 TX Matrix Plus 路由器上,显示所有连接的 T1600 或 T4000 LCC 的内核动态内存使用情况信息。 |
all-members | (仅限 EX4200 交换机和 MX 系列路由器)(可选)显示虚拟机箱配置的所有成员的内核动态内存使用情况信息。 |
infrastructure name | (仅限 QFabric 系统)(可选)显示结构控制路由引擎和结构管理器路由引擎的内核动态内存使用信息。 |
interconnect-device name | (仅限 QFabric 系统)(可选)显示互连设备的内核动态内存使用情况信息。 |
lcc number | (仅限 TX Matrix 路由器和 TX Matrix Plus 路由器)(可选)在 TX 矩阵路由器上,显示连接到 TX 矩阵路由器的特定 T640 路由器的内核动态内存使用情况信息。在 TX Matrix Plus 路由器上,显示连接到 TX Matrix Plus 路由器的特定路由器的内核动态内存使用情况信息。 根据 number LCC 配置替换为以下值:
|
local | (仅限 EX4200 交换机和 MX 系列路由器)(可选)显示本地虚拟机箱成员的内核动态内存使用情况信息。 |
member member-id | (仅限 EX4200 交换机和 MX 系列路由器)(可选)显示虚拟机箱配置的指定成员的内核动态内存使用情况信息。对于 EX4200 交换机,请替换为 |
node node-name |
(仅限 Junos OS 演化版)(可选)显示指定节点的内核内存信息。如果未指定节点,则显示所有节点的信息。 |
node-group name | (仅限 QFabric 系统)(可选)显示节点组的内核动态内存使用情况信息。 |
scc | (仅限 TX Matrix 路由器)(可选)显示 TX Matrix 路由器(或交换机卡机箱)的内核动态内存使用情况信息。 |
sfc number | (仅限 TX Matrix Plus 路由器)(可选)显示 TX Matrix Plus 路由器的内核动态内存使用情况信息。替换为 |
其他信息
默认情况下,在 TX Matrix 路由器或 TX Matrix Plus 路由器的主路由引擎上发出 show system virtual-memory
命令时,该命令将广播到路由矩阵中与其连接的 LCC 的所有主路由引擎。同样,如果在 TX Matrix 或 TX Matrix Plus 路由器的备份路由引擎上发出相同的命令,则该命令将广播到路由矩阵中与其连接的 LCC 的所有备份路由引擎。
带有管道选项的命令现在在show system virtual-memory
父标记中显示命令的 | display XML
XML 输出:<vmstat-memstat-malloc>
、 、 <vmstat-intr>
<vmstat-memstat-zone>
<vmstat-sumstat>
,并将<vmstat-kernel-state>
每个子元素作为单独的 XML 标记。在 Junos OS 10.1 及更早版本中,此命令的选项没有 XML API 元素,| display XML
整个输出显示在单个<output>
标记元素中。
kernel direct memory map
仅针对 64 位平台显示。
所需权限级别
视图
输出字段
表 1 列出了命令show system virtual-memory
的输出字段。输出字段按其出现的大致顺序列出。
字段名称 |
字段说明 |
---|---|
按存储桶大小划分的内存统计信息 | |
|
内存块大小(字节)。内核内存分配器会占用大小正好为 2 的幂的内存块。 |
|
正在使用的此大小的内存块数(字节)。 |
|
此大小的可用内存块数(字节)。 |
|
发出的内存分配请求数。 |
|
免费列表可以具有的最大值。一旦系统开始回收物理内存,它将继续,直到空闲列表增加到此值。 |
|
存储桶大小的可用元素超过该存储桶大小的高水位标记的总次数。 |
按存储桶大小划分的内存使用类型 | |
|
内存块大小(字节)。 |
|
使用这些内存块的内核模块。有关每种类型的定义, 请参考 FreeBSD 书籍。 |
按类型划分的内存统计信息 | |
|
使用动态内存的内核模块。 |
|
此类型使用的内存块数。该数字四舍五入。 |
|
正在使用的内存量(以千字节 (KB) 为单位)。 |
|
此类型使用的最大内存。 |
|
可以分配给此类型的最大内存。 |
|
此类型发出的动态内存分配请求总数。 |
|
阻止请求以达到最大限制的次数。 |
|
内核映射的请求被阻止的次数。 |
|
此类型使用的内存块大小。 |
内存总计 | |
|
正在使用的内核动态内存总量(字节数,向上舍入)。 |
|
可用内核动态内存总量(字节数,向上舍入)。 |
|
内存分配请求的总数。 |
|
正在使用内存的内核模块。 |
|
内存块大小(字节)。 |
|
可以分配给此类型的最大内存。 |
|
此类型使用的内存块数。该数字四舍五入。 |
|
此类型可用的内存块数。 |
|
此类型发出的内存分配请求总数。 |
|
计时器事件和计划中断。 |
|
每种类型的中断总数。 |
|
中断率。 |
|
所有中断的总计。 |
示例输出
显示系统虚拟内存
user@host> show system virtual-memory Memory statistics by bucket size Size In Use Free Requests HighWater Couldfree 16 906 118 154876 1280 0 32 455 313 209956 640 0 64 4412 260 75380 320 20 128 3200 32 19361 160 81 256 1510 10 8844 80 4 512 446 2 5085 40 0 1K 18 2 5901 20 0 2K 1128 2 4445 10 1368 4K 185 1 456 5 0 8K 5 1 2653 5 0 16K 181 0 233 5 0 32K 2 0 1848 5 0 64K 20 0 22 5 0 128K 5 0 5 5 0 256K 2 0 2 5 0 512K 1 0 1 5 0 Memory usage type by bucket size Size Type(s) 16 uc_devlist, nexusdev, iftable, temp, devbuf, atexit, COS, BPF, DEVFS mount, DEVFS node, vnodes, mount, pcb, soname, proc-args, kld, MD disk, rman, ATA generic, bus, sysctl, ippool, pfestat, ifstate, pfe_ipc, mkey, rtable, ifmaddr, ipfw, rnode 32 atkbddev, dirrem, mkdir, diradd, freefile, freefrag, indirdep, bmsafemap, newblk, temp, devbuf, COS, vnodes, cluster_save buffer, pcb, soname, proc-args, sigio, kld, Gzip trees, taskqueue, SWAP, eventhandler, bus, sysctl, uidinfo, subproc, pgrp, pfestat, itable32, ifstate, pfe_ipc, mkey, rtable, ifmaddr, ipfw, rnode, rtnexthop 64 isadev, iftable, MFS node, allocindir, allocdirect, pagedep, temp, devbuf, lockf, COS, NULLFS hash, DEVFS name, vnodes, cluster_save buffer, vfscache, pcb, soname, proc-args, file, AR driver, AD driver, Gzip trees, rman, eventhandler, bus, sysctl, subproc, pfestat, pic, ifstate, pfe_ipc, mkey, ifaddr, rtable, ipfw 128 ZONE, freeblks, inodedep, temp, devbuf, zombie, COS, DEVFS node, vnodes, mount, vfscache, pcb, soname, proc-args, ttys, dev_t, timecounter, kld, Gzip trees, ISOFS node, bus, uidinfo, cred, session, pic, itable16, ifstate, pfe_ipc, rtable, ifstat, metrics, rtnexthop, iffamily 256 iflogical, iftable, MFS node, FFS node, newblk, temp, devbuf, NFS daemon, vnodes, proc-args, kqueue, file desc, Gzip trees, bus, subproc, itable16, ifstate, pfe_ipc, sysctl, rtnexthop 512 UFS mount, temp, devbuf, mount, BIO buffer, ptys, ttys, AR driver, Gzip trees, ISOFS mount, msg, ioctlops, ATA generic, bus, proc, pfestat, lr, ifstate, pfe_ipc, rtable, ipfw, ifstat, rtnexthop 1K iftable, temp, devbuf, NQNFS Lease, kqueue, kld, AD driver, Gzip trees, sem, MD disk, bus, ifstate, pfe_ipc, ipfw 2K uc_devlist, UFS mount, temp, devbuf, BIO buffer, pcb, AR driver, Gzip trees, ioctlops, bus, ipfw, ifstat, rcache 4K memdesc, iftable, UFS mount, temp, devbuf, kld, Gzip trees, sem, msg 8K temp, devbuf, syncache, Gzip trees 16K indirdep, temp, devbuf, shm, msg 32K pagedep, kld, Gzip trees 64K VM pgdata, devbuf, MSDOSFS mount 128K UFS ihash, inodedep, NFS hash, kld, ISOFS mount 256K mbuf, vfscache 512K SWAP Memory statistics by type Type Kern Type InUse MemUse HighUse Limit Requests Limit Limit Size(s) isadev 13 1K 1K127753K 13 0 0 64 atkbddev 2 1K 1K127753K 2 0 0 32 uc_devlist 24 3K 3K127753K 24 0 0 16,2K nexusdev 3 1K 1K127753K 3 0 0 16 memdesc 1 4K 4K127753K 1 0 0 4K mbuf 1 152K 152K127753K 1 0 0 256K iflogical 6 2K 2K127753K 6 0 0 256 iftable 17 9K 9K127753K 18 0 0 16,64,256,1K,4K ZONE 15 2K 2K127753K 15 0 0 128 VM pgdata 1 64K 64K127753K 1 0 0 64K UFS mount 12 26K 26K127753K 12 0 0 512,2K,4K UFS ihash 1 128K 128K127753K 1 0 0 128K MFS node 6 2K 3K127753K 35 0 0 64,256 FFS node 906 227K 227K127753K 1352 0 0 256 dirrem 0 0K 4K127753K 500 0 0 32 mkdir 0 0K 1K127753K 38 0 0 32 diradd 0 0K 6K127753K 521 0 0 32 freefile 0 0K 4K127753K 374 0 0 32 freeblks 0 0K 8K127753K 219 0 0 128 freefrag 0 0K 1K127753K 193 0 0 32 allocindir 0 0K 25K127753K 1518 0 0 64 indirdep 0 0K 17K127753K 76 0 0 32,16K allocdirect 0 0K 10K127753K 760 0 0 64 bmsafemap 0 0K 1K127753K 72 0 0 32 newblk 1 1K 1K127753K 2279 0 0 32,256 inodedep 1 128K 175K127753K 2367 0 0 128,128K pagedep 1 32K 33K127753K 47 0 0 64,32K temp 1239 92K 96K127753K 8364 0 0 16,32,64K devbuf 1413 5527K 5527K127753K 1535 0 0 16,32,64,128,256 lockf 38 3K 3K127753K 2906 0 0 64 atexit 1 1K 1K127753K 1 0 0 16 zombie 0 0K 2K127753K 3850 0 0 128 NFS hash 1 128K 128K127753K 1 0 0 128K NQNFS Lease 1 1K 1K127753K 1 0 0 1K NFS daemon 1 1K 1K127753K 1 0 0 256 syncache 1 8K 8K127753K 1 0 0 8K COS 353 44K 44K127753K 353 0 0 16,32,64,128 BPF 189 3K 3K127753K 189 0 0 16 MSDOSFS mount 1 64K 64K127753K 1 0 0 64K NULLFS hash 1 1K 1K127753K 1 0 0 64 DEVFS mount 2 1K 1K127753K 2 0 0 16 DEVFS name 487 31K 31K127753K 487 0 0 64 DEVFS node 471 58K 58K127753K 479 0 0 16,128 vnodes 28 7K 7K127753K 429 0 0 16,32,64,128,256 mount 15 8K 8K127753K 18 0 0 16,128,512 cluster_save buffer 0 0K 1K127753K 55 0 0 32,64 vfscache 1898 376K 376K127753K 3228 0 0 64,128,256K BIO buffer 49 98K 398K127753K 495 0 0 512,2K pcb 159 16K 17K127753K 399 0 0 16,32,64,128,2K soname 82 10K 10K127753K 42847 0 0 16,32,64,128 proc-args 57 2K 3K127753K 2105 0 0 16,32,64,128,256 ptys 32 16K 16K127753K 32 0 0 512 ttys 254 33K 33K127753K 522 0 0 128,512 kqueue 5 3K 4K127753K 23 0 0 256,1K sigio 1 1K 1K127753K 27 0 0 32 file 383 24K 24K127753K 16060 0 0 64 file desc 76 19K 20K127753K 3968 0 0 256 shm 1 12K 12K127753K 1 0 0 16K dev_t 286 36K 36K127753K 286 0 0 128 timecounter 10 2K 2K127753K 10 0 0 128 kld 11 117K 122K127753K 34 0 0 16,32,128,1K,4K AR driver 1 1K 3K127753K 5 0 0 64,512,2K AD driver 2 2K 3K127753K 2755 0 0 64,1K Gzip trees 0 0K 46K127753K 133848 0 0 32,64,128,256 ISOFS node 1136 142K 142K127753K 1189 0 0 128 ISOFS mount 9 132K 132K127753K 10 0 0 512,128K sem 3 6K 6K127753K 3 0 0 1K,4K MD disk 2 2K 2K127753K 2 0 0 16,1K msg 4 25K 25K127753K 4 0 0 512,4K,16K rman 59 4K 4K127753K 461 0 0 16,64 ioctlops 0 0K 2K127753K 992 0 0 512,2K taskqueue 2 1K 1K127753K 2 0 0 32 SWAP 2 413K 413K127753K 2 0 0 32,512K ATA generic 6 3K 3K127753K 6 0 0 16,512 eventhandler 17 1K 1K127753K 17 0 0 32,64 bus 340 30K 31K127753K 794 0 0 16,32,64,128,256 sysctl 0 0K 1K127753K 130262 0 0 16,32,64 uidinfo 4 1K 1K127753K 10 0 0 32,128 cred 22 3K 3K127753K 3450 0 0 128 subproc 156 10K 10K127753K 7882 0 0 32,64,256 proc 2 1K 1K127753K 2 0 0 512 session 12 2K 2K127753K 34 0 0 128 pgrp 16 1K 1K127753K 45 0 0 32 ippool 1 1K 1K127753K 1 0 0 16 pfestat 0 0K 1K127753K 47349 0 0 16,32,64,512 pic 5 1K 1K127753K 5 0 0 64,128 lr 1 1K 1K127753K 1 0 0 512 itable32 110 4K 4K127753K 110 0 0 32 itable16 161 26K 26K127753K 161 0 0 128,256 ifstate 694 159K 160K127753K 1735 0 0 16,32,64,128,1K pfe_ipc 0 0K 1K127753K 56218 0 0 16,32,64,128,1K mkey 250 4K 4K127753K 824 0 0 16,32,64 ifaddr 9 1K 1K127753K 9 0 0 64 sysctl 0 0K 1K127753K 30 0 0 256 rtable 49 6K 6K127753K 307 0 0 16,32,64,128,512 ifmaddr 22 1K 1K127753K 22 0 0 16,32 ipfw 23 10K 10K127753K 48 0 0 16,32,64,512,2K ifstat 698 805K 805K127753K 698 0 0 128,512,2K rcache 4 8K 8K127753K 4 0 0 2K rnode 27 1K 1K127753K 285 0 0 16,32 metrics 1 1K 1K127753K 3 0 0 128 rtnexthop 57 9K 9K127753K 312 0 0 32,128,256,512 iffamily 12 2K 2K127753K 12 0 0 128 Memory Totals: In Use Free Requests 9311K 54K 489068 ITEM SIZE LIMIT USED FREE REQUESTS PIPE: 192, 0, 4, 81, 4422 SWAPMETA: 160, 95814, 0, 0, 0 unpcb: 160, 0, 114, 36, 279 ripcb: 192, 25330, 5, 37, 5 syncache: 128, 15359, 0, 64, 5 tcpcb: 576, 25330, 23, 12, 32 udpcb: 192, 25330, 14, 28, 255 socket: 256, 25330, 246, 26, 819 KNOTE: 96, 0, 27, 57, 71 NFSNODE: 352, 0, 0, 0, 0 NFSMOUNT: 544, 0, 0, 0, 0 VNODE: 224, 0, 2778, 43, 2778 NAMEI: 1024, 0, 0, 8, 40725 VMSPACE: 192, 0, 57, 71, 3906 PROC: 448, 0, 73, 17, 3923 DP fakepg: 64, 0, 0, 0, 0 PV ENTRY: 28, 499566, 44530, 152053, 1525141 MAP ENTRY: 48, 0, 1439, 134, 351075 KMAP ENTRY: 48, 35645, 179, 119, 10904 MAP: 108, 0, 7, 3, 7 VM OBJECT: 92, 0, 2575, 109, 66912 792644 cpu context switches 9863474 device interrupts 286510 software interrupts 390851 traps 3596829 system calls 16 kernel threads created 3880 fork() calls 27 vfork() calls 0 rfork() calls 0 swap pager pageins 0 swap pager pages paged in 0 swap pager pageouts 0 swap pager pages paged out 380 vnode pager pageins 395 vnode pager pages paged in 122 vnode pager pageouts 1476 vnode pager pages paged out 0 page daemon wakeups 0 pages examined by the page daemon 101 pages reactivated 161722 copy-on-write faults 0 copy-on-write optimized faults 84623 zero fill pages zeroed 83063 zero fill pages prezeroed 7 intransit blocking page faults 535606 total VM faults taken 0 pages affected by kernel thread creation 238254 pages affected by fork() 2535 pages affected by vfork() 0 pages affected by rfork() 283379 pages freed 0 pages freed by daemon 190091 pages freed by exiting processes 17458 pages active 29166 pages inactive 0 pages in VM cache 10395 pages wired down 134610 pages free 4096 bytes per page 183419 total name lookups cache hits (90% pos + 7% neg) system 0% per-directory deletions 0%, falsehits 0%, toolong 0% interrupt total rate ata0 irq14 113338 3 mux irq7 727643 21 fxp1 irq10 1178671 34 sio0 irq4 833 0 clk irq0 3439769 99 rtc irq8 4403221 127 Total 9863475 286 Kernel direct memory map: 4423 pages used 4057340 pages maximum
发布信息
在 Junos OS 7.4 版之前引入的命令。
sfc
为 Junos OS 9.6 版中的 TX Matrix Plus 路由器引入了选项。
node
Junos OS 演化版 18.3R1 中引入的选项。