diff options
author | Max <msuraev@sysmocom.de> | 2022-11-06 15:39:42 +0300 |
---|---|---|
committer | Max <msuraev@sysmocom.de> | 2022-11-11 17:33:25 +0300 |
commit | f2f35fc5922ede63cc1aa9a5e91dbee3627d1d1b (patch) | |
tree | 8c8801b5df46a183fbf32bcf83e4563ae6e64678 | |
parent | 00ddcfaf5078905203e8084c4b99a54c433fddeb (diff) |
Add realtime scheduling and set priority in service file
This sets highest realtime priority among all Osmocom services.
Related: OS#5687
Change-Id: Id74acf201d4388493f0eeb38909641c662551164
-rw-r--r-- | contrib/systemd/osmo-trx-ipc.service | 5 | ||||
-rw-r--r-- | contrib/systemd/osmo-trx-lms.service | 5 | ||||
-rw-r--r-- | contrib/systemd/osmo-trx-uhd.service | 5 | ||||
-rw-r--r-- | contrib/systemd/osmo-trx-usrp1.service | 5 |
4 files changed, 20 insertions, 0 deletions
diff --git a/contrib/systemd/osmo-trx-ipc.service b/contrib/systemd/osmo-trx-ipc.service index 568fff9..8828393 100644 --- a/contrib/systemd/osmo-trx-ipc.service +++ b/contrib/systemd/osmo-trx-ipc.service @@ -8,6 +8,11 @@ StateDirectory=osmocom WorkingDirectory=%S/osmocom ExecStart=/usr/bin/osmo-trx-ipc -C /etc/osmocom/osmo-trx-ipc.cfg RestartSec=2 +# CPU scheduling policy: +CPUSchedulingPolicy=rr +# For real-time scheduling policies an integer between 1 (lowest priority) and 99 (highest priority): +CPUSchedulingPriority=21 +# See sched(7) for further details on real-time policies and priorities [Install] WantedBy=multi-user.target diff --git a/contrib/systemd/osmo-trx-lms.service b/contrib/systemd/osmo-trx-lms.service index bb4edb2..93e4407 100644 --- a/contrib/systemd/osmo-trx-lms.service +++ b/contrib/systemd/osmo-trx-lms.service @@ -8,6 +8,11 @@ StateDirectory=osmocom WorkingDirectory=%S/osmocom ExecStart=/usr/bin/osmo-trx-lms -C /etc/osmocom/osmo-trx-lms.cfg RestartSec=2 +# CPU scheduling policy: +CPUSchedulingPolicy=rr +# For real-time scheduling policies an integer between 1 (lowest priority) and 99 (highest priority): +CPUSchedulingPriority=21 +# See sched(7) for further details on real-time policies and priorities [Install] WantedBy=multi-user.target diff --git a/contrib/systemd/osmo-trx-uhd.service b/contrib/systemd/osmo-trx-uhd.service index aaf5e8c..f78888c 100644 --- a/contrib/systemd/osmo-trx-uhd.service +++ b/contrib/systemd/osmo-trx-uhd.service @@ -8,6 +8,11 @@ StateDirectory=osmocom WorkingDirectory=%S/osmocom ExecStart=/usr/bin/osmo-trx-uhd -C /etc/osmocom/osmo-trx-uhd.cfg RestartSec=2 +# CPU scheduling policy: +CPUSchedulingPolicy=rr +# For real-time scheduling policies an integer between 1 (lowest priority) and 99 (highest priority): +CPUSchedulingPriority=21 +# See sched(7) for further details on real-time policies and priorities [Install] WantedBy=multi-user.target diff --git a/contrib/systemd/osmo-trx-usrp1.service b/contrib/systemd/osmo-trx-usrp1.service index 2a662d3..401139e 100644 --- a/contrib/systemd/osmo-trx-usrp1.service +++ b/contrib/systemd/osmo-trx-usrp1.service @@ -8,6 +8,11 @@ StateDirectory=osmocom WorkingDirectory=%S/osmocom ExecStart=/usr/bin/osmo-trx-usrp1 -C /etc/osmocom/osmo-trx-usrp1.cfg RestartSec=2 +# CPU scheduling policy: +CPUSchedulingPolicy=rr +# For real-time scheduling policies an integer between 1 (lowest priority) and 99 (highest priority): +CPUSchedulingPriority=21 +# See sched(7) for further details on real-time policies and priorities [Install] WantedBy=multi-user.target |