<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
Hello,<br>
<br>
<br>
On 4/9/10 6:54 AM, dotnetdub wrote:
<blockquote
 cite="mid:h2n3fa7ab6e1004082154j67ef8f1bo847bb8c630861e74@mail.gmail.com"
 type="cite">Hello List,
  <div><br>
  </div>
  <div>I have been running a very stable Kamailio 1.4 install for over
a year now with no downtime. From time to time I get a message from the
OS telling me that task kamailio:xxxx blocked for more than 120 seconds
and a dump into syslog.</div>
  <div><br>
  </div>
  <div>I recently setup Kamailio 3.01 and it's been running for around
3 weeks now. Purely testing at the moment, there is only 1 SIP
registration and almost no activity most of the time. <br>
  </div>
</blockquote>
the messages refer to mi_datagram processes. These processes listen on
a unixsocket as I could get from the trace, and if there is no mi
command, they stay blocked.<br>
<br>
I haven't seen such messages so far, what is your OS?<br>
<br>
They should be harmless, anyhow these processes don't handle sip
messages, just mi commands send via unixsocket.<br>
<br>
Cheers,<br>
Daniel<br>
<br>
<blockquote
 cite="mid:h2n3fa7ab6e1004082154j67ef8f1bo847bb8c630861e74@mail.gmail.com"
 type="cite">
  <div><br>
  </div>
  <div>I was checking dmesg and:</div>
  <div><br>
  </div>
  <div>
  <div>[269844.208011] INFO: task kamailio:28504 blocked for more than
120 seconds.</div>
  <div>[269844.208093] "echo 0 &gt;
/proc/sys/kernel/hung_task_timeout_secs" disables this message.</div>
  <div>[269844.208178] kamailio &nbsp; &nbsp; &nbsp;D f6d77bf8 &nbsp; &nbsp; 0 28504 &nbsp;28484</div>
  <div>[269844.208180] &nbsp; &nbsp; &nbsp; &nbsp;f771e140 00000082 00000002 f6d77bf8
f7091390 f771e2cc c4019020 00000000&nbsp;</div>
  <div>[269844.208184] &nbsp; &nbsp; &nbsp; &nbsp;00000000 011615c9 f7091398 00000282
00000000 00000000 00000000 ffffffff&nbsp;</div>
  <div>[269844.208188] &nbsp; &nbsp; &nbsp; &nbsp;f5cba384 f5cba38c f5cba388 f771e140
c02c91ec f6969d68 f5cba38c f771e140&nbsp;</div>
  <div>[269844.208191] Call Trace:</div>
  <div>[269844.208203] &nbsp;[&lt;c02c91ec&gt;]
__mutex_lock_slowpath+0x50/0x7b</div>
  <div>[269844.208208] &nbsp;[&lt;c02c9082&gt;] mutex_lock+0xa/0xb</div>
  <div>[269844.208210] &nbsp;[&lt;c02b7d4d&gt;] unix_dgram_recvmsg+0x3e/0x231</div>
  <div>[269844.208214] &nbsp;[&lt;c0161beb&gt;]
get_page_from_freelist+0xc1/0x3e9</div>
  <div>[269844.208218] &nbsp;[&lt;c0161045&gt;] __rmqueue_smallest+0x83/0xe3</div>
  <div>[269844.208221] &nbsp;[&lt;c025f771&gt;] sock_recvmsg+0xde/0xf9</div>
  <div>[269844.208226] &nbsp;[&lt;c01387b0&gt;]
autoremove_wake_function+0x0/0x2d</div>
  <div>[269844.208231] &nbsp;[&lt;c01620e9&gt;]
__alloc_pages_internal+0xb5/0x34e</div>
  <div>[269844.208236] &nbsp;[&lt;c0260595&gt;] sys_recvfrom+0xb4/0x116</div>
  <div>[269844.208239] &nbsp;[&lt;c011af13&gt;] do_page_fault+0x0/0x8f9</div>
  <div>
