Skip to content

Commit c4cd564

Browse files
committed
added readout-defaults
1 parent 4f278ef commit c4cd564

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

doc/configurationParameters.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,36 @@
11
# Readout configuration parameters reference
22

3+
This document describes all the configuration parameters that can be set in readout.
4+
5+
Some parameters control the behavior of readout as soon as it starts, and valid for the lifetime of the process. (1)
6+
7+
Other parameters (2) are set whenever the control state-machine receives the CONFIGURE command (or shortly after startup when running o2-readout-exe outside from the ECS workflow, typically from the command line) and until the RESET command.
8+
The corresponding parameters usually come from a local file or from a central reposity, as provided by the O2 system.
9+
They can be reloaded several time during the lifetime of the process.
10+
11+
12+
# Readout defaults (1)
13+
14+
These are defined in local file `/etc/o2.d/readout-default.cfg`, which is loaded on `o2-readout-exe` startup (if file exists). They are valid for the lifetime of the o2-readout-exe process. There is usually no need for users to edit these settings. The file format is '.ini' style, with `[sections]` and `key=value` pairs.
15+
16+
Following table describe the parameters of the `[readout]` section.
17+
18+
| Parameter name | Type | Default value | Description |
19+
|--|--|--|--|
20+
21+
| memLock | int | 0 | Defines the memory swapping policy. If set, all readout memory is locked in RAM with mlockall() |
22+
| readoutExe | string | | If set, overwrites the current running executable with the one at given path. Used for tests. |
23+
| readoutConfig | string | | If set with readoutExe, launch the new exe with this parameter as argument. Used for tests. |
24+
| statsPublishAddress | string | | If set, address where to publish readout stats, eg "tcp://127.0.0.1:6008". Connect to this service with o2-readout-monitor. |
25+
| statsPublishInterval | string | | If set, interval for readout stats publish, in seconds. |
26+
| db | string | | If set, defines connection parameters to a MySQL database in the form 'user:password@host/dbname'. Runtime statistics are stored in a table. Structure can be created with o2-readout-admin-db. |
27+
| customCommandsEnabled | int | 0 | If set, custom commands are enabled, i.e. launching external scripts at some specific state transitions. See customCommands keyword below. |
28+
| membanksMonitorPath | string | | Path to memory banks monitor output (a local file FIFO, to be connected with o2-readout-monitor). |
29+
| membanksMonitorRate | double | 0 | Rate (in Hertz) at which to publish memory status. |
30+
31+
32+
# Readout configuration file (2)
33+
334
## Sections
435
The readout configuration is split in different sections. Some sections have a unique instance (single name), some may have multiple instances (prefix-[instance name], shown as prefix-\* in this document).
536

0 commit comments

Comments
 (0)