Go to main content

Using Oracle® Solaris 11.4 StatsStore and System Web Interface

Exit Print View

Updated: February 2019
 
 

Resource Utilization

The following output shows how much memory the system has and how much of that memory is available:

$ sstore export -t 2016-03-11T13:30:32 -e 2016-03-11T13:30:35 \
> //:class.system//:stat.total-memory
TIME                VALUE IDENTIFIER
2016-03-11T13:30:33 6374219776 //:class.system//:stat.total-memory
2016-03-11T13:30:34 6374219776 //:class.system//:stat.total-memory
2016-03-11T13:30:35 6374219776 //:class.system//:stat.total-memory
$ sstore export -t 2016-03-11T13:30:32 -e 2016-03-11T13:30:35 \
> //:class.system//:stat.available-memory
TIME                VALUE IDENTIFIER
2016-03-11T13:30:33 145809408 //:class.system//:stat.available-memory
2016-03-11T13:30:34 142925824 //:class.system//:stat.available-memory
2016-03-11T13:30:35 152608768 //:class.system//:stat.available-memory

When you apply the util operation to a statistic that is not a partition, the metadata is searched to determine whether the statistic has a known capacity. In this example, total-memory is the known capacity of available-memory, as shown by the following sstore info command:

$ sstore info //:class.system//:stat.available-memory
  Identifier: //:class.system//:stat.available-memory
     $schema: //:stat
   copyright: Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved.
        type: scalar
 description: Available system memory
          id: //:class.system//:stat.available-memory
max-capacity: //:stat.total-memory
   stability: stable
       units: bytes

The result of applying the util operation to available-memory is therefore the percent of memory that is available at each time stamp: available-memory divided by total-memory.

$ sstore export -t 2016-03-11T13:30:32 -e 2016-03-11T13:30:35 \
> //:class.system//:stat.available-memory//:op.util
TIME                VALUE IDENTIFIER
2016-03-11T13:30:33 2.2874863610601683 //:class.system//:stat.available-memory//:op.util
2016-03-11T13:30:34 2.242248134244438 //:class.system//:stat.available-memory//:op.util
2016-03-11T13:30:35 2.3941560436086227 //:class.system//:stat.available-memory//:op.util

In the following example, the difference operation shows the amount of memory that is being used. When the util operation is applied to the new synthetic statistic, the result is the percent of memory that is being used: total-memory less available-memory divided by total-memory.

$ sstore export -t 2016-03-11T13:30:32 -e 2016-03-11T13:30:35 \
> //:class.system//:stat.//:s.[total-memory,available-memory]//:op.difference
TIME                VALUE IDENTIFIER
2016-03-11T13:30:33 6228410368.0 //:class.system//:stat.total-memory//:op.difference
2016-03-11T13:30:34 6231293952.0 //:class.system//:stat.total-memory//:op.difference
2016-03-11T13:30:35 6221611008.0 //:class.system//:stat.total-memory//:op.difference
$ sstore export -t 2016-03-11T13:30:32 -e 2016-03-11T13:30:35 \
> //:class.system//:stat.//:s.[total-memory,available-memory]//:op.difference//:op.util
TIME                VALUE IDENTIFIER
2016-03-11T13:30:33 97.71251363893984 //:class.system//:stat.total-memory//:op.difference//:op.util
2016-03-11T13:30:34 97.75775186575557 //:class.system//:stat.total-memory//:op.difference//:op.util
2016-03-11T13:30:35 97.60584395639138 //:class.system//:stat.total-memory//:op.difference//:op.util

When you apply the util operation to a partition, the sum of all parts of the partition are used as the capacity. The following output shows the milliseconds used by each part of the partition:

$ sstore export -t 2016-03-09T16:32:32 -p 1 //:class.cpu//:stat.usage//:part.mode
TIME                VALUE IDENTIFIER
2016-03-09T16:32:56  //:class.cpu//:stat.usage//:part.mode
                    stolen: 0.0
                    intr: 495808.247348
                    idle: 76499305.003489
                    user: 1872796.029831
                    kernel: 1417289.148075

The following output shows the percent of total usage accounted for by each part of the partition:

$ sstore export -t 2016-03-09T16:32:32 -p 1 //:class.cpu//:stat.usage//:part.mode//:op.util
TIME                VALUE IDENTIFIER
2016-03-09T16:32:56  //:class.cpu//:stat.usage//:part.mode//:op.util
                    stolen: 0.0
                    intr: 0.6175587244615878
                    idle: 95.28444408266094
                    user: 2.332679082176271
                    kernel: 1.7653181107012057