[269844.208242] &nbsp;[&lt;c0108540&gt;] do_notify_resume+0x5f8/0x649</div>
  <div>[269844.208247] &nbsp;[&lt;c011b3c5&gt;] do_page_fault+0x4b2/0x8f9</div>
  <div>[269844.208250] &nbsp;[&lt;c0260a48&gt;] sys_socketcall+0x135/0x19e</div>
  <div>[269844.208254] &nbsp;[&lt;c0108853&gt;] sysenter_past_esp+0x78/0xb1</div>
  <div>[269844.208257] &nbsp;[&lt;c02c0000&gt;] xenfb_probe+0xd1/0x35b</div>
  <div>[269844.208261] &nbsp;=======================</div>
  <div>[269844.208262] INFO: task kamailio:28506 blocked for more than
120 seconds.</div>
  <div>[269844.208314] "echo 0 &gt;
/proc/sys/kernel/hung_task_timeout_secs" disables this message.</div>
  <div>[269844.208395] kamailio &nbsp; &nbsp; &nbsp;D d0e00947 &nbsp; &nbsp; 0 28506 &nbsp;28484</div>
  <div>[269844.208397] &nbsp; &nbsp; &nbsp; &nbsp;f77f8e60 00000082 00000002 d0e00947
00004292 f77f8fec c4024020 00000001&nbsp;</div>
  <div>[269844.208401] &nbsp; &nbsp; &nbsp; &nbsp;00000000 00000001 00000002 00000000
f7091398 00000001 00000001 c01211f2&nbsp;</div>
  <div>[269844.208404] &nbsp; &nbsp; &nbsp; &nbsp;f5cba384 f5cba38c f5cba388 f77f8e60
c02c91ec f5cba38c f60add68 f77f8e60&nbsp;</div>
  <div>[269844.208408] Call Trace:</div>
  <div>[269844.208410] &nbsp;[&lt;c01211f2&gt;] __wake_up_sync+0x2a/0x3e</div>
  <div>[269844.208413] &nbsp;[&lt;c02c91ec&gt;]
__mutex_lock_slowpath+0x50/0x7b</div>
  <div>[269844.208416] &nbsp;[&lt;c02c9082&gt;] mutex_lock+0xa/0xb</div>
  <div>[269844.208418] &nbsp;[&lt;c02b7d4d&gt;] unix_dgram_recvmsg+0x3e/0x231</div>
  <div>[269844.208421] &nbsp;[&lt;c0161beb&gt;]
get_page_from_freelist+0xc1/0x3e9</div>
  <div>[269844.208424] &nbsp;[&lt;c0161045&gt;] __rmqueue_smallest+0x83/0xe3</div>
  <div>[269844.208427] &nbsp;[&lt;c025f771&gt;] sock_recvmsg+0xde/0xf9</div>
  <div>[269844.208431] &nbsp;[&lt;c01387b0&gt;]
autoremove_wake_function+0x0/0x2d</div>
  <div>[269844.208435] &nbsp;[&lt;c01620e9&gt;]
__alloc_pages_internal+0xb5/0x34e</div>
  <div>[269844.208440] &nbsp;[&lt;c0260595&gt;] sys_recvfrom+0xb4/0x116</div>
  <div>[269844.208444] &nbsp;[&lt;c0180d0d&gt;] cp_new_stat64+0xfc/0x10e</div>
  <div>[269844.208449] &nbsp;[&lt;c011b3c5&gt;] do_page_fault+0x4b2/0x8f9</div>
  <div>[269844.208452] &nbsp;[&lt;c0260a48&gt;] sys_socketcall+0x135/0x19e</div>
  <div>[269844.208456] &nbsp;[&lt;c0108853&gt;] sysenter_past_esp+0x78/0xb1</div>
  <div>[269844.208459] &nbsp;[&lt;c02c0000&gt;] xenfb_probe+0xd1/0x35b</div>
  <div>[269844.208462] &nbsp;=======================</div>
  <div>[274198.229285] INFO: task kamailio:28504 blocked for more than
120 seconds.</div>
  <div>[274198.229340] "echo 0 &gt;
