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&#39;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. </div><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] &quot;echo 0 &gt; /proc/sys/kernel/hung_task_timeout_secs&quot; disables this message.</div>

<div>[269844.208178] kamailio      D f6d77bf8     0 28504  28484</div><div>[269844.208180]        f771e140 00000082 00000002 f6d77bf8 f7091390 f771e2cc c4019020 00000000 </div><div>[269844.208184]        00000000 011615c9 f7091398 00000282 00000000 00000000 00000000 ffffffff </div>

<div>[269844.208188]        f5cba384 f5cba38c f5cba388 f771e140 c02c91ec f6969d68 f5cba38c f771e140 </div><div>[269844.208191] Call Trace:</div><div>[269844.208203]  [&lt;c02c91ec&gt;] __mutex_lock_slowpath+0x50/0x7b</div>

<div>[269844.208208]  [&lt;c02c9082&gt;] mutex_lock+0xa/0xb</div><div>[269844.208210]  [&lt;c02b7d4d&gt;] unix_dgram_recvmsg+0x3e/0x231</div><div>[269844.208214]  [&lt;c0161beb&gt;] get_page_from_freelist+0xc1/0x3e9</div>

<div>[269844.208218]  [&lt;c0161045&gt;] __rmqueue_smallest+0x83/0xe3</div><div>[269844.208221]  [&lt;c025f771&gt;] sock_recvmsg+0xde/0xf9</div><div>[269844.208226]  [&lt;c01387b0&gt;] autoremove_wake_function+0x0/0x2d</div>

<div>[269844.208231]  [&lt;c01620e9&gt;] __alloc_pages_internal+0xb5/0x34e</div><div>[269844.208236]  [&lt;c0260595&gt;] sys_recvfrom+0xb4/0x116</div><div>[269844.208239]  [&lt;c011af13&gt;] do_page_fault+0x0/0x8f9</div>
<div>
[269844.208242]  [&lt;c0108540&gt;] do_notify_resume+0x5f8/0x649</div><div>[269844.208247]  [&lt;c011b3c5&gt;] do_page_fault+0x4b2/0x8f9</div><div>[269844.208250]  [&lt;c0260a48&gt;] sys_socketcall+0x135/0x19e</div><div>
[269844.208254]  [&lt;c0108853&gt;] sysenter_past_esp+0x78/0xb1</div>
<div>[269844.208257]  [&lt;c02c0000&gt;] xenfb_probe+0xd1/0x35b</div><div>[269844.208261]  =======================</div><div>[269844.208262] INFO: task kamailio:28506 blocked for more than 120 seconds.</div><div>[269844.208314] &quot;echo 0 &gt; /proc/sys/kernel/hung_task_timeout_secs&quot; disables this message.</div>

<div>[269844.208395] kamailio      D d0e00947     0 28506  28484</div><div>[269844.208397]        f77f8e60 00000082 00000002 d0e00947 00004292 f77f8fec c4024020 00000001 </div><div>[269844.208401]        00000000 00000001 00000002 00000000 f7091398 00000001 00000001 c01211f2 </div>

<div>[269844.208404]        f5cba384 f5cba38c f5cba388 f77f8e60 c02c91ec f5cba38c f60add68 f77f8e60 </div><div>[269844.208408] Call Trace:</div><div>[269844.208410]  [&lt;c01211f2&gt;] __wake_up_sync+0x2a/0x3e</div><div>
[269844.208413]  [&lt;c02c91ec&gt;] __mutex_lock_slowpath+0x50/0x7b</div>
<div>[269844.208416]  [&lt;c02c9082&gt;] mutex_lock+0xa/0xb</div><div>[269844.208418]  [&lt;c02b7d4d&gt;] unix_dgram_recvmsg+0x3e/0x231</div><div>[269844.208421]  [&lt;c0161beb&gt;] get_page_from_freelist+0xc1/0x3e9</div>

<div>[269844.208424]  [&lt;c0161045&gt;] __rmqueue_smallest+0x83/0xe3</div><div>[269844.208427]  [&lt;c025f771&gt;] sock_recvmsg+0xde/0xf9</div><div>[269844.208431]  [&lt;c01387b0&gt;] autoremove_wake_function+0x0/0x2d</div>

<div>[269844.208435]  [&lt;c01620e9&gt;] __alloc_pages_internal+0xb5/0x34e</div><div>[269844.208440]  [&lt;c0260595&gt;] sys_recvfrom+0xb4/0x116</div><div>[269844.208444]  [&lt;c0180d0d&gt;] cp_new_stat64+0xfc/0x10e</div>

<div>[269844.208449]  [&lt;c011b3c5&gt;] do_page_fault+0x4b2/0x8f9</div><div>[269844.208452]  [&lt;c0260a48&gt;] sys_socketcall+0x135/0x19e</div><div>[269844.208456]  [&lt;c0108853&gt;] sysenter_past_esp+0x78/0xb1</div><div>

[269844.208459]  [&lt;c02c0000&gt;] xenfb_probe+0xd1/0x35b</div><div>[269844.208462]  =======================</div><div>[274198.229285] INFO: task kamailio:28504 blocked for more than 120 seconds.</div><div>[274198.229340] &quot;echo 0 &gt; /proc/sys/kernel/hung_task_timeout_secs&quot; disables this message.</div>

