11-28-2009
Ways to eliminate Zombies?
what are the precautions to be taken care for avoiding zombie process ?
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Okay, I'm working within ansi C and Sun Solaris 7. I have a problem with zombies. I'm currently using the kill command to return the status of a process. How do I check for Zombie PIDs or the right function to return its PID from within a C program? (1 Reply)
Discussion started by: karpolu
1 Replies
2. UNIX for Dummies Questions & Answers
Is there a command that will automaticaly go through and kill all children when you try to kill the parent process.
Thanks,
David (3 Replies)
Discussion started by: nucca
3 Replies
3. HP-UX
Hi All
I need help, how can i kill zombies instead of rebooting the system.
Regards
System: sna Tue Apr 5 17:50:23 2005
Load averages: 0.05, 0.15, 0.22
168 processes: 157 sleeping, 5 running, 6 zombies
Cpu states:
CPU LOAD USER NICE... (5 Replies)
Discussion started by: cgege
5 Replies
4. Programming
i'm writing small http proxy server (accept client -> connect to remote proxy server -> recv client's request -> send to remote proxy server -> get responce from remote proxy server -> send answer to client -> close connection to client and to remote proxy server) and having problems with fork().... (2 Replies)
Discussion started by: PsycoMan
2 Replies
5. UNIX for Dummies Questions & Answers
I had a problem deleting a zombie process. It refused to be killed.
I even tried kill -9 process# but it refused.
Any other way of killing it? (7 Replies)
Discussion started by: victorn
7 Replies
6. Shell Programming and Scripting
Hi
I would like to replace one of our script, and add some pre-checking for the input file before running the command, but I bumped into the following issue:
Original command: use < input.txt
I cannot modify the original command, but I created the useit script which would be called as... (2 Replies)
Discussion started by: apapp
2 Replies
7. Shell Programming and Scripting
Could any one help me to compare the date value say at 10th column with sysdate (i.e current date) and if diffrence is more than 50 days then filter them out from the file. The file contain 10000 records.
head file
00971502657744 A671FAHP2EW8BG1369172011HRWS contact information ... (6 Replies)
Discussion started by: zooby
6 Replies
8. Shell Programming and Scripting
Hi,
I am trying to create a text file from data retrieved from a query.The data retrieved is having this character '^L' at regular intervals of the data.
How can i eliminate this, Please find below the sample data.
I tried sed -e "s/\^L//g" to convert it, but with no luck
^LCODE*SERIAL... (11 Replies)
Discussion started by: ramkiran77
11 Replies
9. Shell Programming and Scripting
Hi All,
Please help me how to remove the records from the file if it is having more number of fields than the required one, before loading into stage
Here is the sample records. File is space delimited one
chandu 1121324 CC ( 2 spaces)
chandu balu 434657 DD (3 spaces) -- failing due to... (10 Replies)
Discussion started by: bbc17484
10 Replies
10. UNIX for Dummies Questions & Answers
Hello, quick question:
I have a zombie process listed with 'top'
Could someone help me find out what it the PID is for it,
so I can kill $PID.
$ model
9000/800/rp3440
HP-UX bigassserver B.11.31 U 9000/800 3085785128 unlimited-user license
thanks!
System: bigassserver ... (23 Replies)
Discussion started by: olyanderson
23 Replies
LEARN ABOUT NETBSD
proc_compare
PROC_COMPARE(3) BSD Library Functions Manual PROC_COMPARE(3)
NAME
proc_compare -- compare two processes' interactivity
LIBRARY
System Utilities Library (libutil, -lutil)
SYNOPSIS
#include <sys/sysctl.h>
int
proc_compare(const struct kinfo_proc2 *p1, const struct kinfo_lwp *l1, const struct kinfo_proc2 *p2, const struct kinfo_lwp *l2);
DESCRIPTION
The proc_compare() function compares two processes that are on the same terminal for their interactivity. This means that the process
returned is the one that has a better chance being the active foreground process on that tty. This algorithm is used in the kernel for
SIGINFO reporting and in userland by w(1).
The algorithm used is as follows:
o If one of them is runnable, it is preferred.
o If both are runnable, the one with the largest CPU percent is preferred.
o In a CPU percent tie, the one started more recently wins.
o If none are runnable, and one of them is a zombie, the non-zombie is preferred
o If both are zombies, the one started more recently wins.
o If neither is a zombie, the one with the smaller sleep time wins.
o In a tie, and one is sleeping in non-interruptible sleep, prefer that one.
o If both are in the same state, the one started more recently is preferred.
In all cases where the most recently started wins, if there was no winner, the one with the largest PID wins.
RETURN VALUES
The proc_compare() function returns 0 if p1 is to be preferred and 1 if p2 is to be preferred.
SEE ALSO
w(1)
HISTORY
The proc_compare() was extracted from src/sys/kern/tty.c and src/usr.bin/w/proc_compare.c and merged in NetBSD 6.0.
BSD
October 20, 2011 BSD