您可以按任何计数器对统计信息排序,以诊断性能问题或确定热点。例如,您可能要收集卷统计信息并按总操作数排序以获得最活跃卷的列表。
步骤
- 使用 set -privilege advanced 命令切换到高级权限级别。
- 使用 statistics show 命令查看样本数据。
示例
在此示例中,输出内容会按卷名显示卷,并会显示读取操作数以及写入操作数,同时,还会按
read_ops 计数器进行排序:
::>statistics show -object volume -counter read_ops|write_ops -filter "vserver_name=vs1,read_ops>15" -sort-key read_ops -sort-order ascending
Object: volume
Instance: vol1
Start-time: 05/23/2014 4:00 PM
End-time: 05/23/2014 4:10 PM
Cluster: cluster1
Number of Constituents: 1 (complete_aggregation)
Counter Value
---------------------------- -----------
read_ops 20
write_ops 90
Object: volume
Instance: vol2
Start-time: 05/23/2014 4:00 PM
End-time: 05/23/2014 4:10 PM
Cluster: cluster1
Number of Constituents: 1 (complete_aggregation)
Counter Value
---------------------------- -----------
read_ops 40
write_ops 30