<div>[274198.229422] kamailio      D f6d77bf8     0 28504  28484</div><div>[274198.229425]        f771e140 00000082 00000002 f6d77bf8 f7091390 f771e2cc c4019020 00000000 </div><div>[274198.229429]        00000000 011615c9 f7091398 00000282 00000000 00000000 00000000 ffffffff </div>

<div>[274198.229432]        f5cba384 f5cba38c f5cba388 f771e140 c02c91ec f6969d68 f5cba38c f771e140 </div><div>[274198.229436] Call Trace:</div><div>[274198.229447]  [&lt;c02c91ec&gt;] __mutex_lock_slowpath+0x50/0x7b</div>

<div>[274198.229453]  [&lt;c02c9082&gt;] mutex_lock+0xa/0xb</div><div>[274198.229455]  [&lt;c02b7d4d&gt;] unix_dgram_recvmsg+0x3e/0x231</div><div>[274198.229459]  [&lt;c0161beb&gt;] get_page_from_freelist+0xc1/0x3e9</div>

<div>[274198.229463]  [&lt;c0161045&gt;] __rmqueue_smallest+0x83/0xe3</div><div>[274198.229466]  [&lt;c025f771&gt;] sock_recvmsg+0xde/0xf9</div><div>[274198.229471]  [&lt;c01387b0&gt;] autoremove_wake_function+0x0/0x2d</div>

<div>[274198.229476]  [&lt;c01620e9&gt;] __alloc_pages_internal+0xb5/0x34e</div><div>[274198.229481]  [&lt;c0260595&gt;] sys_recvfrom+0xb4/0x116</div><div>[274198.229484]  [&lt;c011af13&gt;] do_page_fault+0x0/0x8f9</div>
<div>
[274198.229487]  [&lt;c0108540&gt;] do_notify_resume+0x5f8/0x649</div><div>[274198.229492]  [&lt;c011b3c5&gt;] do_page_fault+0x4b2/0x8f9</div><div>[274198.229495]  [&lt;c0260a48&gt;] sys_socketcall+0x135/0x19e</div><div>
[274198.229499]  [&lt;c0108853&gt;] sysenter_past_esp+0x78/0xb1</div>
<div>[274198.229502]  [&lt;c02c0000&gt;] xenfb_probe+0xd1/0x35b</div><div>[274198.229506]  =======================</div><div>[274198.229507] INFO: task kamailio:28506 blocked for more than 120 seconds.</div><div>[274198.229559] &quot;echo 0 &gt; /proc/sys/kernel/hung_task_timeout_secs&quot; disables this message.</div>

<div>[274198.229641] kamailio      D d0e00947     0 28506  28484</div><div>[274198.229643]        f77f8e60 00000082 00000002 d0e00947 00004292 f77f8fec c4024020 00000001 </div><div>[274198.229646]        00000000 00000001 00000002 00000000 f7091398 00000001 00000001 c01211f2 </div>

<div>[274198.229650]        f5cba384 f5cba38c f5cba388 f77f8e60 c02c91ec f5cba38c f60add68 f77f8e60 </div><div>[274198.229653] Call Trace:</div><div>[274198.229656]  [&lt;c01211f2&gt;] __wake_up_sync+0x2a/0x3e</div><div>
[274198.229659]  [&lt;c02c91ec&gt;] __mutex_lock_slowpath+0x50/0x7b</div>
<div>[274198.229662]  [&lt;c02c9082&gt;] mutex_lock+0xa/0xb</div><div>[274198.229664]  [&lt;c02b7d4d&gt;] unix_dgram_recvmsg+0x3e/0x231</div><div>[274198.229667]  [&lt;c0161beb&gt;] get_page_from_freelist+0xc1/0x3e9</div>

<div>[274198.229670]  [&lt;c0161045&gt;] __rmqueue_smallest+0x83/0xe3</div><div>[274198.229673]  [&lt;c025f771&gt;] sock_recvmsg+0xde/0xf9</div><div>[274198.229677]  [&lt;c01387b0&gt;] autoremove_wake_function+0x0/0x2d</div>

<div>[274198.229681]  [&lt;c01620e9&gt;] __alloc_pages_internal+0xb5/0x34e</div><div>[274198.229686]  [&lt;c0260595&gt;] sys_recvfrom+0xb4/0x116</div><div>[274198.229690]  [&lt;c0180d0d&gt;] cp_new_stat64+0xfc/0x10e</div>

<div>[274198.229696]  [&lt;c011b3c5&gt;] do_page_fault+0x4b2/0x8f9</div><div>[274198.229699]  [&lt;c0260a48&gt;] sys_socketcall+0x135/0x19e</div><div>[274198.229703]  [&lt;c0108853&gt;] sysenter_past_esp+0x78/0xb1</div><div>

[274198.229706]  [&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::  ID=14 PID=28504 Type=MI DATAGRAM</div><div>Process::  ID=15 PID=28505 Type=MI DATAGRAM</div><div>Process::  ID=16 PID=28506 Type=MI DATAGRAM</div></div><div><br></div>

<div>Even on the old install this doesn&#39;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>