rapl formula
0.5.3
A 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 and convert it into power consumption measures (in Watt). The power consumption measures are store in a MongoDB database.
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
You have to launch the hwpc-sensor to monitor sockets. The sensor must store its data in a mongoDB database. This database must be accessible by the rapl_formula.
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-timeinputoutputenable-cpu-formula (bool): Enable CPU formula', default=Trueenable-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)