perun.backend.powercap_rapl

Defines Intel RAPL related classes.

Attributes

Classes

PowercapRAPLBackend

Powercap RAPL as a source of cpu and memory devices.

Module Contents

perun.backend.powercap_rapl.log[source]
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.Backend

Powercap 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'
setup() None[source]

Check Intel RAPL access.

close() None[source]

Backend shutdown code (does nothing for intel 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]