|
|
Interpreting ps l output
I am making a call to ps in order to monitor the program I am running.
Many of the command line terms that are returned are in the books, I
can interpret them, but some are not. Listed below are sample command
lines returned from the call of 'ps l -U myid'. If someone could help
to interpret them for me, I would appreciate it. I would also like
to know where I can reference the meaning of the calls directly.
(note: this is not an assignment.)
The script I am running is making multiple serial calls to run a java
program.
Here are sample lines from 'ps l -U myid'.
F UID PID PPID PRI NI VSZ RSS WCHAN STAT TTY TIME COMMAND
5 . . . . . . . select SN ? . myid@pts/0
what does the flag setting for five indicate, and where can I find the
list of flags and what they mean? What does select mean? What is @pts/0
F UID PID PPID PRI NI VSZ RSS WCHAN STAT TTY TIME COMMAND
0 . . . . . . . rt_sig SN pts/0 . -csh
What is rt_sig, and why is pts/0 under TTY?
F UID PID PPID PRI NI VSZ RSS WCHAN STAT TTY TIME COMMAND
0 . . . . . . . wait4 SN pts/0 . /bin/sh
../myscript
I am ok with this line
F UID PID PPID PRI NI VSZ RSS WCHAN STAT TTY TIME COMMAND
0 . . . . . . . - RN pts/0 . java
myprogram
The java program is the program being run by my script.
Why does WCHAN only have a bar, and no other text
F UID PID PPID PRI NI VSZ RSS WCHAN STAT TTY TIME COMMAND
1 . . . . . . . poll SN pts/0 . java
myprogram
What does poll mean? and what is the flag meaning of 1?
F UID PID PPID PRI NI VSZ RSS WCHAN STAT TTY TIME COMMAND
1 . . . . . . . nanosl SN pts/0 . java
myprogram
What does nanosl mean?
Thanks
j.
|
|
0
|
|
|
|
Reply
|
jkaufman (11)
|
4/21/2004 12:22:42 PM |
|
jkaufman@shaw.ca (jk) wrote:
>I am making a call to ps in order to monitor the program I am running.
>Many of the command line terms that are returned are in the books, I
The trick to finding descriptions of the terms is to follow an
implied instruction in the man page. Read the man pages in the
SEE ALSO list at the end of the man page. (This is true of many
man pages... when you don't find what you are looking for, look
at the list of related documentation for something likely to
provide the detail you need.)
In the case of the ps(1) man page, it lists,
SEE ALSO
top(1) pgrep(1) pstree(1) proc(5)
And the man page for top(1) has either a detailed description of
each of the header labels, or it tells where to find the detail.
For example, your question about the dash under WCHAN, is
explained along with the description of what WCHAN means. And
the F column for flags, is explained but the reader is referred
to /usr/include/linux/sched.h for specific code values.
--
Floyd L. Davidson <http://web.newsguy.com/floyd_davidson>
Ukpeagvik (Barrow, Alaska) floyd@barrow.com
|
|
0
|
|
|
|
Reply
|
floyd (1027)
|
4/21/2004 2:44:17 PM
|
|
|
1 Replies
71 Views
(page loaded in 0.05 seconds)
Similiar Articles: Finding memory leaks through ps command - comp.unix.solaris ...> > It was my understanding that the only way to detect leaks ... leaks from a process in its long run? try "ps -l". ... the LDAP database and identify all ... output of the ps ... Capturing the output from a system command into a single string ...> The answer depends on *which* Rexx interpreter you're using (Regina, ooRexx ... Address System "ssh hostname ps -ef..." With Output ... Execute command line program and ... cron job run multiple number of times? - comp.unix.solaris ...I'm refering to the lines 1, 3 and 3rd to last of the ps output I pasted above. ... interpretation of cron log - comp.unix.solaris The '>' denotes when a cron (or at) job ... HP/UX printing queues - comp.sys.hp.hpux... after a certain amount of time is taken in practicing the command and interpreting output ... jobs b.. /opt/hpnpl/testfiles - The location of the testfiles:ps ... how to undo lpshut - comp.unix.solaris... Thanks in advance, > Gary. > > Here is the output from ls -l ... # lpadmin -x hpdj870c_ps # lpadmin -p hpdj870c_ps ... is that you've triggered a bug in HP's PCL interpreter. input & output in assembly - comp.lang.asm.x86... them. btw, is there anything like cin & cout in assembly PS ... and has some libraries that provide easier access to input/output routines, though grasping an understanding ... Why no std::back_insert_iterator::value_type? - comp.lang.c++ ...Ganesh PS: once we have decltype in the language ... (Hint, for output iterators like back_insert_iterator or ... more than one of the ways listed above, the interpretation ... Could anyone give me the spice-mode.el - comp.emacsHi, All I am new to *NIX and I am thinking of writing spice code under Emacs. However, I have no idea of Emacs Lisp. Hence, I could not write a packa... /bin/ls: arg list too long - comp.unix.solarishubcap% ps PID TTY TIME CMD 13997 pts/5 ... Sven, the link you posted was really helpful in understanding ... Sum a column of file sizes output from an list (ls ... Crontab issues with Solaris 10 - comp.unix.solaris... Remove the >/dev/null and 2>&1 and check the output; 3 ... interpretation of cron log - comp.unix.solaris Solaris 10 zones ... Cron is running: ~> ps -ef | grep cron root 202 1 0 ... ps - Linux Command - Unix Command - Linux Operating System and ...Linux / Unix Command Library: ps. Learn about its synopsis, description, options ... numeric output for WCHAN and USER: w: wide output--cols: set screen width--columns UNIX man pages : ps () - UNIXhelp for usersPipe ps output into the sort(1) command if you want to sort ... I_WANT_A_BROKEN_PS Force obsolete command line interpretation. LC_TIME Date format. PS ... 7/18/2012 10:50:02 PM
|
|
|
|
|
|
|
|
|