The Open Lighting Project has moved!
We've launched our new site at www.openlighting.org. This wiki will remain and be updated with more technical information.
We've launched our new site at www.openlighting.org. This wiki will remain and be updated with more technical information.
Difference between revisions of "OLA Thread Scheduling"
From wiki.openlighting.org
m |
|||
Line 1: | Line 1: | ||
Since 0.9.4, OLA provides options to control the thread scheduling algorithms, when supported by the host kernel. | Since 0.9.4, OLA provides options to control the thread scheduling algorithms, when supported by the host kernel. | ||
− | Besides the default scheduling policy (SCHED_OTHER), OLA supports SCHED_RR and SCHED_FIFO. You can read about the differences on [http://www.linuxjournal.com/article/3910 | + | Besides the default scheduling policy (SCHED_OTHER), OLA supports SCHED_RR and SCHED_FIFO. You can read about the differences on [http://www.linuxjournal.com/article/3910 The Linux Journal]. |
== Configuration == | == Configuration == |
Revision as of 12:51, 30 November 2014
Since 0.9.4, OLA provides options to control the thread scheduling algorithms, when supported by the host kernel.
Besides the default scheduling policy (SCHED_OTHER), OLA supports SCHED_RR and SCHED_FIFO. You can read about the differences on The Linux Journal.
Configuration
If you're on Linux you need to edit /etc/security/limits.conf and add:
<username> hard rtprio 99 <username> soft rtprio 50
Replace <username> with the user you run olad as.
Running OLA
Start olad with --scheduler-policy and --scheduler-priority. You must provide both flags.
$ olad --scheduler-policy fifo --scheduler-priority 10
The --scheduler-priority flag must be a value less than or equal to the soft rtprio limit set in /etc/security/limits.conf.