<div dir="ltr"><div>Usually a user process can hang inside kernel if it makes a system call and is blocked inside kernel waiting on a semaphore (where it would leave CPU) or spinning for a spinlock which might lock down the CPU core. You can examine where process is stuck by:<br>
</div><br># echo w &gt; /proc/sysrq-trigger<br><br><div class="gmail_extra">This sysrq will show you hung tasks and their stack trace in /var/log/messages or dmesg output.<br><br></div><div class="gmail_extra">But a process might as well hang in user mode e.g. on user mode semaphore. Most of the time there are some logical bugs in the program or kernel subsystems for which hang occurs which needs to be fixed instead of just restarting the process. Might work for user mode hang, but may not for hang inside kernel.<br>
<br></div><div class="gmail_extra">Rajat<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Dec 5, 2013 at 8:34 PM, Vipul Jain <span dir="ltr">&lt;<a href="mailto:vipulsj@gmail.com" target="_blank">vipulsj@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi All,<div><br></div><div>A quick question:</div><div><p class="MsoNormal"><span style="color:rgb(31,73,125)">If any of user space process is
hanged or not responding, does it means kernel is also hung  in some part? I trying to understand why hang happens and what triggers it.</span><span style="color:rgb(31,73,125);font-family:Calibri,sans-serif;font-size:11pt">happening ? How to go about recover a hang process, apart from restarting it.</span></p>

</div><div><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><br></span></div><div><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Regards,</span></div><div>

<span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Vipul.</span></div></div>
<br>_______________________________________________<br>
Kernelnewbies mailing list<br>
<a href="mailto:Kernelnewbies@kernelnewbies.org">Kernelnewbies@kernelnewbies.org</a><br>
<a href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies" target="_blank">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a><br>
<br></blockquote></div><br></div></div>