aboutsummaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorJere Leppänen <jere.leppanen@nokia.com>2023-01-17 19:55:00 +0200
committerMatias Elo <matias.elo@nokia.com>2023-02-20 12:19:27 +0200
commitf7e4f55269092b8cd569d8b6ed9455b7080ff611 (patch)
treec0b649902439e0f5179c0edf51d048b73867f5fc /config
parent14f8e6637e973d20b8be3fd587c66595d5788dcc (diff)
linux-gen: sched: add power saving config file options
Add power saving config file options poll_time and sleep_time. Signed-off-by: Jere Leppänen <jere.leppanen@nokia.com> Reviewed-by: Matias Elo <matias.elo@nokia.com>
Diffstat (limited to 'config')
-rw-r--r--config/odp-linux-generic.conf28
1 files changed, 27 insertions, 1 deletions
diff --git a/config/odp-linux-generic.conf b/config/odp-linux-generic.conf
index df5328d1f..142a205d0 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.25"
+config_file_version = "0.1.26"
# System options
system: {
@@ -243,6 +243,32 @@ sched_basic: {
# > 0, events may be dropped by the implementation if the target queue
# is full. To prevent this set 'order_stash_size' to 0.
order_stash_size = 512
+
+ # Power saving options for schedule with wait
+ #
+ # When waiting for events during a schedule call, save power by
+ # sleeping in the poll loop. First, run schedule loop normally for
+ # poll_time_nsec nanoseconds. If there are no events to schedule in that
+ # time, continue polling, but sleep for sleep_time_nsec nanoseconds on
+ # each round.
+ #
+ # During sleep, the thread is not polling for packet input or timers.
+ # Each thread measures time and sleeps independently of other threads.
+ #
+ # When using this feature, it may be necessary to decrease
+ # /proc/<pid>/timerslack_ns, or use a real-time priority. Sleeping may
+ # have an adverse effect on performance for a short time after sleep.
+ powersave: {
+ # Time in nsec to poll before sleeping
+ #
+ # <1: Disabled. Never sleep. sleep_time_nsec is ignored.
+ poll_time_nsec = 0
+
+ # Time in nsec to sleep
+ #
+ # Actual sleep time may vary.
+ sleep_time_nsec = 0
+ }
}
stash: {