Document realtime options in .service units

It's not immediately obvious what numeric values mean for CPU scheduling policy.
Let's document this and add doc reference.

Related: OS#4107
Change-Id: Ib047762a336851e6205d77c83068a99d8a868e8b
This commit is contained in:
Max 2022-09-09 21:31:43 +07:00 committed by msuraev
parent 9b7a48421c
commit e826d78399
5 changed files with 15 additions and 5 deletions

View File

@ -11,9 +11,11 @@ Restart=always
RestartSec=2
RestartPreventExitStatus=1
# The msg queues must be read fast enough
# CPU scheduling policy:
CPUSchedulingPolicy=rr
# For real-time scheduling policies an integer between 1 (lowest priority) and 99 (highest priority):
CPUSchedulingPriority=1
# See sched(7) for further details on real-time policies and priorities
[Install]
WantedBy=multi-user.target

View File

@ -11,9 +11,11 @@ Restart=always
RestartSec=2
RestartPreventExitStatus=1
# The msg queues must be read fast enough
# CPU scheduling policy:
CPUSchedulingPolicy=rr
# For real-time scheduling policies an integer between 1 (lowest priority) and 99 (highest priority):
CPUSchedulingPriority=1
# See sched(7) for further details on real-time policies and priorities
[Install]
WantedBy=multi-user.target

View File

@ -13,9 +13,11 @@ Restart=always
RestartSec=2
RestartPreventExitStatus=1
# The msg queues must be read fast enough
# CPU scheduling policy:
CPUSchedulingPolicy=rr
# For real-time scheduling policies an integer between 1 (lowest priority) and 99 (highest priority):
CPUSchedulingPriority=1
# See sched(7) for further details on real-time policies and priorities
[Install]
WantedBy=multi-user.target

View File

@ -9,9 +9,11 @@ WorkingDirectory=%S/osmocom
Restart=always
RestartSec=2
# Let it process messages quickly enough
# CPU scheduling policy:
CPUSchedulingPolicy=rr
# For real-time scheduling policies an integer between 1 (lowest priority) and 99 (highest priority):
CPUSchedulingPriority=1
# See sched(7) for further details on real-time policies and priorities
[Install]
WantedBy=multi-user.target

View File

@ -9,9 +9,11 @@ WorkingDirectory=%S/osmocom
Restart=always
RestartSec=2
# Let it process messages quickly enough
# CPU scheduling policy:
CPUSchedulingPolicy=rr
# For real-time scheduling policies an integer between 1 (lowest priority) and 99 (highest priority):
CPUSchedulingPriority=1
# See sched(7) for further details on real-time policies and priorities
[Install]
WantedBy=multi-user.target