perun.backend.powercap_rapl¶
Defines Intel RAPL related classes.
Attributes¶
Classes¶
Powercap RAPL as a source of cpu and memory devices. |
Module Contents¶
- perun.backend.powercap_rapl.RAPL_PATH = '/sys/class/powercap/'¶
- perun.backend.powercap_rapl.DIR_RGX = 'intel-rapl:(\\d)$'¶
- perun.backend.powercap_rapl.SUBDIR_RGX = 'intel-rapl:\\d:\\d$'¶
- class perun.backend.powercap_rapl.PowercapRAPLBackend[source]¶
Bases:
perun.backend.backend.BackendPowercap RAPL as a source of cpu and memory devices.
Uses the powercap filesystem files to gather device information and creates metrics for each available device
- id = 'powercap_rapl'¶
- name = 'Powercap RAPL'¶
- description = 'Reads energy usage from CPUs and DRAM using Powercap RAPL'¶
- availableSensors() Dict[str, Tuple][source]¶
Return string id set of visible devices.
- Returns:
Set with visible device ids.
- Return type:
Set[str]
- getSensors(deviceList: Set[str]) List[perun.data_model.sensor.Sensor][source]¶
Gather device objects based on a set of device ids.
- Parameters:
deviceList (Set[str]) – Set of device ids.
- Returns:
Device objects.
- Return type:
List[Sensor]