1 |
On Monday 07 May 2007, Marek Miller wrote: |
2 |
> When I run firefox 2.0.0.3 on my x86 laptop, the ps -eHF command |
3 |
> produces following output: |
4 |
> |
5 |
> UID PID PPID C SZ RSS PSR STIME TTY TIME CMD |
6 |
> ... |
7 |
> ... |
8 |
> marek 5788 5765 12 50526 73088 0 09:02 ? 00:13:42 |
9 |
> /usr/lib/mozilla-firefox/firefox-bin |
10 |
> marek 5869 5788 0 0 0 0 09:02 ? |
11 |
> 00:00:00 [netstat] <defunct> |
12 |
> |
13 |
> Firefox is a parent of defunct netstat process. Of course, when I |
14 |
> close firefox, the zombie disappears too. |
15 |
> Could someone explain me how to get rid of it? |
16 |
|
17 |
Two things: |
18 |
|
19 |
1. Please don't hijack threads. It's very rude. |
20 |
|
21 |
2. You can't get rid of zombies. They are unkillable, hence the name. A |
22 |
zombie is a process whose immediate parent died without cleaning up |
23 |
it's children's PIDs. They end up being attached to the another parent |
24 |
further up the chain, end consume no resources except taking up one |
25 |
PID. There's a kernel thread that runs every 5 minutes or so sweeping |
26 |
them out of the way. So you can ignore zombies. |
27 |
|
28 |
The above might be wrong, it's been a while since I verified it for |
29 |
myself; so I paraphrased the Red Hat 4 training materials. That is for |
30 |
2.6.9, it might be different these days in mainline kernels |
31 |
|
32 |
alan |
33 |
|
34 |
|
35 |
-- |
36 |
Optimists say the glass is half full, |
37 |
Pessimists say the glass is half empty, |
38 |
Developers say wtf is the glass twice as big as it needs to be? |
39 |
|
40 |
Alan McKinnon |
41 |
alan at linuxholdings dot co dot za |
42 |
+27 82, double three seven, one nine three five |
43 |
-- |
44 |
gentoo-user@g.o mailing list |