Profiler

RouterOS 中的 Profiler 工具显示每个进程的 CPU 使用率,帮助识别消耗资源较多的进程。它支持按核心监控,并按进程类型对 CPU 使用率进行分类,以便高效调试。

Profiler

profiler 工具显示 RouterOS 中运行的每个进程的 CPU 使用率。它有助于识别哪个进程占用了大部分 CPU 资源。
观看我们的关于此功能的视频。

[admin@MikroTik] > /tool/profile

在多核系统上,该工具允许指定每个核心的 CPU 使用率。

"CPU" 参数允许指定一个表示核心的整数,或两个预定义值之一 all 和 total:

  • total - 设置此值以显示所有核心使用率的总和。
  • all - 设置此值以分别显示每个可用核心的 CPU 使用率。

在以下示例中,我们将查看这两个预定义值:

[admin@MikroTik] > /tool/profile cpu=all 
NAME             CPU        USAGE       
ethernet         1          0%          
kvm              0          0%          
kvm              1          4.5%        
management       0          0%          
management       1          0.5%        
idle             0          100%        
idle             1          93%         
profiling        0          0%          
profiling        1          2%    

[admin@MikroTik] > /tool/profile cpu=total 
NAME             CPU        USAGE       
ethernet         all        0%          
console          all        0%          
kvm              all        2.7%        
management       all        0%          
idle             all        97.2%       
profiling        all        0%          
bridging         all        0%  

分类器

RouterOS 进程按类型分类,每种类型的 CPU 使用率会分别显示,以便于调试。

PropertyDescription
backup备份服务
bfdBFD 服务
bgpBGP 服务
bridging桥接服务
btest带宽测试。
certificate证书服务
console控制台
container容器合计使用率
dhcpDHCP-Server 和 DHCP-Client 服务
disk存储相关服务
dnsDNS 相关服务
dudeThe Dude 软件包服务
e-mail电子邮件工具
encrypting加密进程
eoipEoIP
ethernet以太网相关属性,如链路速率、自动协商、双工模式、监控收发器诊断信息等
fetcherFetch 工具
fileman文件管理器
firewall防火墙相关进程
firewall-mgmt防火墙管理:Filtering、NAT、Mangle
flash存储相关服务
ftpFTP 服务
gpsGPS 服务
graphingGraphing 工具
greGRE
health系统监控、系统健康
hotspotHotspot 服务
idle空闲 CPU 资源
igmp-proxyIGMP Proxy 服务
internet-detectDetect Internet 工具
ip-poolIP Pool 服务
ipsecIPsec 服务: xfrm - 一组统计信息,显示被转换代码丢弃的数据包数量及原因。 drivers/crypto - 提供硬件加密加速器访问的驱动程序。 ipsec - 与 Internet Key Exchange (IKE) 协议、Authentication Header (AH)、Encapsulating Security Payload (ESP) 相关的进程。
kvmKVM 虚拟机功能
l7-matcherL7 匹配器
lcdLCD 接口系统
ldpLabel Distribution Protocol (LDP)
logging日志系统
management各种子系统:scheduler、networking、文件管理等。
mplsMPLS 相关功能
neighbour-discovery邻居发现服务
networking网络功能中包含的通用服务集
ntpNTP 服务
ospfOSPF 服务
ovpnOVPN 服务
pim协议无关组播
profilingProfiler 服务
queue-mgmt队列:Simple queues、Queue tree、Queue types
queuing中间队列
radiusRADIUS 服务
radvIPv6 radv 守护进程日志消息服务
remote-access无需登录 RouterOS 即直接访问设备
rip路由信息协议
routing路由相关服务
serial串行控制台和终端工具
sniffingpacket Sniffer 工具
snmpSNMP
socksSocket Secure
spi存储相关服务
sshSSH 服务器
sslSSL
supout.rifsupout.rif 文件生成
telnetTelnet 服务
tftpTFTP 服务
traffic-accountingTraffic-Flow 日志系统
traffic-flowTraffic-Flow 系统
unclassified未由此分类器定义的进程或服务
upnpUPnP 协议
usbUSB 功能
user-managerUser Manager 服务
vrrpVRRP
web-proxyWeb 代理
winboxWinbox
wireguardWireguard
wireless使用 Wireless 系统的通用服务集
wwwWebfig HTTP 服务
zerotierZeroTier