on 05-08-2009 6:10 AM
Hello,
In the Output of ps -ef, what exactly does the column 'C' represent?
UID PID PPID C STIME TTY TIME CMD
root 1 0 0 Apr 11 - 0:26 /etc/init
root 118912 1 0 Apr 11 - 0:00 /usr/lib/errdemon
orap3w 2166910 1 120 Apr 16 - 22726:25 oracleP3W (LOCAL=NO)
The entry for oracleP3W (LOCAL=NO) above is C=120, whereas all other process have C=0
Thanks.
Edited by: Gautam Poddar on May 8, 2009 7:12 AM
C- CPU usage and scheduling information
Rohit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Rohit,
...it can have any values
The value of CPU usage should have some unit.. percent, MB or something. I am guessing its not percent here, since the value is 120 for the process I am concerned.
So, what's the unit of CPU usage value?
What does 120 in this case mean?
Why do all other processes have CPU usage as 0?
UID PID PPID C STIME TTY TIME CMD
root 1 0 0 Apr 11 - 0:26 /etc/init
root 118912 1 0 Apr 11 - 0:00 /usr/lib/errdemon
root 135306 1 0 Apr 11 - 49:14 /usr/sbin/syncd 60
p3wadm 163916 2261178 0 May 04 - 0:00 dw.sapP3W_DVEBMGS00 pf=/usr/sap/P3W/SYS/profile/P3W_DVEBMGS00_a92sv093bw002
root 295058 1 0 Apr 11 - 0:00 /usr/ccs/bin/shlap64
root 299188 1 0 Apr 11 - 0:00 /usr/sbin/srcmstr
root 303288 299188 0 Apr 11 - 0:00 /usr/sbin/hostmibd
root 327862 1 0 Apr 11 - 1:44 bin/rscw
root 331960 299188 0 Apr 11 - 0:00 /usr/sbin/snmpmibd
root 336052 299188 0 Apr 11 - 0:09 /usr/sbin/aixmibd
root 340194 299188 0 Apr 11 - 0:02 /usr/sbin/inetd
root 348400 299188 0 Apr 11 - 0:00 /usr/sbin/portmap
root 356576 299188 0 Apr 11 - 0:00 /usr/sbin/snmpd
root 364722 299188 0 Apr 11 - 0:00 /usr/sbin/syslogd
root 368820 299188 0 Apr 11 - 0:33 sendmail: accepting connections
root 377030 413902 0 Apr 11 - 0:51 /usr/lpp/OV/bin/ovbbccb -nodaemon
daemon 381140 299188 0 Apr 11 - 0:00 /usr/sbin/rpc.statd -d 0 -t 50
root 385212 327862 0 Apr 11 - 0:38 bin/rscd
root 393416 413902 0 Apr 11 - 3:04 /usr/lpp/OV/lbin/eaagt/opcmsga
p3wadm 397532 1 0 Apr 11 - 0:45 /usr/sap/P3W/DVEBMGS00/exe/sapstartsrv pf=/usr/sap/P3W/SYS/profile/START_DVEBMGS00_a92sv0
root 401632 413902 0 Apr 11 - 9:29 /usr/lpp/OV/lbin/eaagt/opcmona
root 405736 413902 0 Apr 11 - 3:03 /usr/lpp/OV/lbin/eaagt/opcacta
root 409810 413902 0 Apr 11 - 0:07 /usr/lpp/OV/lbin/eaagt/opcmsgi
root 413902 1 0 Apr 11 - 7:21 /usr/lpp/OV/bin/ovcd
root 418028 1 0 Apr 11 - 0:27 /usr/lpp/OV/lbin/xpl/trc/ovtrcd
root 422104 413902 0 Apr 11 - 7:16 /usr/lpp/OV/lbin/perf/coda
> The value of CPU usage should have some unit.. percent, MB or something. I am guessing its not percent here, since the value is 120 for the process I am concerned.
The "unit" can be found by checking the manual pages of the command "ps"
man ps
> So, what's the unit of CPU usage value?
> What does 120 in this case mean?
> Why do all other processes have CPU usage as 0?
Oracle on Unix creates a shadow process for each workprocess (dw<SID>....). if that shadow process (oracle<SID>) consumes CPU time, the "C" counter is increased.
What you see there is the fact, that the shadow process belonging to the oracle<SID> with the "120" did consume 120 seconds of CPU time whereas the other shadow processes did not yet consume any because they were not dispatched as of now.
Markus
Hello,
man says .....
C
(-f, l, and -l flags) CPU utilization of process or thread, incremented each
time the system clock ticks and the process or thread is found to be running.
The value is decayed by the scheduler by dividing it by 2 once per second. For
the sched_other policy, CPU utilization is used in determining process
scheduling priority. Large values indicate a CPU intensive process and result
in lower process priority whereas small values indicate an I/O intensive
process and result in a more favorable priority.
-
The C column is the processor utilization. With the exception of the ps command, all of the other processes listed are waiting for some event, such as another process to exit or (as in the case of shell processes) are waiting for user input. Note that in this example all of the entries have a 0 (zero) in the C column. This does not mean they have used no CPU time, but rather it is so low that it is reported as zero
Thanks,
Sudip..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.