Discussion:
how to kill a process that is "defunct"?
Arthur Bela
2010-11-21 10:17:44 UTC
Permalink
I tried to:

kill -9 3341

but it's still there, and it's using 100% cpu :\

I only tried to download a few linux iso's, so i can seed them back a
couple of times [about ~20 at a time :O ] but transmission just
freezez

I tried to log out, and log in, when i log back, it's still there :O
only when i reboot my pc...only then it will dissapear..

Is there a way to kill that process?

Thank you :O
-------------- next part --------------
A non-text attachment was scrubbed...
Name: defunct.png
Type: image/png
Size: 7074 bytes
Desc: not available
URL: <Loading Image...>
Tha.Suresh
2010-11-21 12:02:38 UTC
Permalink
Post by Arthur Bela
Is there a way to kill that process?
$ killall -9 transmission
--
Regards,
Tha.Suresh

My experiences with Linux are here,
http://thasulinux.wordpress.com
Jeff G.
2010-11-21 18:07:24 UTC
Permalink
Post by Tha.Suresh
Post by Arthur Bela
Is there a way to kill that process?
$ killall -9 transmission
Tha, man pages don't show the -9 option - where did that come from?
Doesn't work for Thunderbird (as a test).

Thanks

jg
Liam Proven
2010-11-21 18:15:28 UTC
Permalink
Post by Jeff G.
Post by Tha.Suresh
Post by Arthur Bela
Is there a way to kill that process?
$ killall -9 transmission
Tha, man pages don't show the -9 option - where did that come from?
And here I thought that was *the* best-known option for ``kill''. I
mean, what other kill option has its own theme song?



?
Your sad rhymes are spinnin' like you're in a deadlock,
You're like a synchronous sock that don't know when to block;
So I pull out my keyboard and I pull out my Glock
And I dismount your girl and I mount /proc
?

http://www.monzy.com/intro/killdashnine_lyrics.html

:?D
--
Liam Proven ? Info & profile: http://www.google.com/profiles/lproven
Email: lproven at cix.co.uk ? GMail/GoogleTalk/Orkut: lproven at gmail.com
Tel: +44 20-8685-0498 ? Cell: +44 7939-087884 ? Fax: + 44 870-9151419
AIM/Yahoo/Skype: liamproven ? MSN: lproven at hotmail.com ? ICQ: 73187508
Tony Pursell
2010-11-21 18:21:24 UTC
Permalink
Post by Jeff G.
Post by Tha.Suresh
Post by Arthur Bela
Is there a way to kill that process?
$ killall -9 transmission
Tha, man pages don't show the -9 option - where did that come from?
Doesn't work for Thunderbird (as a test).
man kill *does* show 9 as the kill signal that cannot be interrupted.

Tony
Steven Susbauer
2010-11-21 18:21:52 UTC
Permalink
Post by Jeff G.
Post by Tha.Suresh
Post by Arthur Bela
Is there a way to kill that process?
$ killall -9 transmission
Tha, man pages don't show the -9 option - where did that come from?
Doesn't work for Thunderbird (as a test).
The man pages say you can kill with -s and a number or simply -number,
this includes -9. The names and numbers of the signals are listed in
the kill man page (an alternative is -KILL).

