aboutsummaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorPetri Savolainen <petri.savolainen@nokia.com>2019-09-27 12:53:01 +0300
committerMatias Elo <matias.elo@nokia.com>2019-11-21 14:45:29 +0200
commit6d1ad1489731f9b7775b4d7be22fc6bb5c15515c (patch)
tree00361b77d8bb6aa8e5f59e4fa6fb1f99964dfabf /config
parenta5939ef58761e6eae6409c9219c73c1207a82019 (diff)
linux-gen: timer: add poll interval time conf option
Improve timer accuracy by increasing timer pool scan rate to twice per resolution. Add configure file option to limit inline timer polling rate in nanoseconds. With the default value, each thread checks if timer pool scan is needed in maximum once per 500us. Polling rate is increased if a timer pool is created with a higher resolution requirement. Signed-off-by: Petri Savolainen <petri.savolainen@nokia.com> Reviewed-by: Matias Elo <matias.elo@nokia.com>
Diffstat (limited to 'config')
-rw-r--r--config/odp-linux-generic.conf11
1 files changed, 10 insertions, 1 deletions
diff --git a/config/odp-linux-generic.conf b/config/odp-linux-generic.conf
index 9a5dbea69..4fec05047 100644
--- a/config/odp-linux-generic.conf
+++ b/config/odp-linux-generic.conf
@@ -16,7 +16,7 @@
# Mandatory fields
odp_implementation = "linux-generic"
-config_file_version = "0.1.7"
+config_file_version = "0.1.8"
# Shared memory options
shm: {
@@ -158,4 +158,13 @@ timer: {
# Increasing the value reduces timer processing overhead while
# decreasing accuracy. Ignored when inline timer is not enabled.
inline_poll_interval = 10
+
+ # Inline timer poll interval in nanoseconds
+ #
+ # When inline_poll_interval is larger than 1, use this option to limit
+ # inline timer polling rate in nanoseconds. By default, this defines the
+ # maximum rate a thread may poll timers. If a timer pool is created with
+ # a higher resolution than this, the polling rate is increased
+ # accordingly.
+ inline_poll_interval_nsec = 500000
}