Sub-Sort by Maximum Values
The op.top(limit, metric=max)
operation returns
the limit SSIDs with the largest average values over the entire specified
period, in descending order from the SSID with the largest maximum value to the SSID with the
smallest maximum value.
The following example shows the same four SSIDs as are shown in the preceding example because these are the four resources that used the most average CPU time over the entire period. However, in the following example, these same four SSIDs are listed in a different order than in the preceding example.
The sstored
process used more CPU time over the entire period than the
kmem_task
process did, but the kmem_task
process has a larger
maximum value over the entire period than the sstored
process has:
$ sstore export -t 2020-09-09T15:21:30 -e 2020-09-09T15:22:30 -i 60 \ > //:class.proc//:res.*//:stat.cpu-percentage//:op.top(4,metric=max) TIME VALUE IDENTIFIER 2020-09-09T15:21:30 3.997802734375 //:class.proc//:res.pkg/18905/root//:stat.cpu-percentage//:op.top(4,metric=max) 2020-09-09T15:22:30 3.94287109375 //:class.proc//:res.pkg/18905/root//:stat.cpu-percentage//:op.top(4,metric=max) 2020-09-09T15:21:30 0.4180908203125 //:class.proc//:res.zpool-rpool/6/root//:stat.cpu-percentage//:op.top(4,metric=max) 2020-09-09T15:22:30 0.4058837890625 //:class.proc//:res.zpool-rpool/6/root//:stat.cpu-percentage//:op.top(4,metric=max) 2020-09-09T15:21:30 0.2288818359375 //:class.proc//:res.kmem_task/7/root//:stat.cpu-percentage//:op.top(4,metric=max) 2020-09-09T15:22:30 0.09765625 //:class.proc//:res.kmem_task/7/root//:stat.cpu-percentage//:op.top(4,metric=max) 2020-09-09T15:21:30 0.1556396484375 //:class.proc//:res.sstored/1046/root//:stat.cpu-percentage//:op.top(4,metric=max) 2020-09-09T15:22:30 0.177001953125 //:class.proc//:res.sstored/1046/root//:stat.cpu-percentage//:op.top(4,metric=max)
The values at the reported data points might not include the maximum values. Larger and smaller values might occur at points that are not reported.