* Dead jobs
@ 1999-03-01 17:31 Jacek Perry
1999-03-01 18:06 ` Paul Tomblin
` (3 more replies)
0 siblings, 4 replies; 11+ messages in thread
From: Jacek Perry @ 1999-03-01 17:31 UTC (permalink / raw)
To: Red Hat, Alpha Linux
Hello
I tried to post this on Friday but for some reason it didn't go
through. At least I didn't get the original message nor replys to it
in my mail box. However if this is repeat then I appologize to
everyone.
Anyway I have a quick question. For some reason I can't allways kill
jobs. Especially if they are running in Xwindows. For instance when
my Netscape hangs I can't kill it. I go to a shell and type ps. Then
I issue command kill pid. However that doesn't kill it. When I do ps
again.... the netscape is still there. Next to the process I see D
which I assume stands for dead. But when I go back to Xwindows there
it is Netscape all hanged and filling up my screen. The only way I am
able to get rid of this problem is by rebooting the system. However
this is Linux there has to be better way to handle that!
Thanks
Jacek Perry
_________________________________________________________
DO YOU YAHOO!?
Get your free @yahoo.com address at http://mail.yahoo.com
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Dead jobs
1999-03-01 17:31 Dead jobs Jacek Perry
@ 1999-03-01 18:06 ` Paul Tomblin
1999-03-01 18:56 ` Wes Bauske
1999-03-01 18:11 ` Cornelius Creedon
` (2 subsequent siblings)
3 siblings, 1 reply; 11+ messages in thread
From: Paul Tomblin @ 1999-03-01 18:06 UTC (permalink / raw)
To: axp-list
Quoting Jacek Perry (chrobry@yahoo.com):
> Anyway I have a quick question. For some reason I can't allways kill
> jobs. Especially if they are running in Xwindows. For instance when
As a last resort, "kill -9 pid". But only after you've tried other means of
killing a program, because "kill -9" is a hard kill, and doesn't give a
program a chance to catch the signal and clean up before dying.
--
Paul Tomblin, not speaking for anybody.
"I'm fairly sure Linux exists principally because writing an operating system
probably seems like a good way to pass the <bignum> months of darkness in
Finland" - Rodger Donaldson
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Dead jobs
1999-03-01 17:31 Dead jobs Jacek Perry
1999-03-01 18:06 ` Paul Tomblin
@ 1999-03-01 18:11 ` Cornelius Creedon
1999-03-01 18:17 ` B. James Phillippe
1999-03-01 18:34 ` Frank C. Brants
3 siblings, 0 replies; 11+ messages in thread
From: Cornelius Creedon @ 1999-03-01 18:11 UTC (permalink / raw)
To: Alpha Linux
D is 'uninterruptible sleep'
are you trying 'kill -9 pid'?
if you reallly want to kill it try that.
kill w/o a signal argument sends TERM... kill -9 sends KILL.
(man kill...)
-cc
On Mon, 1 Mar 1999, Jacek Perry wrote:
>
>
>
>
> Hello
>
> I tried to post this on Friday but for some reason it didn't go
> through. At least I didn't get the original message nor replys to it
> in my mail box. However if this is repeat then I appologize to
> everyone.
>
> Anyway I have a quick question. For some reason I can't allways kill
> jobs. Especially if they are running in Xwindows. For instance when
> my Netscape hangs I can't kill it. I go to a shell and type ps. Then
> I issue command kill pid. However that doesn't kill it. When I do ps
> again.... the netscape is still there. Next to the process I see D
> which I assume stands for dead. But when I go back to Xwindows there
> it is Netscape all hanged and filling up my screen. The only way I am
> able to get rid of this problem is by rebooting the system. However
> this is Linux there has to be better way to handle that!
>
> Thanks
> Jacek Perry
> _________________________________________________________
> DO YOU YAHOO!?
> Get your free @yahoo.com address at http://mail.yahoo.com
>
> --
> To unsubscribe: send e-mail to axp-list-request@redhat.com with
> 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
>
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Dead jobs
1999-03-01 17:31 Dead jobs Jacek Perry
1999-03-01 18:06 ` Paul Tomblin
1999-03-01 18:11 ` Cornelius Creedon
@ 1999-03-01 18:17 ` B. James Phillippe
1999-03-01 19:12 ` Wes Bauske
1999-03-01 18:34 ` Frank C. Brants
3 siblings, 1 reply; 11+ messages in thread
From: B. James Phillippe @ 1999-03-01 18:17 UTC (permalink / raw)
To: Alpha Linux; +Cc: Red Hat
On Mon, 1 Mar 1999, Jacek Perry wrote:
> Anyway I have a quick question. For some reason I can't allways kill
> jobs. Especially if they are running in Xwindows. For instance when
> my Netscape hangs I can't kill it. I go to a shell and type ps. Then
> I issue command kill pid. However that doesn't kill it. When I do ps
Always try kill -9 pid if plain kill (which is kill -15, or "TERM") doesn't
work. kill -9 ("KILL") can't be ignored or caught, but it doesn't give the
process a chance to clean up after itself.
> again.... the netscape is still there. Next to the process I see D
> which I assume stands for dead. But when I go back to Xwindows there
> it is Netscape all hanged and filling up my screen. The only way I am
> able to get rid of this problem is by rebooting the system. However
> this is Linux there has to be better way to handle that!
The "D" state means the process is in uninterruptible sleep.
Uninterruptible processes can't be interrupted by signals, which is why you
can't kill it; they can only be woken by the kernel. Normally this only
happens when the process is blocked in a device driver waiting on hardware.
-bp
--
B. James Phillippe . bryan@terran.org
Software Engineer, WGT Inc. . http://www.terran.org/~bryan
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Dead jobs
1999-03-01 17:31 Dead jobs Jacek Perry
` (2 preceding siblings ...)
1999-03-01 18:17 ` B. James Phillippe
@ 1999-03-01 18:34 ` Frank C. Brants
3 siblings, 0 replies; 11+ messages in thread
From: Frank C. Brants @ 1999-03-01 18:34 UTC (permalink / raw)
To: axp-list
At 11:31 AM 3/1/99 , you wrote:
Try kill -9 PID (with extreme prejudice...hehhe).
>
>
>
>
>Hello
>
>I tried to post this on Friday but for some reason it didn't go
>through. At least I didn't get the original message nor replys to it
>in my mail box. However if this is repeat then I appologize to
>everyone.
>
>Anyway I have a quick question. For some reason I can't allways kill
>jobs. Especially if they are running in Xwindows. For instance when
>my Netscape hangs I can't kill it. I go to a shell and type ps. Then
>I issue command kill pid. However that doesn't kill it. When I do ps
>again.... the netscape is still there. Next to the process I see D
>which I assume stands for dead. But when I go back to Xwindows there
>it is Netscape all hanged and filling up my screen. The only way I am
>able to get rid of this problem is by rebooting the system. However
>this is Linux there has to be better way to handle that!
>
>Thanks
>Jacek Perry
>_________________________________________________________
>DO YOU YAHOO!?
>Get your free @yahoo.com address at http://mail.yahoo.com
>
>--
>To unsubscribe: send e-mail to axp-list-request@redhat.com with
>'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
>
Frank C. Brants
Netopia, Inc.
Systems Engineer
franko -at- netopia.com
Fax 972-855-6610
Office / Cell 214-769-0354
Text Page http://primeco.textmsg.com/
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Dead jobs
1999-03-01 18:06 ` Paul Tomblin
@ 1999-03-01 18:56 ` Wes Bauske
1999-03-01 21:03 ` Paul Tomblin
0 siblings, 1 reply; 11+ messages in thread
From: Wes Bauske @ 1999-03-01 18:56 UTC (permalink / raw)
To: axp-list
Paul Tomblin wrote:
>
> Quoting Jacek Perry (chrobry@yahoo.com):
> > Anyway I have a quick question. For some reason I can't allways kill
> > jobs. Especially if they are running in Xwindows. For instance when
>
> As a last resort, "kill -9 pid". But only after you've tried other means of
> killing a program, because "kill -9" is a hard kill, and doesn't give a
> program a chance to catch the signal and clean up before dying.
>
I always use a "kill -11 pid" first to see if a SEGV will
make it go away gracefully before trying a kill -9.
I occasionally see Netscape hang in a hard cpu loop and
sending it a kill -11 makes it go away.
Wes
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Dead jobs
1999-03-01 18:17 ` B. James Phillippe
@ 1999-03-01 19:12 ` Wes Bauske
1999-03-01 20:15 ` mgraffam
0 siblings, 1 reply; 11+ messages in thread
From: Wes Bauske @ 1999-03-01 19:12 UTC (permalink / raw)
To: axp-list
B. James Phillippe wrote:
>
> On Mon, 1 Mar 1999, Jacek Perry wrote:
>
>
> The "D" state means the process is in uninterruptible sleep.
> Uninterruptible processes can't be interrupted by signals, which is why you
> can't kill it; they can only be woken by the kernel. Normally this only
> happens when the process is blocked in a device driver waiting on hardware.
>
This is a point I worry about when I deal with tape drives.
If you do a kill -9 on a job that is uninterruptable while
accessing a tape device, it is fairly easy to hang the device
and make it unusable to any other process. I guess part of
the clean up involves modifying system structures that indicate
the device is no longer in use so any new access is denied.
I've seen it cause trouble on Linux/AIX/Solaris. Perhaps
the reason for the hang is a device, possibly sound??, is not
responding. That is the thing that needs correcting on the
system.
Wes
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Dead jobs
1999-03-01 19:12 ` Wes Bauske
@ 1999-03-01 20:15 ` mgraffam
0 siblings, 0 replies; 11+ messages in thread
From: mgraffam @ 1999-03-01 20:15 UTC (permalink / raw)
To: Wes Bauske; +Cc: axp-list
On Mon, 1 Mar 1999, Wes Bauske wrote:
> This is a point I worry about when I deal with tape drives.
> If you do a kill -9 on a job that is uninterruptable while
> accessing a tape device, it is fairly easy to hang the device
> and make it unusable to any other process.
Yeah, this occasionally happens to me with sound. I have found
that I can often do an rmmod sound and then re-insert it with
insmod sound and then I can use the sound hardware again. If
your tape drive is built as a module you may be able to do
the same thing.
Michael J. Graffam (mgraffam@idsi.net)
"Enlightenment is man's emergence from his self-incurred immaturity.
Immaturity is the inability to use one's own understanding without the
guidance of another. . .Sapere aude! Have the courage to use your own
understanding!" - Immanuel Kant "What is Enlightenment?"
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Dead jobs
1999-03-01 18:56 ` Wes Bauske
@ 1999-03-01 21:03 ` Paul Tomblin
1999-03-02 0:51 ` Wes Bauske
0 siblings, 1 reply; 11+ messages in thread
From: Paul Tomblin @ 1999-03-01 21:03 UTC (permalink / raw)
To: axp-list
Quoting Wes Bauske (wsb@paralleldata.com):
> > As a last resort, "kill -9 pid". But only after you've tried other means of
> > killing a program, because "kill -9" is a hard kill, and doesn't give a
> > program a chance to catch the signal and clean up before dying.
> >
>
> I always use a "kill -11 pid" first to see if a SEGV will
> make it go away gracefully before trying a kill -9.
>
> I occasionally see Netscape hang in a hard cpu loop and
> sending it a kill -11 makes it go away.
A regular unadorned "kill pid" or "kill -TERM pid" will usually have the same
effect, and without the annoying core file that a SEGV will leave. (Unless
you set your ulimit for core to zero, then you don't have them to deal with).
--
Paul Tomblin, not speaking for anybody.
"I'm fairly sure Linux exists principally because writing an operating system
probably seems like a good way to pass the <bignum> months of darkness in
Finland" - Rodger Donaldson
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Dead jobs
1999-03-01 21:03 ` Paul Tomblin
@ 1999-03-02 0:51 ` Wes Bauske
1999-03-02 12:11 ` Phil Carmody
0 siblings, 1 reply; 11+ messages in thread
From: Wes Bauske @ 1999-03-02 0:51 UTC (permalink / raw)
To: axp-list
Paul Tomblin wrote:
>
> Quoting Wes Bauske (wsb@paralleldata.com):
> > > As a last resort, "kill -9 pid". But only after you've tried other means of
> > > killing a program, because "kill -9" is a hard kill, and doesn't give a
> > > program a chance to catch the signal and clean up before dying.
> > >
> >
> > I always use a "kill -11 pid" first to see if a SEGV will
> > make it go away gracefully before trying a kill -9.
> >
> > I occasionally see Netscape hang in a hard cpu loop and
> > sending it a kill -11 makes it go away.
>
> A regular unadorned "kill pid" or "kill -TERM pid" will usually have the same
> effect, and without the annoying core file that a SEGV will leave. (Unless
> you set your ulimit for core to zero, then you don't have them to deal with).
>
You'd think so, but it doesn't. Apparently Netscape messes
with it's signal handlers and traps the standard kill. Core
files are a nit... I don't usually care whether they occur
or not. If you want to get rid of them, do a
find / -name core -exec rm {} \;
Or, to automate it, have cron do it...
Wes
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Dead jobs
1999-03-02 0:51 ` Wes Bauske
@ 1999-03-02 12:11 ` Phil Carmody
0 siblings, 0 replies; 11+ messages in thread
From: Phil Carmody @ 1999-03-02 12:11 UTC (permalink / raw)
To: axp-list
>>>>> "Wes" == Wes Bauske <wsb@paralleldata.com> writes:
Wes> Core
Wes> files are a nit... I don't usually care whether they occur
Wes> or not. If you want to get rid of them, do a
Wes> find / -name core -exec rm {} \;
Wes> Or, to automate it, have cron do it...
If you are developing or maintaining code which frequently drops core, then
ln -s /dev/null core
in the directory where the aberrant application barfs will do the business.
Other apps run in other directories can drop core as normal (do a SIGQUIT,
on ^\ or [C-\\] depending on your notational preference to test this).
Phil
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~1999-03-02 12:14 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-03-01 17:31 Dead jobs Jacek Perry
1999-03-01 18:06 ` Paul Tomblin
1999-03-01 18:56 ` Wes Bauske
1999-03-01 21:03 ` Paul Tomblin
1999-03-02 0:51 ` Wes Bauske
1999-03-02 12:11 ` Phil Carmody
1999-03-01 18:11 ` Cornelius Creedon
1999-03-01 18:17 ` B. James Phillippe
1999-03-01 19:12 ` Wes Bauske
1999-03-01 20:15 ` mgraffam
1999-03-01 18:34 ` Frank C. Brants
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox