aboutsummaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorPetri Savolainen <petri.savolainen@nokia.com>2019-09-27 12:53:01 +0300
committerPetri Savolainen <petri.savolainen@nokia.com>2019-10-02 16:20:59 +0300
commitf95ac4d08f59722e10524e3bbe7385044aa2b565 (patch)
treeef6624732c063be4a5d675da60176ca3fd801931 /config
parent79a8bfe88fc65864bd30a9d856c39a657334a843 (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
}