diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2013-05-03 21:30:28 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2013-05-11 08:34:36 +0200 |
commit | c03fe5af31dcdd5fe144dc2c487249009b991ad1 (patch) | |
tree | 228a15c34fa98da1976a7e0770f01a076d7ad336 /contrib | |
parent | 9be5f8c9c067f15ad3f49d8ba9d1db3b42ca1409 (diff) |
sysmobts: Allow to enable realtime priority for the BTS process
The latency to respond to a PH-READY_TO_SEND.ind may not be higher
than 18ms. Currently we are using nice to increase our priority but
for a heavily loaded cell this is not enough. Add an option to enable
realtime scheduling and use it in the screenrc.
Linux offers two realtime scheduling classes these are SCHED_FIFO
and SCHED_RR. For SCHED_FIFO the process is running as long as possible
(potentially taking all the CPU and never yielding it), for SCHED_RR
the process can still be pre-empted at the end of the timeslice.
Using SCHED_RR appears to be the more safe option as a run-a-way
sysmobts process will not be able to take all the CPU time.
For a very loaded cell we also require to use readv/writev to allow
writing multiple primitives in one syscall.
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/screenrc-sysmobts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/screenrc-sysmobts b/contrib/screenrc-sysmobts index 9ee35516..b18b1726 100644 --- a/contrib/screenrc-sysmobts +++ b/contrib/screenrc-sysmobts @@ -1,4 +1,4 @@ chdir /tmp -screen -t BTS 0 /etc/osmocom/respawn.sh /usr/bin/sysmobts -c /etc/osmocom/osmo-bts.cfg -M +screen -t BTS 0 /etc/osmocom/respawn.sh /usr/bin/sysmobts -c /etc/osmocom/osmo-bts.cfg -r 1 -M screen -t PCU 1 /etc/osmocom/respawn-only.sh /usr/bin/osmo-pcu -c /etc/osmocom/osmo-pcu.cfg detach |