show system buffers
语法
show system buffers
语法(EX 系列)
show system buffers <all-members> <local> <member member-id>
语法(TX 矩阵路由器)
show system buffers <all-chassis | all-lcc | lcc number | scc>
语法(TX Matrix Plus 路由器)
show system buffers <all-chassis | all-lcc | lcc number | sfc number>
语法(MX 系列路由器)
show system buffers <all-members> <local> <member member-id>
语法(QFX 系列)
show system buffers <infrastructure name | interconnect-device name | node-group name | root-only (infrastructure name | interconnect-device name | node-group name)>
描述
显示有关路由引擎用于本地流量的缓冲池的信息。本地流量是路由器或交换机内的路由引擎和数据包转发引擎之间交换的路由和管理流量,以及来自 IP 的路由和管理流量(即来自 OSPF、BGP、SNMP、PING 操作等)。
选项
none | 显示所有缓冲区统计信息。 |
all-lcc | (仅限 TX Matrix 路由器和 TX Matrix Plus 路由器)(可选)在 TX 矩阵路由器上,显示连接到 TX 矩阵路由器的所有 T640 路由器的缓冲区统计信息。在 TX Matrix Plus 路由器上,显示连接到 TX Matrix Plus 路由器的所有路由器的缓冲区统计信息。 |
all-chassis | (仅限 TX Matrix 路由器和 TX Matrix Plus 路由器)(可选)显示所有机箱的缓冲区统计信息。 |
all-members | (仅限 EX4200 交换机和 MX 系列路由器)(可选)显示虚拟机箱配置的所有成员的缓冲区统计信息。 |
infrastructure name | (仅限 QFabric 系统)(可选)显示结构控制路由引擎或结构控制路由引擎的缓冲区统计信息。 |
interconnect-device name | (仅限 QFabric 系统)(可选)显示互连设备的缓冲区统计信息。 |
lcc number | (仅限 TX Matrix 路由器和 TX Matrix Plus 路由器)(可选)在 TX Matrix 路由器上,显示连接到 TX Matrix 路由器的特定 T640 路由器(或线卡机箱)的缓冲区统计信息。在 TX Matrix Plus 路由器上,显示连接到 TX Matrix Plus 路由器的特定路由器(线卡机箱)的缓冲区统计信息。 根据 number LCC 配置替换为以下值:
|
local | (仅限 EX4200 交换机和 MX 系列路由器)(可选)显示本地虚拟机箱成员的缓冲区统计信息。 |
member member-id | (仅限 EX4200 交换机和 MX 系列路由器)(可选)显示虚拟机箱配置的指定成员的缓冲区统计信息。对于 EX4200 交换机,请替换为 member-id 0 到 9 之间的值。对于 MX 系列虚拟机箱,请替换为 member-id 值 0 或 1。 |
node-group name | (仅限 QFabric 系统)(可选)显示节点组的缓冲区统计信息 |
sfc | (仅限 TX Matrix Plus 路由器)(可选)显示 TX Matrix Plus 路由器的缓冲区统计信息。替换为 number 0。 |
其他信息
默认情况下,在 TX Matrix 路由器或 TX Matrix Plus 路由器的主路由引擎上发出 show system buffers
命令时,该命令将广播到路由矩阵中与其连接的 LCC 的所有主路由引擎。同样,如果在 TX Matrix 或 TX Matrix Plus 路由器的备份路由引擎上发出相同的命令,则该命令将广播到路由矩阵中与其连接的 LCC 的所有备份路由引擎。
一种称为 的特殊 cluster 类型的内存缓冲区大小为 2 KB。有关更多信息,请参阅 McKusic、Bostic、Karel 和 Quarterman 撰写 的 4.4BSD 操作系统的设计和实现 。
所需权限级别
视图
输出字段
表 1 介绍了该 show system buffers
命令的输出字段。输出字段按其出现的大致顺序列出。
字段名称 |
字段说明 |
---|---|
使用中的 MBUF |
内存缓冲区 (mbuf) 是 128 字节缓冲区,用于内核内的各种目的。每个内存缓冲区都有一个类型,输出逐项列出为每种类型分配的数量。不显示未分配内存缓冲区的类型。 |
分配给数据包标头的 MBUF |
当前保存数据包标头的内存缓冲区数 |
分配给控制块的 MBUF |
当前保存套接字状态的内存缓冲区数。 |
分配用于发送数据的 MBUF |
当前保存套接字发送数据的内存缓冲区数。 |
分配给 PFE 重填数据的 MBUF |
当前保存数据包转发引擎重填数据的内存缓冲区数。 |
分配给 FXP 数据的 MBUF |
当前保存 fxp 数据的内存缓冲区数。 |
分配给套接字名称和地址的 MBUF |
当前保存套接字地址的内存缓冲区数。 |
正在使用的 MBUF 群集 |
内存缓冲区群集的分配统计信息。 |
分配给网络 |
网络和进程间通信 (IPC) 代码使用的内存总量。 |
内存请求被拒绝 |
IPC 和网络代码中的内存分配请求失败的次数。 |
内存请求延迟 |
IPC 和网络代码中的内存分配请求被推迟的次数。 |
对协议排出例程的调用 |
IPC 中的内存分配请求和网络代码触发内存回收尝试的次数。 |
示例输出
- 显示系统缓冲区
- 显示系统缓冲区 SCC(TX 矩阵路由器)
- show system buffers sfc(TX Matrix Plus 路由器)
- show system buffers all-chassis (TX Matrix Plus 路由器)
- show system buffers node-group(QFabric System)
显示系统缓冲区
user@host> show system buffers 397/893/1290 mbufs in use (current/cache/total) 395/331/726/30000 mbuf clusters in use (current/cache/total/max) 384/256 mbuf+clusters out of packet secondary zone in use (current/cache) 0/0/0/0 4k (page size) jumbo clusters in use (current/cache/total/max) 0/0/0/0 9k jumbo clusters in use (current/cache/total/max) 0/0/0/0 16k jumbo clusters in use (current/cache/total/max) 889K/885K/1774K bytes allocated to network (current/cache/total) 0/0/0 requests for mbufs denied (mbufs/clusters/mbuf+clusters) 0/0/0 requests for jumbo clusters denied (4k/9k/16k) 0/5/1024 sfbufs in use (current/peak/max) 0 requests for sfbufs denied 0 requests for sfbufs delayed 0 requests for I/O initiated by sendfile 0 calls to protocol drain routines
显示系统缓冲区 SCC(TX 矩阵路由器)
user@host> show system buffers scc 213 mbufs in use: 11 mbufs allocated to packet headers 26 mbufs allocated to socket names and addresses 2 mbufs allocated to socket options 17 mbufs allocated to socket send data 2 mbufs allocated to pfe data 155 mbufs allocated to fxp data (rx) 511 mbufs allocated to <mbuf type 86> 256 mbufs allocated to <mbuf type 92> 924/1162 mbuf clusters in use 2788 Kbytes allocated to network (75% in use) 0 requests for memory denied 0 requests for memory delayed 0 calls to protocol drain routines
show system buffers sfc(TX Matrix Plus 路由器)
user@host> show system buffers sfc 0 sfc0-re0: -------------------------------------------------------------------------- 4363/2807/7170 mbufs in use (current/cache/total) 4358/1968/6326/30000 mbuf clusters in use (current/cache/total/max) 256/128 mbuf+clusters out of packet secondary zone in use (current/cache) 0/0/0/0 4k (page size) jumbo clusters in use (current/cache/total/max) 0/0/0/0 9k jumbo clusters in use (current/cache/total/max) 0/0/0/0 16k jumbo clusters in use (current/cache/total/max) 9806K/4637K/14444K bytes allocated to network (current/cache/total) 0/0/0 requests for mbufs denied (mbufs/clusters/mbuf+clusters) 0/0/0 requests for jumbo clusters denied (4k/9k/16k) 0/10/1024 sfbufs in use (current/peak/max) 0 requests for sfbufs denied 0 requests for sfbufs delayed 0 requests for I/O initiated by sendfile 0 calls to protocol drain routines
show system buffers all-chassis (TX Matrix Plus 路由器)
user@host> show system buffers all-chassis sfc0-re0: -------------------------------------------------------------------------- 4363/2807/7170 mbufs in use (current/cache/total) 4358/1968/6326/30000 mbuf clusters in use (current/cache/total/max) 256/128 mbuf+clusters out of packet secondary zone in use (current/cache) 0/0/0/0 4k (page size) jumbo clusters in use (current/cache/total/max) 0/0/0/0 9k jumbo clusters in use (current/cache/total/max) 0/0/0/0 16k jumbo clusters in use (current/cache/total/max) 9806K/4637K/14444K bytes allocated to network (current/cache/total) 0/0/0 requests for mbufs denied (mbufs/clusters/mbuf+clusters) 0/0/0 requests for jumbo clusters denied (4k/9k/16k) 0/10/1024 sfbufs in use (current/peak/max) 0 requests for sfbufs denied 0 requests for sfbufs delayed 0 requests for I/O initiated by sendfile 0 calls to protocol drain routines lcc0-re0: -------------------------------------------------------------------------- 772/2558/3330 mbufs in use (current/cache/total) 772/598/1370/30000 mbuf clusters in use (current/cache/total/max) 768/512 mbuf+clusters out of packet secondary zone in use (current/cache) 0/0/0/0 4k (page size) jumbo clusters in use (current/cache/total/max) 0/0/0/0 9k jumbo clusters in use (current/cache/total/max) 0/0/0/0 16k jumbo clusters in use (current/cache/total/max) 1737K/1835K/3572K bytes allocated to network (current/cache/total) 0/0/0 requests for mbufs denied (mbufs/clusters/mbuf+clusters) 0/0/0 requests for jumbo clusters denied (4k/9k/16k) 0/4/1024 sfbufs in use (current/peak/max) 0 requests for sfbufs denied 0 requests for sfbufs delayed 0 requests for I/O initiated by sendfile 0 calls to protocol drain routines lcc1-re0: -------------------------------------------------------------------------- 773/2437/3210 mbufs in use (current/cache/total) 773/453/1226/30000 mbuf clusters in use (current/cache/total/max) 768/384 mbuf+clusters out of packet secondary zone in use (current/cache) 0/0/0/0 4k (page size) jumbo clusters in use (current/cache/total/max) 0/0/0/0 9k jumbo clusters in use (current/cache/total/max) 0/0/0/0 16k jumbo clusters in use (current/cache/total/max) 1739K/1515K/3254K bytes allocated to network (current/cache/total) 0/0/0 requests for mbufs denied (mbufs/clusters/mbuf+clusters) 0/0/0 requests for jumbo clusters denied (4k/9k/16k) 0/7/1024 sfbufs in use (current/peak/max) 0 requests for sfbufs denied 0 requests for sfbufs delayed 0 requests for I/O initiated by sendfile 0 calls to protocol drain routines lcc2-re0: -------------------------------------------------------------------------- 816/2514/3330 mbufs in use (current/cache/total) 816/554/1370/30000 mbuf clusters in use (current/cache/total/max) 768/512 mbuf+clusters out of packet secondary zone in use (current/cache) 0/0/0/0 4k (page size) jumbo clusters in use (current/cache/total/max) 0/0/0/0 9k jumbo clusters in use (current/cache/total/max) 0/0/0/0 16k jumbo clusters in use (current/cache/total/max) 1836K/1736K/3572K bytes allocated to network (current/cache/total) 0/0/0 requests for mbufs denied (mbufs/clusters/mbuf+clusters) 0/0/0 requests for jumbo clusters denied (4k/9k/16k) 0/4/1024 sfbufs in use (current/peak/max) 0 requests for sfbufs denied 0 requests for sfbufs delayed 0 requests for I/O initiated by sendfile
show system buffers node-group(QFabric System)
user@switch> show system buffers node-group node1 node-group node1: -------------------------------------------------------------------------- 2/2698/2700 mbufs in use (current/cache/total) 2/1520/1522/30000 mbuf clusters in use (current/cache/total/max) 0/1280 mbuf+clusters out of packet secondary zone in use (current/cache) 0/0/0/0 4k (page size) jumbo clusters in use (current/cache/total/max) 0/0/0/0 9k jumbo clusters in use (current/cache/total/max) 0/0/0/0 16k jumbo clusters in use (current/cache/total/max) 4K/3714K/3719K bytes allocated to network (current/cache/total) 0/0/0 requests for mbufs denied (mbufs/clusters/mbuf+clusters) 0/0/0 requests for jumbo clusters denied (4k/9k/16k) 0/6/6656 sfbufs in use (current/peak/max) 0 requests for sfbufs denied 0 requests for sfbufs delayed 0 requests for I/O initiated by sendfile 0 calls to protocol drain routines re0: -------------------------------------------------------------------------- 516/639/1155 mbufs in use (current/cache/total) 515/147/662/30000 mbuf clusters in use (current/cache/total/max) 512/128 mbuf+clusters out of packet secondary zone in use (current/cache) 0/0/0/0 4k (page size) jumbo clusters in use (current/cache/total/max) 0/0/0/0 9k jumbo clusters in use (current/cache/total/max) 0/0/0/0 16k jumbo clusters in use (current/cache/total/max) 1159K/453K/1612K bytes allocated to network (current/cache/total) 0/0/0 requests for mbufs denied (mbufs/clusters/mbuf+clusters) 0/0/0 requests for jumbo clusters denied (4k/9k/16k) 0/4/1024 sfbufs in use (current/peak/max) 0 requests for sfbufs denied 0 requests for sfbufs delayed 0 requests for I/O initiated by sendfile 0 calls to protocol drain routines re1: -------------------------------------------------------------------------- 519/771/1290 mbufs in use (current/cache/total) 518/176/694/30000 mbuf clusters in use (current/cache/total/max) 512/128 mbuf+clusters out of packet secondary zone in use (current/cache) 0/0/0/0 4k (page size) jumbo clusters in use (current/cache/total/max) 0/0/0/0 9k jumbo clusters in use (current/cache/total/max) 0/0/0/0 16k jumbo clusters in use (current/cache/total/max) 1165K/544K/1710K bytes allocated to network (current/cache/total) 0/0/0 requests for mbufs denied (mbufs/clusters/mbuf+clusters) 0/0/0 requests for jumbo clusters denied (4k/9k/16k) 0/4/1024 sfbufs in use (current/peak/max) 0 requests for sfbufs denied 0 requests for sfbufs delayed 0 requests for I/O initiated by sendfile 0 calls to protocol drain routines
发布信息
在 Junos OS 7.4 版之前引入的命令。
在 Junos OS 9.6 版中为 TX Matrix Plus 路由器引入了 sfc 选项。