<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><br></div><div>Hey Edgar,</div><div><br></div><div>Try a nightly beta build of 0.43, I think this should be fixed:</div><div><br></div><div><a href="http://autobuild.puredata.info/auto-build/latest/">http://autobuild.puredata.info/auto-build/latest/</a></div><div><br></div><div>.hc</div><br><div><div>On Feb 23, 2012, at 4:49 PM, Edgar Berdahl wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div 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></div>_______________________________________________<br><a href="mailto:Pd-list@iem.at">Pd-list@iem.at</a> mailing list<br>UNSUBSCRIBE and account-management -&gt; <a href="http://lists.puredata.info/listinfo/pd-list">http://lists.puredata.info/listinfo/pd-list</a><br></blockquote></div><br><div>
<span class="Apple-style-span" style="font-size: 12px; "><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><br class="Apple-interchange-newline"><div>----------------------------------------------------------------------------</div><div><br class="khtml-block-placeholder"></div><div>Access to computers should be unlimited and total.&nbsp; - the hacker ethic</div><br class="Apple-interchange-newline"></span></span>
</div>
<br></body></html>