From 1002c4330d94a866550a6f359315cccf86605bfb Mon Sep 17 00:00:00 2001 From: Max Date: Sun, 6 Nov 2022 15:44:12 +0300 Subject: [PATCH] Update and document realtime scheduling priority in service file Related: OS#5687 Change-Id: I1694af74eee2624709ad6cebbc4fb37320e2ef9d --- contrib/systemd/osmo-pcu.service | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/contrib/systemd/osmo-pcu.service b/contrib/systemd/osmo-pcu.service index 73d8b9c4..94616e34 100644 --- a/contrib/systemd/osmo-pcu.service +++ b/contrib/systemd/osmo-pcu.service @@ -9,10 +9,11 @@ WorkingDirectory=%S/osmocom Restart=always RestartSec=2 RestartPreventExitStatus=1 - -# The msg queues must be read fast enough +# CPU scheduling policy: CPUSchedulingPolicy=rr -CPUSchedulingPriority=1 +# For real-time scheduling policies an integer between 1 (lowest priority) and 99 (highest priority): +CPUSchedulingPriority=11 +# See sched(7) for further details on real-time policies and priorities [Install] WantedBy=multi-user.target