CpupowerFrequencyInfo - Commands cpupower -c all frequency-info

class insights.parsers.cpupower_frequency_info.CpupowerFrequencyInfo(context, extra_bad_lines=None)[source]

Bases: insights.core.CommandParser, dict

Class for parsing the output of cpupower -c all frequency-info command.

Typical output of the command is:

analyzing CPU 0:
  driver: intel_pstate
  CPUs which run at the same hardware frequency: 0
  CPUs which need to have their frequency coordinated by software: 0
  maximum transition latency:  Cannot determine or is not supported.
  hardware limits: 800 MHz - 3.00 GHz
  available cpufreq governors: performance powersave
  current policy: frequency should be within 800 MHz and 3.00 GHz.
                  The governor "performance" may decide which speed to use
                  within this range.
  current CPU frequency: Unable to call hardware
  current CPU frequency: 1.22 GHz (asserted by call to kernel)
  boost state support:
    Supported: yes
    Active: yes
    2700 MHz max turbo 4 active cores
    2800 MHz max turbo 3 active cores
    2900 MHz max turbo 2 active cores
    3000 MHz max turbo 1 active cores
analyzing CPU 1:
  driver: intel_pstate
  CPUs which run at the same hardware frequency: 1
  CPUs which need to have their frequency coordinated by software: 1
  maximum transition latency:  Cannot determine or is not supported.
  hardware limits: 800 MHz - 3.00 GHz
  available cpufreq governors: performance powersave
  current policy: frequency should be within 800 MHz and 3.00 GHz.
                  The governor "performance" may decide which speed to use
                  within this range.
  current CPU frequency: Unable to call hardware
  current CPU frequency: 871 MHz (asserted by call to kernel)
  boost state support:
    Supported: yes
    Active: yes
Raises

Examples

>>> type(cpupower_frequency_info)
<class 'insights.parsers.cpupower_frequency_info.CpupowerFrequencyInfo'>
>>> cpupower_frequency_info['analyzing CPU 0']['driver']
'intel_pstate'
>>> cpupower_frequency_info['analyzing CPU 0']['boost state support']['Supported']
'yes'
>>> cpupower_frequency_info['analyzing CPU 0']['boost state support']['Active']
'yes'
>>> cpupower_frequency_info['analyzing CPU 1']['current policy']
'frequency should be within 800 MHz and 3.00 GHz. The governor "performance" may decide which speed to use within this range.'
>>> cpupower_frequency_info['analyzing CPU 0']['boost state support']['2700 MHz max turbo 4 active cores']
True
parse_content(content)[source]

This method must be implemented by classes based on this class.