pmcycles Command

Purpose

Measures processor clock speed.

Syntax

pmcycles [ -d] [ -m][-M]

Description

The pmcycles command displays the nominal and measured processor speed for the system in MHz. The nominal processor speed is the maximum frequency at which the system can run across all environments and workload conditions. Depending on system conditions, the nominal processor frequency might not represent the minimum or maximum achievable processor speed. The measured frequency is the current running frequency of the processor.

The lparstat -E 1 1 and mpstat -E 1 1 commands can also be used to determine the current processor speed.

Flags


Item Description
-d Displays the decrementer in MHz and nanoseconds per tick.
-m Displays the speed of each of the processors.
-M Displays the measured frequency of the processor.

Security

Attention RBAC users: This command can perform privileged operations. Only privileged users can run privileged operations. For more information about authorizations and privileges, see Privileged Command Database in Security. For a list of privileges and the authorizations associated with this command, see the lssecattr command or the getcmdattr subcommand.

Examples

  1. To display the processor speed, enter the following command:
    pmcycles
    The output might be similar to the following example:
    This machine runs at 133 MHz
  2. To display each processor speed, enter the following command:
    pmcycles -m
    The output might be similar to the following example:
    Cpu 0 runs at 200 MHz
    CPU 1 runs at 200 MHz
  3. To display the measured processor speed, enter the following command:
    pmcycles -M
    The output might be similar to the following example:
    The measured frequency is 2294 MHz