Viewing partition use

The most common use of aps is to list the partitions and the CPU time they're using. To list partitions and the CPU time they're consuming, use the aps show command:

$ aps show
                    +-------- CPU Time -------+-- Critical Time --
Partition name   id | Budget |  Max |    Used | Budget |      Used
--------------------+-------------------------+-------------------
System            0 |    60% | 100% |  36.24% |  100ms |   0.000ms
partitionA        1 |    20% | 100% |   2.11% |    0ms |   0.000ms
partitionB        2 |    20% | 100% |   1.98% |    0ms |   0.000ms
--------------------+-------------------------+-------------------
Total               |   100% |      |  40.33% |

To display CPU usage over the longer windows (typically 10 times and 100 times the length of the averaging window), add the -v option:

$ aps show -v
                    +--------------- CPU Time ---------------+-- Critical Time --
                    |        |               Used            |        |
Partition name   id | Budget |  Max | 0.100s   1.00s   10.0s | Budget |      Used
--------------------+----------------------------------------+-------------------
System            0 |    60% | 100% | 20.91%   3.23%   4.33% |  100ms |   0.000ms
partitionA        1 |    20% | 100% |  1.78%   2.09%   2.09% |    0ms |   0.000ms
partitionB        2 |    20% | 100% |  1.71%   2.03%   2.03% |    0ms |   0.000ms
--------------------+----------------------------------------+-------------------
Total               |   100% |      | 24.40%   7.34%   8.44% |

If you specify more than one v option, the aps utility's output results also shows you the critical budget usage over the longer windows.

If you want to display the output of the aps show command every 5 seconds, use the -l option in the command as in aps show -l. You can also use the -d option to change the length of the delay of the output results.

For more information about the aps utility, see the Utilities Reference.