1753798 Members
8031 Online
108805 Solutions
New Discussion юеВ

%WCPU and %CPU in top

 
Patrick Chim
Trusted Contributor

%WCPU and %CPU in top

Hi all,

I have some questions about top.

1. What is the main difference between %WCPU and %CPU ?

2. I have some java processes running on the server side as follows

CPU TTY PID USERNAME PRI NI SIZE RES STATE TIME %WCPU %CPU COMMAND
1 ? 20714 cisprod 152 20 10300K 71908K run 33:34 7.56 7.55 java
1 ? 17990 cisprod 152 20 34876K 49964K run 9:21 1.97 1.96 java
0 ? 17964 cisprod 152 20 51260K 61652K run 10:17 1.87 1.87 java

Why the RES is larger than SIZE. What is the difference occupied for ?

Regards,
Patrick
2 REPLIES 2
Scott Van Kalken
Esteemed Contributor

Re: %WCPU and %CPU in top

%CPU is the column used to sort the processes in top.
Michael Tully
Honored Contributor

Re: %WCPU and %CPU in top

Hi,

%WCPU - Average (weighted) CPU usage since
'top' session started
%CPU - CPU usage over the current interval
(during the last top update)

SIZE - Total size of the process in kilobytes.
This includes text, data, and stack.
RES - Resident size of the process in kilobytes.
The resident size information is, at best,
is an approximate value.

HTH
-Michael
Anyone for a Mutiny ?