You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/_sources/methodology.rst.txt
+5-36Lines changed: 5 additions & 36 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -191,46 +191,13 @@ For example, on a laptop with Intel(R) Core(TM) i7-7600U, Code Carbon will read
191
191
192
192
RAPL Metrics
193
193
------------
194
-
RAPL stands for Running Average Power Limit, it is a feature of processors (CPU) that provide the energy consumption of the processor.
194
+
RAPL (Running Average Power Limit) is a feature of modern processors that provides energy consumption measurements through hardware counters.
195
195
196
196
See https://blog.chih.me/read-cpu-power-with-RAPL.html for more information.
197
197
198
-
Despite the name Intel RAPL, it support AMD processors since kernel 5.8.
199
-
200
-
It is some files in /sys/class/powercap/intel-rapl/subsystem/ that give the energy consumption of the CPU, and sometimes RAM.
201
-
There are folders for each `domain`, and in each folder there is a file `name` with the name of the domain and an `energy_uj` for the amount of energy in micro-joules.
202
-
203
-
The drawback of RAPL is that not every CPU uses it the same way. We focus on the `package` domain, but some CPUs have more domains like `core`, `uncore`, `dram`, `psys`, `gpu`, `psys` and `psys-io`.
204
-
205
-
For example :
206
-
- Intel puts all the physical cores consumption in `core` and the `package` includes `core`.
207
-
- For AMD, `core` has very low energy, so we don't know if it is included in the `package` or not.
208
-
209
-
Our friends from Scaphandre, a tool to monitor energy consumption, have a good article about RAPL https://hubblo-org.github.io/scaphandre-documentation/explanations/rapl-domains.html and also a discussion with good references: https://github.com/hubblo-org/scaphandre/issues/116#issuecomment-854453231 and point out that this topic is not well documented.
Source :“RAPL in Action: Experiences in Using RAPL for Power Measurements,” (K. N. Khan, M. Hirki, T. Niemi, J. K. Nurminen, and Z. Ou, ACM Trans. Model. Perform. Eval. Comput. Syst., vol. 3, no. 2, pp. 1–26, Apr. 2018, doi: 10.1145/3177754.)
0 commit comments