zombie process - PPID 1670 ?

User avatar
lou1z
Posts: 206
Joined: Fri Jul 17, 2009 1:58 am

zombie process - PPID 1670 ?

Postby lou1z » Thu Dec 31, 2009 1:50 am

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

User avatar
cpg
Administrator
Posts: 2618
Joined: Wed Dec 03, 2008 7:40 am
Contact:

Re: zombie process - PPID 1670 ?

Postby cpg » Thu Dec 31, 2009 3:47 am

i do not have a zombie, near as i can tell ...
details, details ... can you paste the line from top?
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 8GB RAM, 1TBx2+3TBx1

User avatar
lou1z
Posts: 206
Joined: Fri Jul 17, 2009 1:58 am

Re: zombie process - PPID 1670 ?

Postby lou1z » Thu Dec 31, 2009 4:00 am

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!!

User avatar
cpg
Administrator
Posts: 2618
Joined: Wed Dec 03, 2008 7:40 am
Contact:

Re: zombie process - PPID 1670 ?

Postby cpg » Thu Dec 31, 2009 5:00 am

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! :D
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 8GB RAM, 1TBx2+3TBx1

rampage537
Posts: 124
Joined: Mon Jun 29, 2009 9:41 am
Location: Hazel Park, MI
Contact:

Re: zombie process - PPID 1670 ?

Postby rampage537 » Thu Dec 31, 2009 8:05 am

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
Testmaster Manager
Amahi HDA Custom Dual 2.7 GHz, 3 GB DDR2 (667MHz) Ram, 80GB HDD for OS + 1TB and 320GB HDD for Share Drives

User avatar
moredruid
Expert
Posts: 791
Joined: Tue Jan 20, 2009 1:33 am
Location: Netherlands
Contact:

Re: zombie process - PPID 1670 ?

Postby moredruid » Fri Jan 01, 2010 5:09 am

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 :lol:
echo '16i[q]sa[ln0=aln100%Pln100/snlbx]sbA0D2173656C7572206968616D41snlbxq' | dc
Galileo - HP Proliant ML110 G6 quad core Xeon 2.4GHz, 4GB RAM, 2x750GB RAID1 + 2x1TB RAID1 HDD

Who is online

Users browsing this forum: No registered users and 17 guests