<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Sep 30, 2016, at 08:05 , Sebastian Huber <<a href="mailto:sebastian.huber@embedded-brains.de" class="">sebastian.huber@embedded-brains.de</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">On 30/09/16 12:35, <a href="mailto:dufault@hda.com" class="">dufault@hda.com</a> wrote:<br class=""><blockquote type="cite" class=""><br class=""><blockquote type="cite" class="">On Sep 30, 2016, at 01:49 , Sebastian Huber <br class=""><<a href="mailto:sebastian.huber@embedded-brains.de" class="">sebastian.huber@embedded-brains.de</a> <br class=""><<a href="mailto:sebastian.huber@embedded-brains.de" class="">mailto:sebastian.huber@embedded-brains.de</a>>> wrote:<br class=""><br class="">Hello Peter,<br class=""><br class="">On 30/09/16 00:13, Peter Dufault wrote:<br class=""><blockquote type="cite" class="">I’m moving an older application to 4.12 and having performance <br class="">issues compared to “4.11” (aka “4.10.99”) from around 2012.<br class=""></blockquote><br class="">what do you mean with performance issues?<br class=""></blockquote><br class="">The version running in the field is running a 10KHz servo using the <br class="">“beatnik” BSP with about a 50% CPU load (based on time-stamps from the <br class="">powerpc time counter at certain times during the servo loop collected <br class="">at the frequency, so I can plot them and see where there are any funny <br class="">bursts in the different phases of the work, interrupt at 10KHz, very <br class="">high priority thread (commute) at 10KHz, lower priority thread run <br class="">lest often (servo, 5KHz), etc ). In the version I’ve just built it’s <br class="">finishes with the final phase at 90% of the 10KHz period, and fails <br class="">after a short time. I’ve lowered the interrupt rate to 6KHz to get it <br class="">to even run reliably.<br class=""></blockquote><br class="">Are you able to get a histogram of the times spent in each function for <br class="">both version?<br class=""><br class="">Compiler and configuration options are the same? How did you configure <br class="">your BSP? Do both versions use the AltiVec unit?<br class=""><br class=""></div></div></blockquote><div><br class=""></div>Same compiler and configuration options? Well, no, we’re talking 2011 4.10.99 versus last weeks master. Neither version disables the AltiVec unit so the usage may be based on the compiler version.</div><div><br class=""></div><div>I’ve rolled back to November 2011 and will work with that. Once it is functional I’ll see if I can get it work both on 4.11 (what I am using for the MPC5554) and on 4.12 (since you, Sebastian, commented it is much better).</div><div><br class=""></div><div>At the end of next week I’d like to understand the plans for RTEMS releases. Obviously 4.11 was, well, erm, a very slowly released release. I’ve based releases on unreleased 4.11’s that go back the last five years. If someone needs to follow up on this please start a new thread and realize I may not participate - I have a lot of work to do before next Tuesday PM.</div><div><br class=""></div><div><blockquote type="cite" class=""><div class=""><div class=""><blockquote type="cite" class=""><blockquote type="cite" class=""><blockquote type="cite" class="">I started everything all pthreads with the SCHED_FIFO policy (I have <br class="">a single wrapper around pthread_create() that I use), and I’m <br class="">guessing this field has nothing to do with that. Some are now DFLT <br class="">and PRIO.<br class=""><br class="">I note that both WAITID and WAITQUEUE are always 0 in the DFLT case.<br class=""><br class="">- Does PRIO mean the priority is boosted? I don’t expect that, <br class="">especially for the “muxmon” or “sokmon” threads.<br class="">- What does DFLT mean?<br class=""></blockquote><br class="">[DFLT] means this thread doesn't wait on a thread queue<br class="">[FIFO] means it waits on a thread queue in FIFO order<br class="">[PRIO] means it waits on a thread queue in priority order<br class=""><br class="">The integer is the thread queue pointer value.<br class=""></blockquote><br class="">I started everything using SCHED_FIFO. What’s the relationship <br class="">between SCHED_FIFO, a FIFO thread queue and a PRIO thread queue? With <br class="">SCHED_FIFO I expect something to get blocked in FIFO order behind all <br class="">other threads of the same priority, so I don’t understand this.<br class=""></blockquote><br class="">The SCHED_FIFO scheduling policy of the threads has no impact on the <br class="">thread queue discipline.<br class=""><br class=""><br class=""></div></div></blockquote><br class=""></div><div>What should I read to understand what the "thread queue discipline” means, so I can understand why some are PRIO and some are FIFO?</div><br class=""><div class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; border-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-stroke-width: 0px;"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; border-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-stroke-width: 0px;"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;">Peter<br class="">-----------------<br class="">Peter Dufault<br class="">HD Associates, Inc. Software and System Engineering</span></font></div><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;"><br class=""></span></font></div>This email, like most email, is delivered unencrypted via internet email protocols subject to interception and tampering. Contact HDA to discuss methods we can use that ensure secure communication.</span></div></span></div></div></div></div></div></div></div>
</div>
<br class=""></body></html>