collect采集命令
命令功能
支持采集多维度性能数据,包括Miss、访存统计、
命令格式
1 | ./ksys collect [-h] [-o OUTPUT] [--verbose] [-d <sec>] [-i <sec>] [-p PID] [-c CONFIG] [-G CGROUP][-l {0,1,2,3}] ... |
工具可采集指定应用,例如:./ksys collect [workload...],其中[workload...]替换为应用路径加应用参数,若还需要对应用指定采集参数,请在[workload...]前指定。采集时,“-p”、“-G”或应用参数中最多只能指定一个。
参数说明
参数 |
参数选项 |
参数说明 |
|---|---|---|
-h/--help |
- |
可选参数,获取帮助信息。 |
-o/--output |
- |
可选参数,指定生成JSON文件的目录,不指定则在当前目录下生成格式为“Y_M_D_H_M_S_report”的JSON文件。 |
--verbose |
- |
可选参数,显示采集指标的详细解释,默认不显示。 |
-d/--duration |
- |
可选参数,指定采集时间(以秒为单位),最小值为1秒,默认值为30秒。 |
-i/--interval |
- |
可选参数,指定采样间隔(以秒为单位),最小值为1秒,默认值为1秒。 说明:
建议-i参数指定的采样间隔不超过-d指定的采集时间的十分之一,否则会有警告。 例如:采样时间为10秒,采集间隔不超过1秒。 |
-p/--pid |
- |
可选参数,指定采集的进程 |
-c/--config |
- |
可选参数,指定.yaml配置文件路径。通过指定该文件可自定义热点函数采集、 说明:
|
-G/--cgroup |
- |
可选参数,对指定采集的进程组进行监控和资源控制管理。当前仅支持cgroup v1和cgroup v2。 |
-l/--log-level |
0/1/2/3 |
可选参数,设置日志级别,默认为1。
|
使用示例
执行以下命令,查看collect命令支持的功能信息:
1 | ./ksys collect -h |
返回信息如下:
USAGE
ksys collect [-h] [-o OUTPUT] [-d <sec>] [-i <sec>] [-p PID] [-c CONFIG] [-l {0,1,2,3}] ...
Using config.yaml can carry out detailed parameter configuration. Refer to the
comments in config.yaml for details.
DESCRIPTION
Create a collection command line task.
POSITIONAL ARGUMENTS
workload
Specify workload parameters: contains the application and application parameters.
options:
-h, --help
show this help message and exit
-o OUTPUT, --output OUTPUT
Output the full path.
--verbose
Display more metric message
-d <sec>, --duration <sec>
Duration in seconds for the task collect. The minimum value is 1, If not explicitly specified, the task will collect data continuously. The user can use Ctrl+ \ to cancel the
task or Ctrl+ C to stop the task collection and enter the analysis.
-i <sec>, --interval <sec>
Interval in seconds for sampling. The minimum value is 1 and the default value is 1. The maximum value cannot exceed the collection duration. It is advisable to set the
interval to no more than one-tenth of the total collection duration. The time for collecting hotspot data in each subreport depends on the interval parameter.
-p PID, --pid PID
Analyze existing process. When pid does not exist, the collection will stop halfway. When this option is enabled, the hotspot collection can provide support for on-cpu/off-
cpu check.
-c CONFIG, --config CONFIG
Input the path of the config yaml file. The file format must be consistent with the sample.
-G CGROUP, --cgroup CGROUP
Monitors events in a specified cgroup. Only cgroup v1 and v2 are supported; hybrid cgroup configurations are not supported.
-l {0,1,2,3}, --log-level {0,1,2,3}
Set the log level (0=DEBUG, 1=INFO, 2=WARNING, 3=ERROR), which defaults to 1(INFO).
- 采集系统性能数据。
1./ksys collect -d 30 -o /home/test/
采集时间指定为30秒,在“/home/test/”下生成JSON文件。
返回信息片段如下:
hotspot data collection is disabled. Refer to /home/ksys-xxx-Linux-aarch64/config.yaml for details Starting to collect data. You can press Ctrl+C to stop the task. Starting to parse data. You can press Ctrl+C stop the task. Progress: 2/2 | Sub-progress(spe data): 30/30. Starting to process and print data. You can press Ctrl+C to stop, and no results will be saved. =============================================== Time : 2026/01/22 19:39:08 Version : DevKit xxx Model Name : HUAWEI Kunpeng 920 V200 7270Z Command : ksys collect -d 30 -o /home/test/ =============================================== ============================================================================================CPU Metrics============================================================================================= Common Microarchitecture Metrics Summary Data (System wide) +------+--------------+------+------+----------+----------+----------+----------+-----------+-----------+---------+ | IPC | INSTRUCTIONS | MPKI | BPKI | L1D MPKI | L1I MPKI | L2D MPKI | L2I MPKI | DTLB MPKI | ITLB MPKI | CPU-NUM | +------+--------------+------+------+----------+----------+----------+----------+-----------+-----------+---------+ | 0.48 | 490165202796 | 1.24 | 0.3 | 1.25 | 0.59 | 0.75 | 0.09 | 1.21 | 0.15 | 256 | +------+--------------+------+------+----------+----------+----------+----------+-----------+-----------+---------+ Topdown Summary Data (System wide) +----------------------------+-------+ | Metric | Value | +----------------------------+-------+ | Retiring(%) | 7.87 | | Frontend Bound(%) | 5.94 | | Fetch Latency Bound(%) | 3.93 | | Fetch Bandwidth Bound(%) | 2.01 | | Bad Speculation(%) | 1.42 | | Branch Mispredicts(%) | 0.17 | | Machine Clears(%) | 1.25 | | Backend Bound(%) | 84.77 | | Core Bound(%) | 46.88 | | Memory Bound(%) | 37.89 | | CPU-NUM | 256 | +----------------------------+-------+ OS Metrics Summary Data (System wide) +------------------+------------+-------------+---------+ | context-switches | migrations | page-faults | CPU-NUM | +------------------+------------+-------------+---------+ | 465622 | 598 | 89472 | 256 | +------------------+------------+-------------+---------+ INSTRUCTION Summary Data (System wide) +----------------------------------+-------+ | Metric | Value | +----------------------------------+-------+ | Memory(%) | 29.76 | | Load(%) | 29.76 | | Store(%) | 0.0 | | Scalar(%): | 41.34 | | Integer(%) | 41.34 | | Floating Point(%) | 0.0 | | Vector(%) | 0.7 | | Advanced SIMD(%) | 0.7 | | SVE(+loads/stores)(%): | 0.0 | | SME(retired)(%): | 0.0 | | Integer(%) | 0.0 | | Floating Point(%) | 0.0 | | Crypto(%) | 0.0 | | Branches(%) | 14.31 | | Immediate(%) | 13.82 | | Return(%) | 0.22 | | Indirect(%) | 0.27 | | Barriers(%) | 0.03 | | Instruction Synchronization(%) | 0.0 | | Data Synchronization(%) | 0.0 | | Data Memory(%) | 0.03 | | Not Retired(%) | 13.86 | +----------------------------------+-------+ ... IO_info Summary Data (System wide) +--------------+-------+-------+----------+-------+---------+--------+-------+-------+ | BLOCK DEVICE | tps | rkB/s | wkB/s | dkB/s | areq-sz | aqu-sz | await | %util | +--------------+-------+-------+----------+-------+---------+--------+-------+-------+ | sdb | 1.3 | 0.0 | 9.2 | 0.0 | 2.44 | 0.0 | 0.05 | 0.21 | | sdb1 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | | sdb2 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | | sdb3 | 0.97 | 0.0 | 9.2 | 0.0 | 3.56 | 0.0 | 0.06 | 0.13 | | sda | 31.13 | 0.0 | 30715.27 | 0.0 | 133.87 | 0.38 | 1.62 | 6.21 | | sda1 | 30.93 | 0.0 | 30715.27 | 0.0 | 134.84 | 0.38 | 1.64 | 6.21 | | dm-0 | 2.37 | 0.0 | 9.6 | 0.0 | 0.94 | 0.0 | 0.12 | 0.12 | | dm-1 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | | dm-2 | 12.73 | 0.0 | 30716.22 | 0.0 | 355.06 | 0.18 | 2.13 | 5.99 | +--------------+-------+-------+----------+-------+---------+--------+-------+-------+ ============================================================================================Net Metrics============================================================================================= Net_info Summary Data (System wide) +-------------+---------+---------+----------+--------+---------+---------+----------+---------+ | IFACE | rxpck/s | txpck/s | rxkB/s | txkB/s | rxcmp/s | txcmp/s | rxmcst/s | %ifutil | +-------------+---------+---------+----------+--------+---------+---------+----------+---------+ | eno1 | 1934.71 | 2041.6 | 27636.09 | 176.55 | 0.0 | 0.0 | 0.03 | 21.73 | | eno2 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | | eno3 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | | eno4 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | | docker0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | | vethca66367 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | +-------------+---------+---------+----------+--------+---------+---------+----------+---------+ Starting to save data. You can press Ctrl+C to stop, and no results will be saved. Data saved successfully at /home/test/2026_01_22_19_39_08_report.json Use the --verbose option for detailed metric explanations.
- 采集应用性能数据。
1./ksys collect -d 30 -o /home/test/ /home/test/demo/cpu_branch_prediction_before
对“/home/test/demo/cpu_branch_prediction_before”应用进行采集,采集时间指定为30秒,在“/home/test/”下生成JSON文件。
返回信息片段如下:
hotspot data collection is disabled. Refer to /home/ksys-xxx-Linux-aarch64/config.yaml for details Starting to collect data. You can press Ctrl+C to stop the task. Starting to parse data. You can press Ctrl+C stop the task. Progress: 2/2 | Sub-progress(spe data): 30/30. Starting to process and print data. You can press Ctrl+C to stop, and no results will be saved. ======================================================================================= Time : 2026/01/22 19:42:04 Version : DevKit xxx Model Name : HUAWEI Kunpeng 920 V200 7270Z Command : ksys collect -d 30 -o /home/test/ /home/test/demo/cpu_branch_prediction_before ======================================================================================= ============================================================================================CPU Metrics============================================================================================= Common Microarchitecture Metrics Summary Data (Application level) +------+--------------+------+-------+----------+----------+----------+----------+-----------+-----------+ | IPC | INSTRUCTIONS | MPKI | BPKI | L1D MPKI | L1I MPKI | L2D MPKI | L2I MPKI | DTLB MPKI | ITLB MPKI | +------+--------------+------+-------+----------+----------+----------+----------+-----------+-----------+ | 1.07 | 81664143306 | 0.04 | 17.89 | 0.04 | 0.0 | 0.01 | 0.0 | 0.04 | 0.0 | +------+--------------+------+-------+----------+----------+----------+----------+-----------+-----------+ Topdown Summary Data (Application level) +----------------------------+-------+ | Metric | Value | +----------------------------+-------+ | Retiring(%) | 17.9 | | Frontend Bound(%) | 9.66 | | Fetch Latency Bound(%) | 8.45 | | Fetch Bandwidth Bound(%) | 1.21 | | Bad Speculation(%) | 52.35 | | Branch Mispredicts(%) | 52.32 | | Machine Clears(%) | 0.03 | | Backend Bound(%) | 20.09 | | Core Bound(%) | 14.34 | | Memory Bound(%) | 5.75 | +----------------------------+-------+ OS Metrics Summary Data (Application level) +------------------+------------+-------------+ | context-switches | migrations | page-faults | +------------------+------------+-------------+ | 0 | 0 | 290 | +------------------+------------+-------------+ INSTRUCTION Summary Data (Application level) +----------------------------------+-------+ | Metric | Value | +----------------------------------+-------+ | Memory(%) | 16.97 | | Load(%) | 16.97 | | Store(%) | 0.0 | | Scalar(%): | 32.7 | | Integer(%) | 32.7 | | Floating Point(%) | 0.0 | | Vector(%) | 0.0 | | Advanced SIMD(%) | 0.0 | | SVE(+loads/stores)(%): | 0.0 | | SME(retired)(%): | 0.0 | | Integer(%) | 0.0 | | Floating Point(%) | 0.0 | | Crypto(%) | 0.0 | | Branches(%) | 7.08 | | Immediate(%) | 7.08 | | Return(%) | 0.0 | | Indirect(%) | 0.0 | | Barriers(%) | 0.0 | | Instruction Synchronization(%) | 0.0 | | Data Synchronization(%) | 0.0 | | Data Memory(%) | 0.0 | | Not Retired(%) | 43.25 | +----------------------------------+-------+ ... IO_info Summary Data (Application level) +---------+---------+-----------+ | kB_rd/s | kB_wr/s | kB_ccwr/s | +---------+---------+-----------+ | 0.0 | 0.0 | 0.0 | +---------+---------+-----------+ ============================================================================================Net Metrics============================================================================================= Net_info Summary Data (System wide) +-------------+---------+---------+--------+--------+---------+---------+----------+---------+ | IFACE | rxpck/s | txpck/s | rxkB/s | txkB/s | rxcmp/s | txcmp/s | rxmcst/s | %ifutil | +-------------+---------+---------+--------+--------+---------+---------+----------+---------+ | eno1 | 20.92 | 29.37 | 1.57 | 3.37 | 0.0 | 0.0 | 0.04 | 0.0 | | eno2 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | | eno3 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | | eno4 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | | docker0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | | vethca66367 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | +-------------+---------+---------+--------+--------+---------+---------+----------+---------+ Starting to save data. You can press Ctrl+C to stop, and no results will be saved. Data saved successfully at /home/test/2026_01_22_19_42_04_report.json Use the --verbose option for detailed metric explanations.
- 采集进程性能数据。
1./ksys collect -d 30 -o /home/test/ -p 2748713
采集时间指定30秒,在“/home/test/”下生成JSON文件,对进程号为2748713的进程进行采集。
返回信息片段如下:
hotspot data collection is disabled. Refer to /home/ksys-xxx-Linux-aarch64/config.yaml for details Starting to collect data. You can press Ctrl+C to stop the task. Starting to parse data. You can press Ctrl+C stop the task. Progress: 2/2 | Sub-progress(spe data): 30/30. Starting to process and print data. You can press Ctrl+C to stop, and no results will be saved. ========================================================== Time : 2026/01/22 19:45:54 Version : DevKit xxx Model Name : HUAWEI Kunpeng 920 V200 7270Z Command : ksys collect -d 30 -o /home/test/ -p 2748713 ========================================================== ============================================================================================CPU Metrics============================================================================================= Common Microarchitecture Metrics Summary Data (Process level) +------+--------------+------+-------+----------+----------+----------+----------+-----------+-----------+ | IPC | INSTRUCTIONS | MPKI | BPKI | L1D MPKI | L1I MPKI | L2D MPKI | L2I MPKI | DTLB MPKI | ITLB MPKI | +------+--------------+------+-------+----------+----------+----------+----------+-----------+-----------+ | 1.07 | 37775338218 | 0.03 | 17.92 | 0.03 | 0.0 | 0.0 | 0.0 | 0.04 | 0.0 | +------+--------------+------+-------+----------+----------+----------+----------+-----------+-----------+ Topdown Summary Data (Process level) +----------------------------+-------+ | Metric | Value | +----------------------------+-------+ | Retiring(%) | 17.92 | | Frontend Bound(%) | 9.7 | | Fetch Latency Bound(%) | 8.48 | | Fetch Bandwidth Bound(%) | 1.22 | | Bad Speculation(%) | 52.39 | | Branch Mispredicts(%) | 52.37 | | Machine Clears(%) | 0.02 | | Backend Bound(%) | 19.99 | | Core Bound(%) | 14.28 | | Memory Bound(%) | 5.71 | +----------------------------+-------+ OS Metrics Summary Data (Process level) +------------------+------------+-------------+ | context-switches | migrations | page-faults | +------------------+------------+-------------+ | 0 | 0 | 0 | +------------------+------------+-------------+ INSTRUCTION Summary Data (Process level) +----------------------------------+-------+ | Metric | Value | +----------------------------------+-------+ | Memory(%) | 16.98 | | Load(%) | 16.98 | | Store(%) | 0.0 | | Scalar(%): | 32.72 | | Integer(%) | 32.72 | | Floating Point(%) | 0.0 | | Vector(%) | 0.0 | | Advanced SIMD(%) | 0.0 | | SVE(+loads/stores)(%): | 0.0 | | SME(retired)(%): | 0.0 | | Integer(%) | 0.0 | | Floating Point(%) | 0.0 | | Crypto(%) | 0.0 | | Branches(%) | 7.08 | | Immediate(%) | 7.08 | | Return(%) | 0.0 | | Indirect(%) | 0.0 | | Barriers(%) | 0.0 | | Instruction Synchronization(%) | 0.0 | | Data Synchronization(%) | 0.0 | | Data Memory(%) | 0.0 | | Not Retired(%) | 43.22 | +----------------------------------+-------+ ... IO_info Summary Data (Process level) +---------+---------+-----------+ | kB_rd/s | kB_wr/s | kB_ccwr/s | +---------+---------+-----------+ | 0.0 | 0.0 | 0.0 | +---------+---------+-----------+ ============================================================================================Net Metrics============================================================================================= Net_info Summary Data (System wide) +-------------+---------+---------+--------+--------+---------+---------+----------+---------+ | IFACE | rxpck/s | txpck/s | rxkB/s | txkB/s | rxcmp/s | txcmp/s | rxmcst/s | %ifutil | +-------------+---------+---------+--------+--------+---------+---------+----------+---------+ | eno1 | 20.18 | 28.19 | 1.56 | 3.25 | 0.0 | 0.0 | 0.17 | 0.0 | | eno2 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | | eno3 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | | eno4 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | | docker0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | | vethca66367 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | +-------------+---------+---------+--------+--------+---------+---------+----------+---------+ Starting to save data. You can press Ctrl+C to stop, and no results will be saved. Data saved successfully at /home/test/2026_01_22_19_45_54_report.json Use the --verbose option for detailed metric explanations.
- 采集cgroup性能数据。
1./ksys collect -d 30 -o /home/test/ -G my_test_cgroup
采集时间指定30秒,在“/home/test/”下生成JSON文件,对名为my_test_cgroup的cgroup进行采集。
返回信息片段如下:
hotspot data collection is disabled. Refer to /home/ksys-xxx-Linux-aarch64/config.yaml for details Starting to collect data. You can press Ctrl+C to stop the task. Starting to parse data. You can press Ctrl+C stop the task. Progress: 2/2 | Sub-progress(spe data): 30/30. Starting to process and print data. You can press Ctrl+C to stop, and no results will be saved. ================================================================= Time : 2026/01/22 19:49:54 Version : DevKit xxx Model Name : HUAWEI Kunpeng 920 V200 7270Z Command : ksys collect -d 30 -o /home/test/ -G my_test_cgroup ================================================================= ============================================================================================CPU Metrics============================================================================================= Common Microarchitecture Metrics Summary Data (Cgroup level) +------+--------------+------+-------+----------+----------+----------+----------+-----------+-----------+---------+ | IPC | INSTRUCTIONS | MPKI | BPKI | L1D MPKI | L1I MPKI | L2D MPKI | L2I MPKI | DTLB MPKI | ITLB MPKI | CPU-NUM | +------+--------------+------+-------+----------+----------+----------+----------+-----------+-----------+---------+ | 1.07 | 40516804036 | 0.03 | 17.64 | 0.03 | 0.0 | 0.0 | 0.0 | 0.04 | 0.0 | 256 | +------+--------------+------+-------+----------+----------+----------+----------+-----------+-----------+---------+ Topdown Summary Data (Cgroup level) +----------------------------+-------+ | Metric | Value | +----------------------------+-------+ | Retiring(%) | 17.58 | | Frontend Bound(%) | 9.48 | | Fetch Latency Bound(%) | 8.2 | | Fetch Bandwidth Bound(%) | 1.28 | | Bad Speculation(%) | 50.64 | | Branch Mispredicts(%) | 50.62 | | Machine Clears(%) | 0.02 | | Backend Bound(%) | 22.3 | | Core Bound(%) | 15.96 | | Memory Bound(%) | 6.34 | | CPU-NUM | 256 | +----------------------------+-------+ OS Metrics Summary Data (Cgroup level) +------------------+------------+-------------+---------+ | context-switches | migrations | page-faults | CPU-NUM | +------------------+------------+-------------+---------+ | 0 | 0 | 0 | 256 | +------------------+------------+-------------+---------+ INSTRUCTION Summary Data (Cgroup level) +----------------------------------+-------+ | Metric | Value | +----------------------------------+-------+ | Memory(%) | 17.82 | | Load(%) | 17.82 | | Store(%) | 0.0 | | Scalar(%): | 34.27 | | Integer(%) | 34.27 | | Floating Point(%) | 0.0 | | Vector(%) | 0.0 | | Advanced SIMD(%) | 0.0 | | SVE(+loads/stores)(%): | 0.0 | | SME(retired)(%): | 0.0 | | Integer(%) | 0.0 | | Floating Point(%) | 0.0 | | Crypto(%) | 0.0 | | Branches(%) | 6.87 | | Immediate(%) | 6.87 | | Return(%) | 0.0 | | Indirect(%) | 0.0 | | Barriers(%) | 0.0 | | Instruction Synchronization(%) | 0.0 | | Data Synchronization(%) | 0.0 | | Data Memory(%) | 0.0 | | Not Retired(%) | 41.04 | +----------------------------------+-------+ ... IO_info Summary Data (System wide) +--------------+------+-------+-------+-------+---------+--------+-------+-------+ | BLOCK DEVICE | tps | rkB/s | wkB/s | dkB/s | areq-sz | aqu-sz | await | %util | +--------------+------+-------+-------+-------+---------+--------+-------+-------+ | sdb | 1.5 | 0.0 | 14.81 | 0.0 | 4.31 | 0.0 | 0.08 | 0.21 | | sdb1 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | | sdb2 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | | sdb3 | 1.1 | 0.0 | 14.81 | 0.0 | 6.36 | 0.0 | 0.07 | 0.15 | | sda | 0.5 | 0.0 | 3.73 | 0.0 | 1.24 | 0.0 | 0.02 | 0.07 | | sda1 | 0.33 | 0.0 | 3.73 | 0.0 | 1.87 | 0.0 | 0.03 | 0.07 | | dm-0 | 3.9 | 0.0 | 15.74 | 0.0 | 1.34 | 0.0 | 0.01 | 0.15 | | dm-1 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | | dm-2 | 1.1 | 0.0 | 4.4 | 0.0 | 0.67 | 0.0 | 0.0 | 0.07 | +--------------+------+-------+-------+-------+---------+--------+-------+-------+ ============================================================================================Net Metrics============================================================================================= Net_info Summary Data (System wide) +-------------+---------+---------+--------+--------+---------+---------+----------+---------+ | IFACE | rxpck/s | txpck/s | rxkB/s | txkB/s | rxcmp/s | txcmp/s | rxmcst/s | %ifutil | +-------------+---------+---------+--------+--------+---------+---------+----------+---------+ | eno1 | 21.44 | 30.24 | 1.58 | 3.69 | 0.0 | 0.0 | 0.03 | 0.0 | | eno2 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | | eno3 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | | eno4 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | | docker0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | | vethca66367 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | +-------------+---------+---------+--------+--------+---------+---------+----------+---------+ Starting to save data. You can press Ctrl+C to stop, and no results will be saved. Data saved successfully at /home/test/2026_01_22_19_49_54_report.json Use the --verbose option for detailed metric explanations.
回显信息中指标区分系统维度(System wide)、应用维度(Application level)、PID维度(Process level)和cgroup维度(Cgroup level)。
- 对系统进行采集,性能数据为系统维度。
- 对应用进行采集,性能数据为系统维度和应用维度。
- 对进程进行采集,性能数据为系统维度和PID维度。
- 对cgroup进行采集,性能数据为系统维度和cgroup维度。