/proc/sys/kernel/hung_task_timeout_secs" disables this message.</div>
  <div>[274198.229422] kamailio &nbsp; &nbsp; &nbsp;D f6d77bf8 &nbsp; &nbsp; 0 28504 &nbsp;28484</div>
  <div>[274198.229425] &nbsp; &nbsp; &nbsp; &nbsp;f771e140 00000082 00000002 f6d77bf8
f7091390 f771e2cc c4019020 00000000&nbsp;</div>
  <div>[274198.229429] &nbsp; &nbsp; &nbsp; &nbsp;00000000 011615c9 f7091398 00000282
00000000 00000000 00000000 ffffffff&nbsp;</div>
  <div>[274198.229432] &nbsp; &nbsp; &nbsp; &nbsp;f5cba384 f5cba38c f5cba388 f771e140
c02c91ec f6969d68 f5cba38c f771e140&nbsp;</div>
  <div>[274198.229436] Call Trace:</div>
  <div>[274198.229447] &nbsp;[&lt;c02c91ec&gt;]
__mutex_lock_slowpath+0x50/0x7b</div>
  <div>[274198.229453] &nbsp;[&lt;c02c9082&gt;] mutex_lock+0xa/0xb</div>
  <div>[274198.229455] &nbsp;[&lt;c02b7d4d&gt;] unix_dgram_recvmsg+0x3e/0x231</div>
  <div>[274198.229459] &nbsp;[&lt;c0161beb&gt;]
get_page_from_freelist+0xc1/0x3e9</div>
  <div>[274198.229463] &nbsp;[&lt;c0161045&gt;] __rmqueue_smallest+0x83/0xe3</div>
  <div>[274198.229466] &nbsp;[&lt;c025f771&gt;] sock_recvmsg+0xde/0xf9</div>
  <div>[274198.229471] &nbsp;[&lt;c01387b0&gt;]
autoremove_wake_function+0x0/0x2d</div>
  <div>[274198.229476] &nbsp;[&lt;c01620e9&gt;]
__alloc_pages_internal+0xb5/0x34e</div>
  <div>[274198.229481] &nbsp;[&lt;c0260595&gt;] sys_recvfrom+0xb4/0x116</div>
  <div>[274198.229484] &nbsp;[&lt;c011af13&gt;] do_page_fault+0x0/0x8f9</div>
  <div>
[274198.229487] &nbsp;[&lt;c0108540&gt;] do_notify_resume+0x5f8/0x649</div>
  <div>[274198.229492] &nbsp;[&lt;c011b3c5&gt;] do_page_fault+0x4b2/0x8f9</div>
  <div>[274198.229495] &nbsp;[&lt;c0260a48&gt;] sys_socketcall+0x135/0x19e</div>
  <div>[274198.229499] &nbsp;[&lt;c0108853&gt;] sysenter_past_esp+0x78/0xb1</div>
  <div>[274198.229502] &nbsp;[&lt;c02c0000&gt;] xenfb_probe+0xd1/0x35b</div>
  <div>[274198.229506] &nbsp;=======================</div>
  <div>[274198.229507] INFO: task kamailio:28506 blocked for more than
120 seconds.</div>
  <div>[274198.229559] "echo 0 &gt;
/proc/sys/kernel/hung_task_timeout_secs" disables this message.</div>
  <div>[274198.229641] kamailio &nbsp; &nbsp; &nbsp;D d0e00947 &nbsp; &nbsp; 0 28506 &nbsp;28484</div>
  <div>[274198.229643] &nbsp; &nbsp; &nbsp; &nbsp;f77f8e60 00000082 00000002 d0e00947
00004292 f77f8fec c4024020 00000001&nbsp;</div>
  <div>[274198.229646] &nbsp; &nbsp; &nbsp; &nbsp;00000000 00000001 00000002 00000000
f7091398 00000001 00000001 c01211f2&nbsp;</div>
  <div>[274198.229650] &nbsp; &nbsp; &nbsp; &nbsp;f5cba384 f5cba38c f5cba388 f77f8e60
