https://github.com/powerapi-ng/rapl-formula
PowerAPI formula using RAPL counters to provides power consumption information.
https://github.com/powerapi-ng/rapl-formula
energy green-computing inria performance-counters power power-meter powerapi rapl spirals
Last synced: 10 months ago
JSON representation
PowerAPI formula using RAPL counters to provides power consumption information.
- Host: GitHub
- URL: https://github.com/powerapi-ng/rapl-formula
- Owner: powerapi-ng
- License: bsd-3-clause
- Created: 2019-03-12T12:53:25.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2022-07-29T14:06:06.000Z (over 3 years ago)
- Last Synced: 2025-06-02T08:19:29.414Z (11 months ago)
- Topics: energy, green-computing, inria, performance-counters, power, power-meter, powerapi, rapl, spirals
- Language: Python
- Homepage: http://powerapi.org
- Size: 64.5 KB
- Stars: 6
- Watchers: 4
- Forks: 4
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Contributing: contributing.md
- License: LICENSE
Awesome Lists containing this project
README
# RAPL-formula
A [powerAPI](https://github.com/powerapi-ng/powerapi) formula using RAPL
counters to provides power consumption information of each socket of the
monitored machine.
Use RAPL data collected with the
[hwpc-sensor](https://github.com/powerapi-ng/hwpc-sensor) and convert it into
power consumption measures (in Watt). The power consumption measures are store
in a MongoDB database.
# Quick start
We detail here how to quickly start rapl-formula and connect it to a hwpc-sensor
using a mongoDB instance.
For more detail see our documentation [here](http://powerapi.org)
## Get input data
You have to launch the [hwpc-sensor](https://github.com/powerapi-ng/hwpc-sensor) to
monitor sockets. The sensor must store its data in a mongoDB database. This
database must be accessible by the rapl_formula.
## Configuration
You can pass the configuration through a file or the CLI.
In both case the parameters to precises are the following :
- `verbose` (bool)
- `stream` (bool): If working with a sensor in real-time
- `input`
- `output`
- `enable-cpu-formula` (bool): Enable CPU formula', default=True
- `enable-dram-formula` (bool): Enable DRAM formula, default=True
- `'cpu-rapl-ref-event` (str): RAPL event used as reference for the CPU power models, default='RAPL_ENERGY_PKG'
- `'dram-rapl-ref-event` (str): RAPL event used as reference for the DRAM power models, default='RAPL_ENERGY_DRAM'
- `'sensor-report-sampling-interval` (int): (for stream mode) The frequency with which measurements are made
(in milliseconds)