<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>Hi Richard,</p>
<p><br>
</p>
<p>I've just had another task processor max out, this time with the following thread:</p>
<p><br>
</p>
<blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;">
<p><span>pjsip/distributor-000000c7                          1286        513         10        450        500</span></p>
</blockquote>
<p><span><br>
</span></p>
<p><span>All other threads around this are processing very few tasks:</span></p>
<p><span><br>
</span></p>
<blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;">
<p><span></p>
<div><span style="font-size: 12pt;">pjsip/distributor-000000b1                          1745          0          4        450        500</span></div>
</span>
<p></p>
<p><span></p>
<div>pjsip/distributor-000000b2                          1394          0          3        450        500</div>
</span>
<p></p>
<p><span></p>
<div>pjsip/distributor-000000b3                          1408          0          3        450        500</div>
</span>
<p></p>
<p><span></p>
<div>pjsip/distributor-000000b4                          1765          0          6        450        500</div>
</span>
<p></p>
<p><span></p>
<div>pjsip/distributor-000000b5                          1600          0          3        450        500</div>
</span>
<p></p>
<p><span></p>
<div>pjsip/distributor-000000b6                          1683          0          6        450        500</div>
</span>
<p></p>
<p><span></p>
<div>pjsip/distributor-000000b7                          1421          0          4        450        500</div>
</span>
<p></p>
<p><span></p>
<div>pjsip/distributor-000000b8                          1664          0          4        450        500</div>
</span>
<p></p>
<p><span></p>
<div>pjsip/distributor-000000b9                          1514          0          4        450        500</div>
</span>
<p></p>
<p><span></p>
<div>pjsip/distributor-000000ba                          2067          0          4        450        500</div>
</span>
<p></p>
<p><span></p>
<div>pjsip/distributor-000000bb                          1477          0          4        450        500</div>
</span>
<p></p>
<p><span></p>
<div>pjsip/distributor-000000bc                          1740          0          3        450        500</div>
</span>
<p></p>
<p><span></p>
<div>pjsip/distributor-000000bd                          1468          0          4        450        500</div>
</span>
<p></p>
<p><span></p>
<div>pjsip/distributor-000000be                          1313          0          3        450        500</div>
</span>
<p></p>
<p><span></p>
<div>pjsip/distributor-000000bf                          1862          0          6        450        500</div>
</span>
<p></p>
<p><span></p>
<div>pjsip/distributor-000000c0                          1592          0          4        450        500</div>
</span>
<p></p>
<p><span></p>
<div>pjsip/distributor-000000c1                          1637          0          4        450        500</div>
</span>
<p></p>
<p><span></p>
<div>pjsip/distributor-000000c2                          1613          0          4        450        500</div>
</span>
<p></p>
<p><span></p>
<div>pjsip/distributor-000000c3                          2130          0          6        450        500</div>
</span>
<p></p>
<p><span></p>
<div>pjsip/distributor-000000c4                          1825          0          8        450        500</div>
</span>
<p></p>
<p><span></p>
<div>pjsip/distributor-000000c5                          1871          0          4        450        500</div>
</span>
<p></p>
<p><span></p>
<div>pjsip/distributor-000000c6                          1508          0          4        450        500</div>
</span>
<p></p>
<p><span></p>
<div><b>pjsip/distributor-000000c7                          1286        513         10        450        500</b></div>
</span>
<p></p>
<p><span></p>
<div>pjsip/distributor-000000c8                          1892          0          5        450        500</div>
</span>
<p></p>
<p><span></p>
<div>pjsip/distributor-000000c9                          1661          0          3        450        500</div>
</span>
<p></p>
<p><span></p>
<div>pjsip/distributor-000000ca                          1771          0          5        450        500</div>
</span>
<p></p>
<p><span></p>
<div>pjsip/distributor-000000cb                          1433          0          4        450        500</div>
</span>
<p></p>
<p><span></p>
<div>pjsip/distributor-000000cc                          1644          0          6        450        500</div>
</span>
<p></p>
<p><span></p>
<div>pjsip/distributor-000000cd                          1567          0          4        450        500</div>
</span>
<p></p>
<p><span></p>
<div>pjsip/distributor-000000ce                          1738          0          3        450        500</div>
</span>
<p></p>
<p><span></p>
<div>pjsip/distributor-000000cf                          1736          0          3        450        500</div>
</span>
<p></p>
</blockquote>
<p><br>
</p>
<p>Shouldn't any task be distributed evenly across the above threads?</p>
<p><br>
</p>
<p>Kind regards,</p>
<p><br>
</p>
<p>Ross</p>
<br>
<div style="color: rgb(0, 0, 0);">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> asterisk-dev-bounces@lists.digium.com <asterisk-dev-bounces@lists.digium.com> on behalf of Richard Mudgett <rmudgett@digium.com><br>
<b>Sent:</b> 28 June 2016 17:00<br>
<b>To:</b> Asterisk Developers Mailing List<br>
<b>Subject:</b> Re: [asterisk-dev] ASTERISK-26145 - Task Process Issues possibly caused by HEP</font>
<div> </div>
</div>
<div>
<div dir="ltr"><br>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Tue, Jun 28, 2016 at 10:20 AM, Ross Beer <span dir="ltr">
<<a href="mailto:ross.beer@outlook.com" target="_blank">ross.beer@outlook.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex; border-left:1px solid rgb(204,204,204); padding-left:1ex">
<div dir="ltr">
<div style="font-size:12pt; color:rgb(0,0,0); background-color:rgb(255,255,255); font-family:Calibri,Arial,Helvetica,sans-serif">
<p>Hi,</p>
<p><br>
</p>
<p>I agree that the conversation about HEP default settings doesn't warrant a lengthy discussion, however, the fact that the 'task processor' causes asterisk to stop processing packets is a serious issue. This is happening multiple times a day on several boxes.</p>
<p><br>
</p>
<p>I'm trying to identify what is causing over 1500 tasks to back-up in the '<span>subm:rtp_topic-000000de' scheduler. This is proving difficult as you only see counts and not actual waiting tasks.</span></p>
</div>
</div>
</blockquote>
<div><br>
</div>
<div>The res_hep_rtcp.so module is what creates the <span>subm:rtp_topic stasis message bus subscription.  Since you have indicated that you are not using that feature you should not load the module.<br>
<br>
</span></div>
<div><span>The taskprocessors that begin with 'subm:' (m for mailbox) or 'subp:' (p for thread pool) are stasis message bus subscriptions.  The 'subm:' taskprocessors have a single dedicated thread to process the taskprocessor tasks.  The 'subp:' taskprocessors
 do not have a dedicated thread.  Those taskprocessors get executed by an available thread from the stasis thread pool.  The stasis thread pool is configured by the stasis.conf file.<br>
</span></div>
<div><br>
</div>
<div>Richard<br>
</div>
</div>
<br>
</div>
</div>
</div>
</div>
</div>
</body>
</html>