c02c91ec f5cba38c f60add68 f77f8e60&nbsp;</div>
  <div>[274198.229653] Call Trace:</div>
  <div>[274198.229656] &nbsp;[&lt;c01211f2&gt;] __wake_up_sync+0x2a/0x3e</div>
  <div>[274198.229659] &nbsp;[&lt;c02c91ec&gt;]
__mutex_lock_slowpath+0x50/0x7b</div>
  <div>[274198.229662] &nbsp;[&lt;c02c9082&gt;] mutex_lock+0xa/0xb</div>
  <div>[274198.229664] &nbsp;[&lt;c02b7d4d&gt;] unix_dgram_recvmsg+0x3e/0x231</div>
  <div>[274198.229667] &nbsp;[&lt;c0161beb&gt;]
get_page_from_freelist+0xc1/0x3e9</div>
  <div>[274198.229670] &nbsp;[&lt;c0161045&gt;] __rmqueue_smallest+0x83/0xe3</div>
  <div>[274198.229673] &nbsp;[&lt;c025f771&gt;] sock_recvmsg+0xde/0xf9</div>
  <div>[274198.229677] &nbsp;[&lt;c01387b0&gt;]
autoremove_wake_function+0x0/0x2d</div>
  <div>[274198.229681] &nbsp;[&lt;c01620e9&gt;]
__alloc_pages_internal+0xb5/0x34e</div>
  <div>[274198.229686] &nbsp;[&lt;c0260595&gt;] sys_recvfrom+0xb4/0x116</div>
  <div>[274198.229690] &nbsp;[&lt;c0180d0d&gt;] cp_new_stat64+0xfc/0x10e</div>
  <div>[274198.229696] &nbsp;[&lt;c011b3c5&gt;] do_page_fault+0x4b2/0x8f9</div>
  <div>[274198.229699] &nbsp;[&lt;c0260a48&gt;] sys_socketcall+0x135/0x19e</div>
  <div>[274198.229703] &nbsp;[&lt;c0108853&gt;] sysenter_past_esp+0x78/0xb1</div>
  <div>[274198.229706] &nbsp;[&lt;c02c0000&gt;] xenfb_probe+0xd1/0x35b</div>
  </div>
  <div><br>
  </div>
  <div>There was no activity when this happened. ON the 1.4 box there
could be about 10 sessions setup when it happens.</div>
  <div><br>
  </div>
  <div>kamctl ps:</div>
  <div><br>
  </div>
  <div>
  <div>Process:: &nbsp;ID=14 PID=28504 Type=MI DATAGRAM</div>
  <div>Process:: &nbsp;ID=15 PID=28505 Type=MI DATAGRAM</div>
  <div>Process:: &nbsp;ID=16 PID=28506 Type=MI DATAGRAM</div>
  </div>
  <div><br>
  </div>
  <div>Even on the old install this doesn't seem to cause any problem
and same here on 3.01 but would like to try and solve it.</div>
  <div><br>
  </div>
  <div>Any idea?</div>
  <div><br>
  </div>
  <div>Regards,</div>
  <div>Stephen</div>
  <div><br>
  </div>
  <div><br>
  </div>
  <div><br>
  </div>
  <div><br>
  </div>
  <div><br>
  </div>
  <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Kamailio (OpenSER) - Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.kamailio.org">Users@lists.kamailio.org</a>
<a class="moz-txt-link-freetext" href="http://lists.kamailio.org/cgi-bin/mailman/listinfo/users">http://lists.kamailio.org/cgi-bin/mailman/listinfo/users</a>
<a class="moz-txt-link-freetext" href="http://lists.openser-project.org/cgi-bin/mailman/listinfo/users">http://lists.openser-project.org/cgi-bin/mailman/listinfo/users</a></pre>
</blockquote>
<br>
<div class="moz-signature">-- <br>
Daniel-Constantin Mierla
* <a class="moz-txt-link-freetext" href="http://www.asipto.com/">http://www.asipto.com/</a> * <a class="moz-txt-link-freetext" href="http://twitter.com/miconda">http://twitter.com/miconda</a>
* <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/danielconstantinmierla">http://www.linkedin.com/in/danielconstantinmierla</a>
</div>
</body>
</html>