RAPL-formula
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.
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
Get input data
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.
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-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)
BSD 3-Clause License
Copyright (c) 2019, PowerAPI All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
-
Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
-
Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
-
Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Metadata
Release files for rapl-formula 0.5.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| rapl_formula-0.5.3.tar.gz | 7.8 kB | Without provenance | Details for rapl_formula-0.5.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| rapl_formula-0.5.3-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for rapl_formula-0.5.3-py2.py3-none-any.whl |
Total release size: 20.0 kB
Release files / rapl_formula-0.5.3.tar.gz
| Download URL | rapl_formula-0.5.3.tar.gz |
|---|---|
| Size | 7.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ed2ef8aa0e1ccef917a8a5f5a81272e4305cd4dcd13a086e6e9ab69ebb03bd5b
|
|
BLAKE2b-256 checksum How to use checksums |
db3c9f2fce8479b42d2349f5de2fded673fc1f2d44f4ccc99360220528201697
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.8.10
|
Release files / rapl_formula-0.5.3-py2.py3-none-any.whl
| Download URL | rapl_formula-0.5.3-py2.py3-none-any.whl |
|---|---|
| Size | 12.3 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
9d4ac04fe2aac00bc2ceb36662881473b5277294d41cafe757ca70889e0687f0
|
|
BLAKE2b-256 checksum How to use checksums |
e7db6ff46ce715c35020a6fe1ccbc04924b44d4747ab0c31f873861e22858e4b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.8.10
|
Security for rapl-formula 0.5.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.