Warning about "Lowering scheduler type"

Hi,all,<br>Today I built a NonPeriodicActivity for serial port and it&#39;s working. It&#39;s my first Orocos component..I am quite happy..<br>But it still has some warnings that I can not understand,which are:<br><br>&lt;code&gt;<br>
<br>0.003 [ Warning][SingleThread] Lowering scheduler type to SCHED_OTHER for non-privileged users..<br>0.004 [ Warning][NonPeriodicActivity] Lowering scheduler type to SCHED_OTHER for non-privileged users..<br><br>&lt;/code&gt;<br>
<br>Is that meaning I can not use SCHED_RT and what&#39;s the non-privileged users?<br>How should I make these warnings disappear?<br><br>Best,<br>GL<br><br>

Warning about "Lowering scheduler type"

On Feb 12, 2009, at 08:06 , guoliang liu wrote:

> Hi,all,
> Today I built a NonPeriodicActivity for serial port and it's
> working. It's my first Orocos component..I am quite happy..
> But it still has some warnings that I can not understand,which are:
>
> &#10;&gt;&#10;&gt; 0.003 [ Warning][SingleThread] Lowering scheduler type to  &#10;&gt; SCHED_OTHER for non-privileged users..&#10;&gt; 0.004 [ Warning][NonPeriodicActivity] Lowering scheduler type to  &#10;&gt; SCHED_OTHER for non-privileged users..&#10;&gt;&#10;&gt;
>
> Is that meaning I can not use SCHED_RT and what's the non-privileged
> users?
> How should I make these warnings disappear?

If you are running on Linux, then you either need to be root/sudo to
use the real-time scheduler, or you need to modify /etc/security/
limits.conf (IIRC) and set your "rtprio" limit (then reboot). Then use
"ulimit -r xxx" to actully set your limit to xxx within a shell. Then
you can use the real-time scheduler as a non-priveleged user and you
won't get the above warnings.

There should be plenty of additional advice/details out there under
google ...
S

PS: We obviously need to document this somewhere as this is the second
instance of this question in just a couple of months ... maybe a
questions/troubleshooting section on the wiki?