From: Alex Riesen <raa.lkml@gmail.com>
To: Deepak <deepakgaur@fastmail.fm>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Hanged/Hunged process in Linux
Date: Wed, 4 May 2005 22:51:16 +0200 [thread overview]
Message-ID: <81b0412b05050413514544d29c@mail.gmail.com> (raw)
In-Reply-To: <1115185128.12535.233322099@webmail.messagingengine.com>
On 5/4/05, Deepak <deepakgaur@fastmail.fm> wrote:
> (1) A process not accepting any signals and consuming system resources
wrong. It may have decided to go through a critical section of its job, and
the job takes a long time.
> (2) A process in STOP state
wrong. The prosess is being debugged or is stopped (killall -STOP bash).
Besides, often the RUNNING state is more suspicious.
> (3) A process in deadlock state
how can you detect this from outside of the process(es)?!
> Process conforming to definition 3 will be due to race conditions/bad
> programming.Definition 1 does define a proper hanged process but is it
> possible to create such a process in LInux as in linux signal delivery
> to the process and its handling is assured by the Linux kernel.
Anything, except for SIGKILL and SIGSTOP can be overridden.
And it doesn't help you anyway in detecting of runaway processes.
> Anybody having another definition for a "Hanged process" in Linux
> context
Except for the case described by Valdis Klietnieks, it's hard to define.
How do you distinguish between a very busy process and the deadly
locked in itself one?
You'll probably end up defining some arbitrary timeouts for the
processes under your control, some watchdog interface for the
processes and plain old kill(..., SIGCONT); kill(..., SIGKILL); restart();
prev parent reply other threads:[~2005-05-04 21:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-04 5:38 Hanged/Hunged process in Linux Deepak
2005-05-04 16:09 ` Stephen Hemminger
2005-05-04 17:08 ` Valdis.Kletnieks
2005-05-04 20:51 ` Alex Riesen [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=81b0412b05050413514544d29c@mail.gmail.com \
--to=raa.lkml@gmail.com \
--cc=deepakgaur@fastmail.fm \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox