09-13-2001
if you are talking about zombie procceses:
ps -aefcl can be used to let you know if you have a zombie processes. the 2nd column will have a Z for zombie.
8 More Discussions You Might Find Interesting
1. AIX
Ok, somehow i've managed to create two .ksh files with the same name. Impossible i know but somehow i did it by mistake...
I was actually copying a file and renaming it as something else but as i was typing the copy name i hit the delete key by mistake and got the ^? characters in the file name... (9 Replies)
Discussion started by: Jazmania
9 Replies
2. AIX
Hi
When i use "w" command, It list some users with "-" command. That means these use already logout,but still in the system somewhere, no process but list under the "w" and "who" command.How can i get rid of these user. Can anybody help me out.thanks a lot
xiko (2 Replies)
Discussion started by: xiko
2 Replies
3. Shell Programming and Scripting
i need to execute 5 jobs at a time in background and need to get the exit status of all the jobs i wrote small script below , i'm not sure this is right way to do it.any ideas please help.
$cat run_job.ksh
#!/usr/bin/ksh
####################################
typeset -u SCHEMA_NAME=$1
... (1 Reply)
Discussion started by: GrepMe
1 Replies
4. Shell Programming and Scripting
Hello,
I am running GNU bash, version 3.2.39(1)-release (x86_64-pc-linux-gnu). I have a specific question pertaining to waiting on jobs run in sub-shells, based on the max number of parallel processes I want to allow, and then wait... (1 Reply)
Discussion started by: srao
1 Replies
5. Red Hat
Hi everyone,
Got an interesting one (well, interesting to me)
I have a box with a 5Gb / mount point. Checking for large files I found nothing and in fact when I did a full du I found that there was only 1.6Gb in use! And yet 100% used in /
So there's an unaccounted 3.4Gb somewhere!
The... (3 Replies)
Discussion started by: keefbaker
3 Replies
6. UNIX for Dummies Questions & Answers
I've been trying to set up the phantom protocol just to try it out. I compiled it fine, but when I ran it I got an error that the configuration file wouldn't load. I found that file didn't exist, so I created it with a blank file, but got this:
./phantom
Loading configuration file... (4 Replies)
Discussion started by: Azrael
4 Replies
7. Programming
Having issue with an oracle stored procedure that fetches 5k array size to an down stream application using oracle client interface. It is creating phantom arrays and keeps sending arrays that do not exist to begin with and congesting the connections. This happened when we upgraded from oracle... (1 Reply)
Discussion started by: mrn6430
1 Replies
8. Shell Programming and Scripting
I have multiple jobs and each job dependent on other job.
Each Job generates a log and If job completed successfully log file end's with JOB ENDED SUCCESSFULLY message and if it failed then it will end with JOB ENDED with FAILURE.
I need an help how to start.
Attaching the JOB dependency... (3 Replies)
Discussion started by: santoshkumarkal
3 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