The thunderbird process is most likely thunderbird-bin.
Jeff G.
2010-11-21 18:30:41 UTC
Permalink
Post by Steven Susbauer
Post by Jeff G.
Post by Tha.Suresh
Post by Arthur Bela
Is there a way to kill that process?
$ killall -9 transmission
Tha, man pages don't show the -9 option - where did that come from?
Doesn't work for Thunderbird (as a test).
The man pages say you can kill with -s and a number or simply -number,
this includes -9. The names and numbers of the signals are listed in
the kill man page (an alternative is -KILL).
The thunderbird process is most likely thunderbird-bin.
Ok guys, you're right - I was looking at info and man killall
not kill
thunderbird-bin - ok, thanks
Glenn Holmer
2010-11-23 01:38:38 UTC
Permalink
Post by Steven Susbauer
Post by Jeff G.
Tha, man pages don't show the -9 option - where did that come from?
Doesn't work for Thunderbird (as a test).
The names and numbers of the signals are listed in
the kill man page
also "kill -l"
--
Glenn Holmer (Linux registered user #16682) http://www.lyonlabs.org
"The text is only a proposition." -Pierre Boulez
Hal Burgiss
2010-11-21 18:29:49 UTC
Permalink
Post by Arthur Bela
kill -9 3341
but it's still there, and it's using 100% cpu :\
I only tried to download a few linux iso's, so i can seed them back a
couple of times [about ~20 at a time :O ] but transmission just
freezez
I tried to log out, and log in, when i log back, it's still there :O
only when i reboot my pc...only then it will dissapear..
The Z is in the S column means its a zombie, which I believe is unkillable
using kill on that specific rocess. You'd have to kill, or restart the
parent process, to get rid of it.
--
Hal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20101121/c4855fcd/attachment.html>
Smoot Carl-Mitchell
2010-11-21 20:51:30 UTC
Permalink
Post by Hal Burgiss
The Z is in the S column means its a zombie, which I believe is
unkillable using kill on that specific rocess. You'd have to kill, or
restart the parent process, to get rid of it.
A Zombie process is a process which has exited, but has not yet been
reaped by its parent. Zombies do not take up any resources except a
process slot in the process table. This usually indicates a bad design
in the parent process. Parent processes which fork a child need to
handle the process reaping when the child exits.

Note if the parent process dies or exits before the child, the child's
parent becomes the init process (process 1). Running

ps -ejH

is useful for showing the process hierarchy when trying to find out why
a process became a zombie.

Killing the parent process might work only because the child's parent
then becomes the init process which correctly waits on all its children.
--
Smoot Carl-Mitchell
System/Network Architect
voice: +1 480 922-7313
cell: +1 602 421-9005
smoot at tic.com
Hal Burgiss
2010-11-21 21:11:50 UTC
Permalink
Post by Smoot Carl-Mitchell
reaped by its parent. Zombies do not take up any resources except a
process slot in the process table.
Are you sure about this? I see zombies that the system at least thinks are
using resources, eg:

# ps aux|grep Z
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 11855 7.5 0.0 0 0 ? Z
16:07 0:00 \_ [perl] <defunct>

Note the 7.5% CPU.
--
Hal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20101121/900bc691/attachment.html>
Smoot Carl-Mitchell
2010-11-21 21:33:26 UTC
Permalink
Post by Smoot Carl-Mitchell
reaped by its parent. Zombies do not take up any resources except a
process slot in the process table.
Are you sure about this? I see zombies that the system at least thinks
# ps aux|grep Z
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 11855 7.5 0.0 0 0 ? Z
16:07 0:00 \_ [perl] <defunct>
Note the 7.5% CPU.
In the ps man page note this:

"CPU usage is currently expressed as the percentage of time spent
running during the entire lifetime of a process. This is not ideal, and
it does not conform to the standards that ps otherwise conforms to. CPU
usage is unlikely to add up to exactly 100%."

Looks like the %CPU means the process spent 7.% of its time using CPU
resources during its lifetime.
--
Smoot Carl-Mitchell
System/Network Architect
voice: +1 480 922-7313
cell: +1 602 421-9005
smoot at tic.com
Robert Spanjaard
2010-11-21 19:00:25 UTC
Permalink
Post by Arthur Bela
kill -9 3341
but it's still there, and it's using 100% cpu :\
I only tried to download a few linux iso's, so i can seed them back a
couple of times [about ~20 at a time :O ] but transmission just freezez
I tried to log out, and log in, when i log back, it's still there :O
only when i reboot my pc...only then it will dissapear..
Is there a way to kill that process?
Thank you :O
Have you tried "sudo kill -9 3341" ?
--
Regards, Robert http://www.arumes.com
Varsha Jaikumar
2010-11-21 19:11:13 UTC
Permalink
Post by Arthur Bela
kill -9 3341
but it's still there, and it's using 100% cpu :\
I only tried to download a few linux iso's, so i can seed them back a
couple of times [about ~20 at a time :O ] but transmission just
freezez
I tried to log out, and log in, when i log back, it's still there :O
only when i reboot my pc...only then it will dissapear..
Is there a way to kill that process?
I think you can refer to
http://www.linuxquestions.org/questions/linux-server-73/how-to-kill-zombie-process-592732/
.
Hope it helps.
Post by Arthur Bela
Thank you :O
--
Varsha Jaikumar
Computer Science & Engineering (4th year)
National Institute of Technology, Durgapur
Blog: http://varshamyspace.blogspot.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20101122/34101727/attachment.html>
Varsha Jaikumar
2010-11-21 19:20:57 UTC
Permalink
Post by Varsha Jaikumar
Post by Arthur Bela
kill -9 3341
but it's still there, and it's using 100% cpu :\
I only tried to download a few linux iso's, so i can seed them back a
couple of times [about ~20 at a time :O ] but transmission just
freezez
I tried to log out, and log in, when i log back, it's still there :O
only when i reboot my pc...only then it will dissapear..
Is there a way to kill that process?
I think you can refer to
http://www.linuxquestions.org/questions/linux-server-73/how-to-kill-zombie-process-592732/
.
Hope it helps.
And use *ps axl* to know all the processes (and their pids) running under
the current UID as well as their ppids. It's easier to know the ppid of the
process you are trying to kill.
--
Varsha Jaikumar
Computer Science & Engineering (4th year)
National Institute of Technology, Durgapur
Blog: http://varshamyspace.blogspot.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20101122/a82c65d2/attachment.html>
Loading...