Skip to content

Commit d711e28

Browse files
authored
Merge pull request #3575 from vkarak/feat/poll-control-config
[feat] Updates and improvements to the poll control mechanism
2 parents 3d1ba5c + 37533e5 commit d711e28

File tree

14 files changed

+469
-30
lines changed

14 files changed

+469
-30
lines changed

docs/_static/img/polling-multiproc-default.svg

Lines changed: 1 addition & 0 deletions
Loading

docs/_static/img/polling-multiproc-randomize.svg

Lines changed: 1 addition & 0 deletions
Loading

docs/_static/img/polling-rates.svg

Lines changed: 1 addition & 0 deletions
Loading

docs/config_reference.rst

Lines changed: 64 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ It consists of the following properties, which we also call conventionally *conf
7171
7272
:required: No
7373

74-
A list of `general configuration objects <#general-configuration>`__.
74+
A list of :ref:`general configuration objects <general-configuration>`.
7575

7676
.. py:data:: storage
7777
@@ -1843,6 +1843,8 @@ Result storage configuration
18431843
For a detailed description of this property, have a look at the :attr:`~environments.target_systems` definition for environments.
18441844

18451845

1846+
.. _general-configuration:
1847+
18461848
General Configuration
18471849
=====================
18481850

@@ -1934,6 +1936,67 @@ General Configuration
19341936
Timeout value in seconds used when checking if a git repository exists.
19351937

19361938

1939+
.. _polling_config:
1940+
1941+
.. py:attribute:: general.poll_randomize_ms
1942+
1943+
:required: No
1944+
:default: :obj:`None`
1945+
1946+
.. versionadded:: 4.9
1947+
1948+
Range of randomization of the polling interval in milliseconds.
1949+
1950+
If not :obj:`None`, ReFrame will randomize its polling interval within the given range, otherwise no randomization will occur.
1951+
The range value must be in the form ``[l, h]`` where ``l``, ``h`` are integers such that ``l<=0`` and ``h>=0``.
1952+
1953+
See ":ref:`poll-control`" for more details.
1954+
1955+
1956+
.. py:attribute:: general.poll_rate_decay
1957+
1958+
:required: No
1959+
:default: 0.1
1960+
1961+
.. versionadded:: 4.9
1962+
1963+
The decay factor of the polling rate.
1964+
1965+
This is a real number in the range ``[0,1]``.
1966+
If the decay is ``0``, then the polling rate will be constant at :attr:`~general.poll_rate_max`.
1967+
If the decay is ``1``, then the polling rate will be binary taking either the :attr:`~general.poll_rate_max` or :attr:`~general.poll_rate_min` values.
1968+
1969+
See ":ref:`poll-control`" for more details.
1970+
1971+
1972+
.. py:attribute:: general.poll_rate_max
1973+
1974+
:required: No
1975+
:default: 10
1976+
1977+
.. versionadded:: 4.9
1978+
1979+
The maximum desired polling rate.
1980+
1981+
If :attr:`~general.poll_randomize_ms` is set to a range that allows the polling interval to be decreased (``l<0``), then the effective polling rate can exceed instantaneously the maximum desired rate.
1982+
1983+
See ":ref:`poll-control`" for more details.
1984+
1985+
1986+
.. py:attribute:: general.poll_rate_min
1987+
1988+
:required: No
1989+
:default: 0.1
1990+
1991+
.. versionadded:: 4.9
1992+
1993+
The minimum desired polling rate.
1994+
1995+
When the desired polling rate reaches this value, ReFrame will not decrease it further.
1996+
1997+
See ":ref:`poll-control`" for more details.
1998+
1999+
19372000
.. py:attribute:: general.pipeline_timeout
19382001
19392002
Timeout in seconds for advancing the pipeline in the asynchronous execution policy.

docs/manpage.rst

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2100,6 +2100,69 @@ Whenever an environment variable is associated with a configuration option, its
21002100
.. versionadded:: 3.10.0
21012101

21022102

2103+
.. _polling_envvars:
2104+
2105+
.. envvar:: RFM_POLL_RANDOMIZE_MS
2106+
2107+
Range of randomization of the polling interval in milliseconds.
2108+
2109+
The range is specified in the form ``l,h``.
2110+
2111+
.. table::
2112+
:align: left
2113+
2114+
================================== ==================
2115+
Associated command line option N/A
2116+
Associated configuration parameter :attr:`~config.general.poll_randomize_ms`
2117+
================================== ==================
2118+
2119+
.. versionadded:: 4.9
2120+
2121+
.. envvar:: RFM_POLL_RATE_DECAY
2122+
2123+
The decay factor of the polling rate.
2124+
2125+
.. table::
2126+
:align: left
2127+
2128+
================================== ==================
2129+
Associated command line option N/A
2130+
Associated configuration parameter :attr:`~config.general.poll_rate_decay`
2131+
================================== ==================
2132+
2133+
.. versionadded:: 4.9
2134+
2135+
2136+
.. envvar:: RFM_POLL_RATE_MAX
2137+
2138+
The maximum desired polling rate.
2139+
2140+
.. table::
2141+
:align: left
2142+
2143+
================================== ==================
2144+
Associated command line option N/A
2145+
Associated configuration parameter :attr:`~config.general.poll_rate_max`
2146+
================================== ==================
2147+
2148+
.. versionadded:: 4.9
2149+
2150+
2151+
.. envvar:: RFM_POLL_RATE_MIN
2152+
2153+
The minimum desired polling rate.
2154+
2155+
.. table::
2156+
:align: left
2157+
2158+
================================== ==================
2159+
Associated command line option N/A
2160+
Associated configuration parameter :attr:`~config.general.poll_rate_min`
2161+
================================== ==================
2162+
2163+
.. versionadded:: 4.9
2164+
2165+
21032166
.. envvar:: RFM_PREFIX
21042167

21052168
General directory prefix for ReFrame-generated directories.

0 commit comments

Comments
 (0)