Skip to content

Commit e6e7330

Browse files
committed
moved to sampling_rate instead of resolution
1 parent 4453fe6 commit e6e7330

11 files changed

+57
-57
lines changed

content/en/docs/installation/installation-macos.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ You will need to disable all providers and enable the:
6161

6262
```yml
6363
powermetrics.provider.PowermetricsProvider:
64-
resolution: 100
64+
sampling_rate: 100
6565
```
6666
6767
in the `config.yml`.

content/en/docs/measuring/best-practices.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,21 +42,21 @@ Our [Hosted Service]({{< relref "measuring-service" >}}) on our [Measurement Clu
4242
+ If that is however what your application is design to operate it, then do not alter it. However most applications assume an
4343
infinite amout of resources and behave weirdly if they run into resource limitations
4444

45-
### 3. The application you want to test must run at least twice as long as the minimal resolution
45+
### 3. The application you want to test must run at least twice as long as the minimal sampling rate
4646

47-
- The minimal resolution is the one you have configured with your [Metric Providers]({{< relref "metric-providers" >}})
47+
- The minimal sampling rate is the one you have configured with your [Metric Providers]({{< relref "metric-providers" >}})
4848
+ Also be aware that Intel RAPL has a minimum time resolution of ~10ms and CPU time resolution is typically around 1 microsecond.
4949

5050
### 4. When running tests your disk load should not go over 50%
5151

5252
- Since typically linux systems can run in congestion above 60% and also our tool needs some disk time.
5353
+ Check `iostat -xmdz` if in doubt
5454

55-
### 5. Limit amount and resolution of Metric Providers to what you absolutely need
55+
### 5. Limit amount and sampling rate of Metric Providers to what you absolutely need
5656

57-
- Do not exceed 10 Metric Reporters on 100 ms resolution,
58-
- or 2 metric reporters on 10 ms resolution as this will produce a non-significant load on the system and might skew results.
59-
- Try to keep the resolution of all metric reporters identical. This allows for easier data drill-down later.
57+
- Do not exceed 10 Metric Reporters on 100 ms sampling rate,
58+
- or 2 metric reporters on 10 ms sampling rate as this will produce a non-significant load on the system and might skew results.
59+
- Try to keep the sampling rate of all metric reporters identical. This allows for easier data drill-down later.
6060

6161
### 6. Always check STDDEV
6262

@@ -137,7 +137,7 @@ rather run `docker volume prune` once in a while.
137137

138138
### 15. Use non standard sampling intervals and avoid undersampling
139139
If the effect you are looking for in your code is likely only a 200 ms activity you should at least
140-
use a sampling rate (metric provider resolution) of 100 ms.
140+
use a sampling rate of 100 ms.
141141

142142
Having said that: It is also good practice to use an odd number here, which is slightly lower. For instance 99 ms or even 95 ms.
143143

content/en/docs/measuring/configuration.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -80,13 +80,13 @@ measurement:
8080
metric-providers:
8181
linux:
8282
cpu.utilization.cgroup.container.provider.CpuUtilizationCgroupContainerProvider:
83-
resolution: 100
83+
sampling_rate: 100
8484
cpu.energy.RAPL.MSR.system.provider.CpuEnergyRaplMsrSystemProvider:
85-
resolution: 100
85+
sampling_rate: 100
8686
memory.total.cgroup.container.provider.MemoryTotalCgroupContainerProvider:
87-
resolution: 100
87+
sampling_rate: 100
8888
cpu.time.cgroup.container.provider.CpuTimeCgroupContainerProvider:
89-
resolution: 100
89+
sampling_rate: 100
9090
# ...
9191

9292
admin:
@@ -129,7 +129,7 @@ For the rest please see [installation →]({{< relref "/docs/cluster/installatio
129129
- `metric-providers`:
130130
+ `linux`/`macos`/`common` **[string]**: Specifies under what system the metric provider can run. Common implies it could run on either.
131131
* `METRIC_PROVIDER_NAME` **[string]**: Key specifies the Metric Provider. [Possible Metric Providers →]({{< relref "/docs/measuring/metric-providers/metric-providers-overview" >}})
132-
* `METRIC_PROVIDER_NAME.resolution` **[integer]**: sampling resolution in ms
132+
* `METRIC_PROVIDER_NAME.sampling_rate` **[integer]**: sampling rate in ms
133133

134134
Some metric providers have unique configuration params:
135135

content/en/docs/measuring/measurement-cluster.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ We have the following machines available for running measurements in our cluster
5151
---
5252

5353
- **Micro Benchmarking (DVFS OFF, TB OFF, HT OFF) - TX1330 M2**
54-
+ Use Case: For micro benchmarking of a software where configuration is tuned for reproducability. Reporters are set to 1ms resolution and limited to RAPL CPU / Memory
54+
+ Use Case: For micro benchmarking of a software where configuration is tuned for reproducability. Reporters are set to 1ms sampling_rate and limited to RAPL CPU / Memory
5555
+ Vendor: Fujitsu TX1330 M2
5656
+ Ubuntu 22.04 ([NOP Linux](https://www.green-coding.io/blog/nop-linux/))
5757
+ Type: Single-Tenant Server

content/en/docs/measuring/metric-providers/cpu-energy-RAPL-MSR-component.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ sudo modprobe rapl
2727

2828
### Technical specs
2929

30-
- Time resolution: 976 micro-seconds
31-
- Energy resolution: 15.3 micro-Joules
30+
- Time resolution: up to 976 micro-seconds (depending on production year of the CPU)
31+
- Energy resolution: up to 15.3 micro-Joules (depending on production year of the CPU)
3232

3333
### Classname
3434

content/en/docs/measuring/metric-providers/lm-sensors.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ Your config could be:
6464

6565
```bash
6666
lmsensors.temperature.provider.LmsensorsTempComponentProvider:
67-
resolution: 100
67+
sampling_rate: 100
6868
chips: ['coretemp-isa-0000']
6969
features: ['Package id 0', 'Core 0', 'Core 1', 'Core 2', 'Core 3']
7070
```

content/en/docs/measuring/metric-providers/memory-energy-RAPL-MSR-component.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ sudo modprobe rapl
2828

2929
### Technical specs
3030

31-
- Time resolution: 976 micro-seconds
32-
- Energy resolution: 15.3 micro-Joules
31+
- Time resolution: up to 976 micro-seconds (depending on production year of the CPU)
32+
- Energy resolution: up to 15.3 micro-Joules (depending on production year of the CPU)
3333

3434
### Classname
3535

content/en/docs/measuring/metric-providers/metric-providers-overview.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,11 @@ measurement:
3838
metric-providers:
3939
linux:
4040
cpu.utilization.cgroup.container.provider.CpuUtilizationCgroupContainerProvider:
41-
resolution: 100
41+
sampling_rate: 100
4242
cpu.energy.RAPL.MSR.system.provider.CpuEnergyRaplMsrSystemProvider:
43-
resolution: 100
43+
sampling_rate: 100
4444
# psu.energy.ac.xgboost.system.provider.PsuEnergyAcXgboostSystemProvider:
45-
# resolution: 100
45+
# sampling_rate: 100
4646
# This is a default configuration. Please change this to your system!
4747
# CPUChips: 1
4848
# HW_CPUFreq: 3100
@@ -51,7 +51,7 @@ measurement:
5151
# HW_MemAmountGB: 16
5252
```
5353

54-
The dimension of the resolution is milliseconds. Change this number to have a smaller or larger time window between measurements for that specific provider.
54+
The dimension of the sampling_rate is milliseconds. Change this number to have a smaller or larger time window between measurements for that specific provider.
5555

5656
The metric providers are written as C programs with a Python wrapper, and live under `metric_providers/` in the subdirectory that matches the `config.yml`. The directory contains the following files:
5757

content/en/docs/measuring/metric-providers/overhead-of-measurement-providers.md

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,14 @@ The script produces a lot of output, but what you want to look out for is:
3636
## Results for Esprimo P956 - Measurement #1 Machine Power
3737

3838
Configured reporters
39-
- PsuEnergyAcMCPMachineProvider: 99 ms resolution
40-
- NetworkIoCgroupContainerProvider: 99 ms resolution
41-
- CpuEnergyRaplMsrComponentProvider: 99 ms resolution
42-
- MemoryEnergyRaplMsrComponentProvider: 99 ms resolution
43-
- CpuUtilizationProcfsSystemProvider: 99 ms resolution
44-
- MemoryTotalCgroupContainerProvider: 99 ms resolution
45-
- CpuUtilizationCgroupContainerProvider: 99 ms resolution
46-
- LmsensorsTemperatureComponentProvider: 99 ms resolution
39+
- PsuEnergyAcMCPMachineProvider: 99 ms sampling_rate
40+
- NetworkIoCgroupContainerProvider: 99 ms sampling_rate
41+
- CpuEnergyRaplMsrComponentProvider: 99 ms sampling_rate
42+
- MemoryEnergyRaplMsrComponentProvider: 99 ms sampling_rate
43+
- CpuUtilizationProcfsSystemProvider: 99 ms sampling_rate
44+
- MemoryTotalCgroupContainerProvider: 99 ms sampling_rate
45+
- CpuUtilizationCgroupContainerProvider: 99 ms sampling_rate
46+
- LmsensorsTemperatureComponentProvider: 99 ms sampling_rate
4747

4848
```console
4949
[INFO] 2024-02-16 10:56:49,208 - System Baseline measurement successful
@@ -91,13 +91,13 @@ Read on for the CPU only values, which give some more insights, but are less gen
9191
## Results for Esprimo P956 - Measurement #2 CPU Energy
9292

9393
Configured reporters
94-
- NetworkIoCgroupContainerProvider: 99 ms resolution
95-
- CpuEnergyRaplMsrComponentProvider: 99 ms resolution
96-
- MemoryEnergyRaplMsrComponentProvider: 99 ms resolution
97-
- CpuUtilizationProcfsSystemProvider: 99 ms resolution
98-
- MemoryTotalCgroupContainerProvider: 99 ms resolution
99-
- CpuUtilizationCgroupContainerProvider: 99 ms resolution
100-
- LmsensorsTemperatureComponentProvider: 99 ms resolution
94+
- NetworkIoCgroupContainerProvider: 99 ms sampling_rate
95+
- CpuEnergyRaplMsrComponentProvider: 99 ms sampling_rate
96+
- MemoryEnergyRaplMsrComponentProvider: 99 ms sampling_rate
97+
- CpuUtilizationProcfsSystemProvider: 99 ms sampling_rate
98+
- MemoryTotalCgroupContainerProvider: 99 ms sampling_rate
99+
- CpuUtilizationCgroupContainerProvider: 99 ms sampling_rate
100+
- LmsensorsTemperatureComponentProvider: 99 ms sampling_rate
101101

102102
```console
103103
[INFO] 2024-02-16 12:08:32,652 - System Baseline measurement successful
@@ -140,14 +140,14 @@ Configured reporters
140140
## Fujitsu TX1330 M2 - Measurement #1 Machine Power
141141

142142
Configured reporters
143-
- PsuEnergyAcMCPMachineProvider: 99 ms resolution
144-
- NetworkIoCgroupContainerProvider: 99 ms resolution
145-
- CpuEnergyRaplMsrComponentProvider: 99 ms resolution
146-
- MemoryEnergyRaplMsrComponentProvider: 99 ms resolution
147-
- CpuUtilizationProcfsSystemProvider: 99 ms resolution
148-
- MemoryTotalCgroupContainerProvider: 99 ms resolution
149-
- CpuUtilizationCgroupContainerProvider: 99 ms resolution
150-
- LmsensorsTemperatureComponentProvider: 99 ms resolution
143+
- PsuEnergyAcMCPMachineProvider: 99 ms sampling_rate
144+
- NetworkIoCgroupContainerProvider: 99 ms sampling_rate
145+
- CpuEnergyRaplMsrComponentProvider: 99 ms sampling_rate
146+
- MemoryEnergyRaplMsrComponentProvider: 99 ms sampling_rate
147+
- CpuUtilizationProcfsSystemProvider: 99 ms sampling_rate
148+
- MemoryTotalCgroupContainerProvider: 99 ms sampling_rate
149+
- CpuUtilizationCgroupContainerProvider: 99 ms sampling_rate
150+
- LmsensorsTemperatureComponentProvider: 99 ms sampling_rate
151151

152152
```console
153153
[INFO] 2024-02-16 10:13:26,496 - System Baseline measurement successful
@@ -190,13 +190,13 @@ The nature of a switching power supply is that the machine power, when polled in
190190
## Fujitsu TX1330 M2 - Measurement #2 CPU Power
191191

192192
Configured reporters
193-
- NetworkIoCgroupContainerProvider: 99 ms resolution
194-
- CpuEnergyRaplMsrComponentProvider: 99 ms resolution
195-
- MemoryEnergyRaplMsrComponentProvider: 99 ms resolution
196-
- CpuUtilizationProcfsSystemProvider: 99 ms resolution
197-
- MemoryTotalCgroupContainerProvider: 99 ms resolution
198-
- CpuUtilizationCgroupContainerProvider: 99 ms resolution
199-
- LmsensorsTemperatureComponentProvider: 99 ms resolution
193+
- NetworkIoCgroupContainerProvider: 99 ms sampling_rate
194+
- CpuEnergyRaplMsrComponentProvider: 99 ms sampling_rate
195+
- MemoryEnergyRaplMsrComponentProvider: 99 ms sampling_rate
196+
- CpuUtilizationProcfsSystemProvider: 99 ms sampling_rate
197+
- MemoryTotalCgroupContainerProvider: 99 ms sampling_rate
198+
- CpuUtilizationCgroupContainerProvider: 99 ms sampling_rate
199+
- LmsensorsTemperatureComponentProvider: 99 ms sampling_rate
200200

201201
```console
202202
[INFO] 2024-02-16 12:26:02,660 - System Baseline measurement successful

content/en/docs/measuring/metric-providers/psu-energy-dc-picolog-machine.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ The provider will configure the PicoLog HRDL ADC-24 into streaming mode with
7373
By default the measurement interval is *1000 ms*, which however is only for testing
7474
purposes.
7575

76-
As stated in the paragraph before the provider should always be used with *61 ms* samling frequency
76+
As stated in the paragraph before the provider should always be used with *61 ms* sampling rate
7777

7878
```bash
7979
./metric-provider-binary -i 61
@@ -103,7 +103,7 @@ The provider has a significant energy overhead when used as it draws power
103103
from the USB port of the system.
104104

105105
In our test system the PicoLog HRDL ADC-24 draws about **0.5 W on Stand-By** and
106-
about **6 W when used with a 61 ms capture resolution**.
106+
about **6 W when used with a 61 ms sampling rate**.
107107

108108
If you are using a AC reporter in conjuction this will heavily skew your signal.
109109
Please either use only an AC or DC reporter, or correct the output data

0 commit comments

Comments
 (0)