Displaying Values of Static Partitions
The following command shows that CPU usage is partitioned by mode (partitions: mode
):
$ sstore info //:class.cpu//:res.id/0//:stat.usage Identifier: //:class.cpu//:res.id/0//:stat.usage $schema: //:stat copyright: Copyright (c) 2014, 2016, Oracle and/or its affiliates. description: cpu time id: //:class.cpu//:stat.usage multiplier: 1000000 stability: stable type: counter units: milliseconds zeroes: False partitions: mode
The following command shows that the mode
partition is not further partitioned:
$ sstore info //:class.cpu//:res.id/0//:stat.usage//:part.mode
Identifier: //:class.cpu//:res.id/0//:stat.usage//:part.mode
$schema: //:stat
copyright: Copyright (c) 2014, 2016, Oracle and/or its affiliates.
description: cpu time
id: //:class.cpu//:stat.usage
multiplier: 1000000
stability: stable
units: milliseconds
zeroes: False
type: partition
Example 3-1 Display the Aggregate Value of a Partition
The following command shows that the value of a partition is aggregated if you do not specify a component of the partition:
$ sstore capture //:class.cpu//:res.id/0//:stat.usage 1 1
TIME VALUE IDENTIFIER
2020-08-27T23:09:56 1503723065.775699 //:class.cpu//:res.id/0//:stat.usage
Example 3-2 Display the Value of Each Component of a Partition
The following sstore export
command uses the time from the previous sstore capture
command to show the values of the individual components of the mode
partition:
$ sstore export -t 2020-08-27T23:09:56 -p 1 \ > //:class.cpu//:res.id/0//:stat.usage//:part.mode TIME VALUE IDENTIFIER 2020-08-27T23:09:56 //:class.cpu//:res.id/0//:stat.usage//:part.mode idle: 1501048573.375829 intr: 1143137.286091 kernel: 1398988.483238 user: 132366.630541
The preceding command shows the arguments that the mode
partition can take
(idle
, intr
, kernel
,
user
) and the CPU usage for each component. This output also shows that the
aggregate value is equal to the sum of the values of all components.
Example 3-3 Display the Values of Selected Partition Components
The following command specifies the time output from the previous command as the start time and requests CPU usage values at 30-second intervals for just the user and kernel components:
$ sstore export -t 2020-08-27T23:09:56 -e 2020-08-27T23:10:56 -i 30 \ > //:class.cpu//:res.id/0//:stat.usage//:part.mode(user,kernel) TIME VALUE IDENTIFIER 2020-08-27T23:09:56 //:class.cpu//:res.id/0//:stat.usage//:part.mode(user,kernel) kernel: 1398988.483238 user: 132366.630541 2020-08-27T23:10:26 //:class.cpu//:res.id/0//:stat.usage//:part.mode(user,kernel) kernel: 1399010.830562 user: 132366.630541 2020-08-27T23:10:56 //:class.cpu//:res.id/0//:stat.usage//:part.mode(user,kernel) kernel: 1399038.108177 user: 132366.630541