1758766 Members
2565 Online
108875 Solutions
New Discussion юеВ

field of TOP

 
Marcelo De Florio_1
Frequent Advisor

field of TOP

I need to determinate the field %CPU of top what the meaning of ?, because if you sum this column of all process of system not equal to avg row in the top of screen.

for example:
CPU LOAD USER NICE SYS IDLE BLOCK SWAIT INTR SSYS
0 0.50 30.7% 2.0% 27.7% 39.6% 0.0% 0.0% 0.0% 0.0%
1 0.60 34.7% 4.0% 24.8% 36.6% 0.0% 0.0% 0.0% 0.0%
2 0.60 10.9% 11.9% 60.4% 16.8% 0.0% 0.0% 0.0% 0.0%
3 0.78 25.7% 0.0% 28.7% 45.5% 0.0% 0.0% 0.0% 0.0%
--- ---- ----- ----- ----- ----- ----- ----- ----- -----
avg 0.62 25.5% 4.9% 35.3% 34.3% 0.0% 0.0% 0.0% 0.0%

Memory: 557220K (177064K) real, 345164K (150828K) virtual, 1889196K free Page# 1/22

CPU TTY PID USERNAME PRI NI SIZE RES STATE TIME %WCPU %CPU COMMAND
0 ? 28481 oracle 154 20 14780K 2496K sleep 154:43 11.04 11.02 tnslsnr
1 ? 15009 oracle 154 20 435M 2928K sleep 0:08 6.43 6.41 oraclecvdep
0 ? 18046 oracle 154 20 435M 2928K sleep 0:02 5.38 5.19 oraclecvdep
3 ? 17323 oracle 154 20 435M 2928K sleep 0:03 4.95 4.92 oraclecvdep
Marcelo De Florio
4 REPLIES 4
Uday_S_Ankolekar
Honored Contributor

Re: field of TOP

sum the figures in cpu column then devide it by 4 (number of processors)
Your top out put in avg row is correct!

-USA..
Good Luck..
Ross Zubritski
Trusted Contributor

Re: field of TOP

.5 + .6 + .6 + .78 = 2.48

2.48 / 4 = .62

Regards,

RZ
John Meissner
Esteemed Contributor

Re: field of TOP

if I understand your question correctly.... (forgive me if i'm wrong... or clarify for me)

The average is exactly that... the average of each CPU. the sum would be the combined total of all.

the ? below is the TTY

If i missed you question could you clarify for me please
All paths lead to destiny
Ross Zubritski
Trusted Contributor

Re: field of TOP

Ah, I see. And the ? would denote a non tty process such as oracle, or system processes.

Regards,

RZ