Recovering Linux system from hung state via software

Mandeep Sandhu mandeepsandhu.chd at gmail.com
Wed Dec 4 03:20:05 EST 2013


You could also look at using existing s/w for monitoring processes like monit.

I don't know your exact usecase but you could make your process as a
'service' and have something like systemd or upstart monitor it. These
tools will typically 'restart' the hung process on detection.

-mandeep


On Fri, Nov 29, 2013 at 5:58 AM, Vipul Jain <vipulsj at gmail.com> wrote:
> Hi Kernel alias,
>
> I am a newbie and I am trying to figure out ways where in I can recover the
> Linux in below two scenarios:
> 1. my specific process hangs.
> 2. kernel gets hung partially or completely.
>
> I have done some reading and seems like there is softlockup and hardlockup
> mechanisms in Linux source base that I can use but not sure, if yes I have
> below questions:
> 1. Which kernel version is minimum required for this?
> 2. How do I know that soft and hard lockup are enabled in my kernel?
> 3. How can I customize the behavior of default action that been taken?
> 4. Can I use these two lockup mechanism to find out if my process is hung
> or not?
> 5. Any pointers to any docs that can help will be appreciated.
>
> I will greatly appreciate any help here.
>
>
> Regards,
> Vipul.
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>



More information about the Kernelnewbies mailing list