<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Hi,</div><div><br></div><div>I believe that the -rt flag is still ignored in extended version 0.42.5. To debug this, I am using my own version of ps which lists the threads and also RTPRIO priorities:</div><div>ps -eLo pid,class,rtprio,ni,pri,pcpu,stat,comm --sort -rtprio</div><div><br></div><div>Depending on your kernel settings, it might be harder for you to verify this, but I imagine you might find in the source code where it parses "flags" in .pdextended that it simply doesn't check for -rt.</div><div><br></div><div><div>If I start pd with -rt specified neither in ~/.pdextended nor on the command line, I get these priorities:</div><div>&nbsp; PID CLS RTPRIO &nbsp;NI PRI %CPU STAT COMMAND</div><div>&nbsp;1299 TS &nbsp; &nbsp; &nbsp; - &nbsp; 0 &nbsp;19 19.8 RLl &nbsp;pd</div><div>&nbsp;1299 TS &nbsp; &nbsp; &nbsp; - &nbsp; 0 &nbsp;19 &nbsp;0.0 SLl &nbsp;pd</div><div>&nbsp;1299 FF &nbsp; &nbsp; &nbsp;57 &nbsp; - &nbsp;97 &nbsp;2.1 SLl &nbsp;pd</div><div>&nbsp;1299 TS &nbsp; &nbsp; &nbsp; - &nbsp; 0 &nbsp;19 &nbsp;0.0 SLl &nbsp;pd</div></div><div><div><br></div><div>but if I start with -rt "flags" field of ~/.pdextended I get the same realtime priority for all the pd threads!</div><div>&nbsp; PID CLS RTPRIO &nbsp;NI PRI %CPU STAT COMMAND</div><div>&nbsp;1263 TS &nbsp; &nbsp; &nbsp; - &nbsp; 0 &nbsp;19 23.3 RLl &nbsp;pd</div><div>&nbsp;1263 TS &nbsp; &nbsp; &nbsp; - &nbsp; 0 &nbsp;19 &nbsp;0.0 SLl &nbsp;pd</div><div>&nbsp;1263 FF &nbsp; &nbsp; &nbsp;57 &nbsp; - &nbsp;97 &nbsp;1.8 SLl &nbsp;pd</div><div>&nbsp;1263 TS &nbsp; &nbsp; &nbsp; - &nbsp; 0 &nbsp;19 &nbsp;0.0 SLl &nbsp;pd</div><div>(I even tried putting -rt in two different places in "flags")</div><div><br></div><div><div>However, if I start using -rt on the command line I get the following priorities, for which all of the pd threads have at least RTPRIO 6:</div><div>&nbsp; PID CLS RTPRIO &nbsp;NI PRI %CPU STAT COMMAND</div><div>&nbsp;1237 FF &nbsp; &nbsp; &nbsp; <b>6</b> &nbsp; - &nbsp;46 30.9 SLl &nbsp;pd</div><div>&nbsp;1237 FF &nbsp; &nbsp; &nbsp; <b>6</b> &nbsp; - &nbsp;46 &nbsp;0.0 SLl &nbsp;pd</div><div>&nbsp;1237 FF &nbsp; &nbsp; &nbsp;57 &nbsp; - &nbsp;97 &nbsp;1.1 SLl &nbsp;pd</div><div>&nbsp;1237 FF &nbsp; &nbsp; &nbsp; <b>6</b> &nbsp; - &nbsp;46 &nbsp;0.0 SLl &nbsp;pd</div></div><div>and then I don't get dropouts anymore. So for me, it is essential to use this option.</div><div><br></div></div><div><br></div><div>For the time being, my workaround is simply to put this shell script in ~/bin to add -rt to the flags every time the user calls pd:</div><div><div>#!/bin/bash</div><div>#</div><div># Shell script to make pd always start with -rt, no matter what</div><div># the user types.</div><div>/usr/bin/pd -rt $*</div></div><div><br></div><div><br></div><div>Warm regards!</div><div>- Edgar</div><div><br></div><div>PS. See also: &nbsp;<a href="http://lists.puredata.info/pipermail/pd-list/2006-08/041087.html">http://lists.puredata.info/pipermail/pd-list/2006-08/041087.html</a></div></body></html>