Re: [Fwd: [TechRepublic] Monitor processes with ps]


Subject: Re: [Fwd: [TechRepublic] Monitor processes with ps]
From: The Alaskan Bear (akbear@akbearsden.com)
Date: Tue Sep 17 2002 - 17:24:25 AKDT


Disregard my previous post, I answered it right after I hit send.

   PROCESS STATE CODES
       D uninterruptible sleep (usually IO)
       R runnable (on run queue)
       S sleeping
       T traced or stopped
       Z a defunct ("zombie") process
 
       For BSD formats and when the "stat" keyword is used, additional letters may be displayed:
       W has no resident pages
       < high-priority process
       N low-priority task
       L has pages locked into memory (for real-time and custom IO)

man ps works wonders.

Sorry about that

-- 
Ted Montgomery
The Alaskan Bear's Den
akbear@akbearsden.com
Registered Linux User: #253251
907-242-9824

-- There are some things lots of money can buy ... -- -- For everything else, there is LINUX ... --

On Tue, Sep 17, 2002 at 05:23:00PM -0800, The Alaskan Bear wrote: > > Ok, well, considering you did give a lot of great info with this, let me > ask a question which I have been wondering about the STAT. > > What is N and W? > ie: > > dlmud 13303 0.0 0.0 1960 0 ? SW Sep13 0:00 [bpstart] > dlmud 13318 0.0 0.9 13700 2416 ? SN Sep13 0:10 dlm 3779 copyover > dlmud 15663 0.0 0.0 0 0 ? ZN Sep13 0:00 [dlm <defunct>] > > In this example, I will assume that the S is for Sleeping, but what is the N and W. > I would think that the N is for Nice, but am unsure. > > Thank you > > -- > Ted Montgomery > The Alaskan Bear's Den > akbear@akbearsden.com > Registered Linux User: #253251 > 907-242-9824 > > -- There are some things lots of money can buy ... -- > > -- For everything else, there is LINUX ... -- > > > On Tue, Sep 17, 2002 at 04:25:33PM -0800, AIDEA wrote: > > > > Here is some good info on the ps command. > > > > MONITOR PROCESSES WITH PS > > > > Linux offers you the ability to see exactly what's happening on your > > system with the ps command. With ps, you can see what programs are running, > > what their process IDs are, who started the programs, how long they've > > been running, etc. > > > > A number of arguments tell the ps command what information to display. > > For instance, the argument aux tells ps to display all processes running > > on a terminal, including those of other users, to display it in a > > user-oriented format, and to display processes without a controlling terminal > > (i.e., those in the background). A typical output might look something like > > this: > > > > USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND > > root 1 0.0 0.0 1412 80 ? S Apr29 0:04 init q > > mailq 1862 0.0 0.0 1384 320 ? S Apr29 0:00 qmail-clean > > root 1955 0.0 0.3 6868 2388 ? S Apr29 0:00 httpd-perl -f > > apache 1962 0.0 0.1 6976 1472 ? S Apr29 0:00 httpd-perl -f > > > > This shows the first running processes on the system (init is always > > first). Looking at our example, we can determine that the system was started > > or rebooted on April 29 by the START value. The TIME column displays how > > much CPU time the process has used, while the STAT column displays the > > current process state: > > > > * R is a runnable process. > > * D is in disk wait. > > * T is traced or stopped. > > * S is sleeping. > > * Z is a zombie process. > > > > Additional flags indicating process priority and swap status may be > > displayed as well. The %CPU and %MEM columns indicate the percentage of CPU > > and real memory the process is taking. > > > > > > > > > > --------- > > To unsubscribe, send email to <aklug-request@aklug.org> > > with 'unsubscribe' in the message body. > > --------- > To unsubscribe, send email to <aklug-request@aklug.org> > with 'unsubscribe' in the message body.

--------- To unsubscribe, send email to <aklug-request@aklug.org> with 'unsubscribe' in the message body.



This archive was generated by hypermail 2a23 : Tue Sep 17 2002 - 17:24:10 AKDT