aboutsummaryrefslogtreecommitdiffstats
path: root/src/bitvector.h
diff options
context:
space:
mode:
authorAndreas Eversberg <jolly@eversberg.eu>2013-05-05 09:15:11 +0200
committerAndreas Eversberg <jolly@eversberg.eu>2013-05-09 08:58:09 +0200
commit783aa4bcb8aab7fbcd1b91ad225018a06e950f50 (patch)
tree60db876c2cb472c43bc9fee0cafda13a5f8a1927 /src/bitvector.h
parentb6bb55d88c2f85b4cba17330524a40c24e8945b6 (diff)
Allow to enable realtime priority for the BTS process
I ported the Holger's scheduling patch from sysmobts to osmo-pcu. This is usefull, if PCU uses direct access to the DSP of sysmobts. 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.
Diffstat (limited to 'src/bitvector.h')
0 files changed, 0 insertions, 0 deletions