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
- Add architecture generation next to their names
- Wrap some parts in a `details` to shorten the page length
- Change some collapsible blocks for non-collapsible blocks
- Fix lines highlights of CSV output
- Center infos in tables
| Intel Sandy Bridge and [newer](https://en.wikipedia.org/wiki/List_of_Intel_Core_processors#Core_i_(2nd_gen)) (except for above mentions) | :material-check: Supported |
24
26
25
-
???+ info "HWPC Sensor PreRequisites"
27
+
!!! note "HWPC Sensor PreRequisites"
26
28
In addition of a supported architecture, there is some pre-requisites:
29
+
27
30
- Using a Linux distribution exposing the [perf](https://perf.wiki.kernel.org/index.php/Main_Page) api
28
31
- Using Cgroup version 1 when using version 1.2 or older. See [this section](../cgroup/cgroup_v1_activation.md) about its configuration
29
32
- Deploying on a physical device as the HWPC Sensor must have access to the real CPU register
@@ -49,82 +52,82 @@ Here is a sample to deploy the latest image version available.
49
52
50
53
The following tabs gives a complete overview of available parameters, along with their default values and description.
51
54
52
-
### Global parameters
55
+
??? info "Global Parameters"
53
56
54
-
The table below shows the different parameters related to the Sensor global configuration, nested objects (system, container, output) are described in dedicated sections below:
57
+
The table below shows the different parameters related to the Sensor global configuration, nested objects (system, container, output) are described in dedicated sections below:
55
58
56
-
| Parameter | Type | CLI shortcut | Default Value | Description |
|`verbose`|`bool` (flag) |`v`|`false`| Verbose or quiet mode |
59
-
|`frequency`|`int`|`f`|`1000`| The time in milliseconds between two reports |
60
-
|`name`|`string`|`n`| - | Name of the sensor |
61
-
|`cgroup_basepath`|`string`|`p`|`/sys/fs/cgroup` (`cgroup` V2) | The base path for `cgroups`. To use `cgroup` V1 `/sys/fs/cgroup/perf_event` needs to be used as value |
62
-
|`system`|`dict`|`s`| - | A system group with a monitoring type and a list of system events (cf. [`system` Group Parameters](hwpc-sensor.md#system-and-container-groups-parameters)) |
63
-
|`container`|`dict`|`c`| - | A group with a monitoring type and a list of events (cf. [`system` Group Parameters](hwpc-sensor.md#system-and-container-groups-parameters)) |
64
-
|`output`|`dict`|`r`| { "type": "csv", "directory": "." } | The [output information](hwpc-sensor.md#output), the Sensor only supports [MongoDB](./hwpc-sensor.md#mongodb-output) (`mongodb`), [CSV](./hwpc-sensor.md#csv-output) (`csv`) and [socket](./hwpc-sensor.md#socket-output) as output. |
59
+
| Parameter | Type | CLI shortcut | Default Value | Description |
|`frequency` | `int` | `f` | `1000` | The time in milliseconds between two reports |
63
+
|`name` | `string` | `n` | - | Name of the sensor |
64
+
|`cgroup_basepath` | `string` | `p` | `/sys/fs/cgroup` (`cgroup` V2) | The base path for `cgroups`. To use `cgroup` V1 `/sys/fs/cgroup/perf_event` needs to be used as value |
65
+
|`system` | `dict` | `s` | - | A system group with a monitoring type and a list of system events (cf. [`system` Group Parameters](hwpc-sensor.md#system-and-container-groups-parameters)) |
66
+
|`container` | `dict` | `c` | - | A group with a monitoring type and a list of events (cf. [`system` Group Parameters](hwpc-sensor.md#system-and-container-groups-parameters)) |
67
+
|`output` | `dict`| `r` | { "type": "csv", "directory": "." } | The [output information](hwpc-sensor.md#output), the Sensor only supports [MongoDB](./hwpc-sensor.md#mongodb-output) (`mongodb`), [CSV](./hwpc-sensor.md#csv-output) (`csv`) and [socket](./hwpc-sensor.md#socket-output) as output. |
65
68
66
-
### `system` and `container` Groups Parameters
69
+
??? info "Group Parameters (`system` and `container`)"
67
70
68
-
The table below shows the different parameters related to the Sensor `system` and `container` configuration fields:
71
+
The table below shows the different parameters related to the Sensor `system` and `container` configuration fields:
69
72
70
-
| Parameter | Type | CLI shortcut | Default Value | Description |
|`events`|`string`|`e`| - | List of events to be monitored. As CLI parameter, each event is indicated with `e`. The structure of events is given [below](hwpc-sensor.md#events)|
73
-
|`monitoring_type`|`string` ( **one of**`MONITOR_ONE_CPU_PER_SOCKET`**or**`MONITOR_ALL_CPU_PER_SOCKET` ) |`o` (flag) |`MONITOR_ALL_CPU_PER_SOCKET`| The monitoring type. If `o` is specified as CLI parameter, `MONITOR_ONE_CPU_PER_SOCKET` is used as type |
73
+
| Parameter | Type | CLI shortcut | Default Value | Description |
|`events` | `string` | `e` | - | List of events to be monitored. As CLI parameter, each event is indicated with `e`. The structure of events is given [below](hwpc-sensor.md#events) |
76
+
|`monitoring_type` | `string` ( **one of** `MONITOR_ONE_CPU_PER_SOCKET` **or** `MONITOR_ALL_CPU_PER_SOCKET` ) | `o` (flag) | `MONITOR_ALL_CPU_PER_SOCKET` | The monitoring type. If `o` is specified as CLI parameter, `MONITOR_ONE_CPU_PER_SOCKET` is used as type |
74
77
75
-
### Events
78
+
??? info "Group Events"
76
79
77
-
Table below depicts the different group events for compatible Intel and AMD architectures.
80
+
Table below depicts the different group events for compatible Intel and AMD architectures.
78
81
79
-
| Architectures | Group | Events |
80
-
| ------------- | ----- | ------------- |
81
-
|Intel Sandy Bridge and newer, AMD Zen 2 |`rapl`|`RAPL_ENERGY_PKG`, `RAPL_ENERGY_DRAM`|
82
-
|Intel Sandy Bridge and newer, AMD Zen 2 |`msr`|`TSC`, `APERF`, `MPERF`|
83
-
|Intel Skylake, Whiskey Lake, Coffee Lake|`core`|`CPU_CLK_THREAD_UNHALTED:REF_P`, `CPU_CLK_THREAD_UNHALTED:THREAD_P`, `LLC_MISSES`,`INSTRUCTIONS_RETIRED`|
84
-
|Intel Sandy Bridge, Comet Lake |`core`|`CPU_CLK_UNHALTED:REF_P`, `CPU_CLK_UNHALTED:THREAD_P`, `LLC_MISSES`,`INSTRUCTIONS_RETIRED`|
85
-
|AMD Zen 2 |`core`|`CYCLES_NOT_IN_HALT`, `RETIRED_INSTRUCTIONS` , `RETIRED_UOPS`|
86
-
|AMD Zen 3 |`core`|`CYCLES_NOT_IN_HALT`, `RETIRED_INSTRUCTIONS` , `RETIRED_OPS`|
82
+
| Architectures | Group | Events |
83
+
| ------------- | ----- | ------------- |
84
+
|Intel Sandy Bridge and newer, AMD Zen 2 | `rapl` | `RAPL_ENERGY_PKG`, `RAPL_ENERGY_DRAM`|
85
+
|Intel Sandy Bridge and newer, AMD Zen 2 | `msr` | `TSC`, `APERF`, `MPERF`|
The following CLI command shows how to launch an instance of HWPC Sensor with the same configuration as [above](hwpc-sensor.md#running-the-sensor-with-a-configuration-file), again two example are provided for both possible output:
213
216
214
-
???+ example "Examples using a CLI Parameters"
217
+
!!! example "Examples using a CLI Parameters"
215
218
216
219
=== "CLI with MongoDB Output"
217
220
@@ -251,9 +254,8 @@ The following CLI command shows how to launch an instance of HWPC Sensor with th
Your [`HWPCReports`](../reports/reports.md#hwpc-reports) will be stored on MongoDB or in the `hwpc_reports.d`directory regarding the output type selected.
0 commit comments