Page 1 of 1
zombie process - PPID 1670 ?
Posted: Thu Dec 31, 2009 1:50 am
by lou1z
when running top, i have a zombie running on PPID 1670.
issueing a kill -9 1670 kills the zombie but also kills amahi's web interface.
any idea on what this is?
opps, this on my new amahi_5_x64
Re: zombie process - PPID 1670 ?
Posted: Thu Dec 31, 2009 3:47 am
by cpg
i do not have a zombie, near as i can tell ...
details, details ... can you paste the line from top?
Re: zombie process - PPID 1670 ?
Posted: Thu Dec 31, 2009 4:00 am
by lou1z
hear ya go....
Code: Select all
login as: root
root@10.0.0.31's password:
Last login: Thu Dec 31 08:25:28 2009 from 192.168.254.48
[root@hda ~]# [b]top[/b]
top - 08:24:23 up 2 min, 1 user, load average: 0.26, 0.20, 0.08
[b]Tasks: 139 total, 1 running, 137 sleeping, 0 stopped, 1 zombie[/b]
Cpu(s): 0.7%us, 0.0%sy, 0.0%ni, 99.3%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 1030992k total, 641644k used, 389348k free, 32320k buffers
Swap: 2064376k total, 0k used, 2064376k free, 164728k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
1813 squeezeb 20 0 278m 107m 3996 S 0.7 10.7 0:03.71 squeezeboxserve
2137 root 20 0 14904 1144 848 R 0.3 0.1 0:00.04 top
1 root 20 0 4124 872 608 S 0.0 0.1 0:00.95 init
2 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 kthreadd
3 root RT -5 0 0 0 S 0.0 0.0 0:00.00 migration/0
4 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 ksoftirqd/0
5 root RT -5 0 0 0 S 0.0 0.0 0:00.00 watchdog/0
6 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 events/0
7 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 cpuset
8 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 khelper
9 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 netns
10 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 async/mgr
11 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 kintegrityd/0
12 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 kblockd/0
13 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 kacpid
14 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 kacpi_notify
15 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 kacpi_hotplug
[root@hda ~]# ps -el | grep Z
F S UID PID PPID C PRI NI ADDR SZ WCHAN TTY TIME CMD
0 Z 0 4452 1670 0 80 0 - 0 exit ? 00:00:00 date <defunct>
kill -9 1670
kills amahi web interface!!
Re: zombie process - PPID 1670 ?
Posted: Thu Dec 31, 2009 5:00 am
by cpg
Oh, you are killing the parent PID (not the zombie itself), which is hdactl and that busts the entire amahi system, buclking it at the knees. Since the kill is -9, the lock file is not removed and a new hdactl is not restarted.
yeah, i do wonder why there is a zombie date process!
maybe we do not adequately wait() for it.
bug please!
Re: zombie process - PPID 1670 ?
Posted: Thu Dec 31, 2009 8:05 am
by rampage537
hey i have the same thing going on
Code: Select all
top - 08:28:55 up 21 days, 16:28, 2 users, load average: 0.00, 0.05, 0.04
Tasks: 173 total, 1 running, 171 sleeping, 0 stopped, 1 zombie
Cpu(s): 0.2%us, 0.2%sy, 0.0%ni, 99.7%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 2959744k total, 2856504k used, 103240k free, 127852k buffers
Swap: 5630760k total, 296240k used, 5334520k free, 2088496k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
1 root 20 0 4128 192 60 S 0.0 0.0 0:08.49 init
2 root 15 -5 0 0 0 S 0.0 0.0 0:00.03 kthreadd
3 root RT -5 0 0 0 S 0.0 0.0 0:00.19 migration/0
4 root 15 -5 0 0 0 S 0.0 0.0 0:00.32 ksoftirqd/0
5 root RT -5 0 0 0 S 0.0 0.0 0:00.00 watchdog/0
6 root RT -5 0 0 0 S 0.0 0.0 0:00.90 migration/1
7 root 15 -5 0 0 0 S 0.0 0.0 0:00.20 ksoftirqd/1
8 root RT -5 0 0 0 S 0.0 0.0 0:00.00 watchdog/1
9 root 15 -5 0 0 0 S 0.0 0.0 0:01.08 events/0
10 root 15 -5 0 0 0 S 0.0 0.0 0:11.63 events/1
11 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 cpuset
12 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 khelper
13 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 netns
14 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 async/mgr
15 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 kintegrityd/0
16 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 kintegrityd/1
17 root 15 -5 0 0 0 S 0.0 0.0 0:00.07 kblockd/0
18 root 15 -5 0 0 0 S 0.0 0.0 0:00.88 kblockd/1
19 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 kacpid
20 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 kacpi_notify
21 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 kacpi_hotplug
22 root 15 -5 0 0 0 S 0.0 0.0 0:00.01 ata/0
23 root 15 -5 0 0 0 S 0.0 0.0 0:31.30 ata/1
24 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 ata_aux
25 root 15 -5 0 0 0 S 0.0 0.0 0:00.01 ksuspend_usbd
26 root 15 -5 0 0 0 S 0.0 0.0 0:00.01 khubd
27 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 kseriod
28 root 20 0 0 0 0 S 0.0 0.0 0:01.98 khungtaskd
31 root 15 -5 0 0 0 S 0.0 0.0 3:52.10 kswapd0
32 root 25 5 0 0 0 S 0.0 0.0 0:00.06 ksmd
33 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 aio/0
34 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 aio/1
35 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 crypto/0
Re: zombie process - PPID 1670 ?
Posted: Fri Jan 01, 2010 5:09 am
by moredruid
Zombie processes can usually not be killed (sometimes not even when you kill the parent PID (PPID)).
They won't harm your system (the kernel flags them as zombies and does not grant them any more CPU cycles) so usually it's no biggie.
They will be removed at the next reboot. I've had a production system that was bogged down by zombie processes once, but there were around 12000 cron jobs zombied + 12000 for the script that the cronjob executed (badly written oracle monitoring script, wouldn't exit 0 if it couldn't reach the monitoring server). Of course the script was changed on a friday afternoon (sigh) in my holiday and noone noticed it until I came back on monday a week later. And 24k zombie processess will apparently affect your Oracle performance - strange how that goes