<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> PID CLS RTPRIO NI PRI %CPU STAT COMMAND</div><div> 1299 TS - 0 19 19.8 RLl pd</div><div> 1299 TS - 0 19 0.0 SLl pd</div><div> 1299 FF 57 - 97 2.1 SLl pd</div><div> 1299 TS - 0 19 0.0 SLl 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> PID CLS RTPRIO NI PRI %CPU STAT COMMAND</div><div> 1263 TS - 0 19 23.3 RLl pd</div><div> 1263 TS - 0 19 0.0 SLl pd</div><div> 1263 FF 57 - 97 1.8 SLl pd</div><div> 1263 TS - 0 19 0.0 SLl 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> PID CLS RTPRIO NI PRI %CPU STAT COMMAND</div><div> 1237 FF <b>6</b> - 46 30.9 SLl pd</div><div> 1237 FF <b>6</b> - 46 0.0 SLl pd</div><div> 1237 FF 57 - 97 1.1 SLl pd</div><div> 1237 FF <b>6</b> - 46 0.0 SLl 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: <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>