perun.backend.powercap_rapl

Defines Intel RAPL related classes.

Module Contents

Classes

PowercapRAPLBackend

Powercap RAPL as a source of cpu and memory devices.

Attributes

log

RAPL_PATH

DIR_RGX

SUBDIR_RGX

perun.backend.powercap_rapl.log
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

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()

Check Intel RAPL access.

close() None

Backend shutdown code (does nothing for intel rapl).

visibleSensors() Set[str]

Return string id set of visible devices.

Returns

Set[str]

Set with visible device ids.

getSensors(deviceList: Set[str]) List[perun.data_model.sensor.Sensor]

Gather device objects based on a set of device ids.

Parameters

deviceListSet[str]

Set of device ids.

Returns

List[Sensor]

Device objects.