This widget could not be displayed.
Operating System - HP-UX
1845516 Members
3216 Online
110244 Solutions
This widget could not be displayed.
This widget could not be displayed.
This widget could not be displayed.
This widget could not be displayed.
This widget could not be displayed.
This widget could not be displayed.
This widget could not be displayed.
New Discussion
This widget could not be displayed.
This widget could not be displayed.

Re: What is meant by "%WCPU %CPU" column for top command in HP-UX

 
Md. Minhaz Khan
Super Advisor

What is meant by "%WCPU %CPU" column for top command in HP-UX

Dear All,

What is meant by "%WCPU %CPU" column for top command in HP-UX?

Can any one tell me in an easy way?

Thanks
Minhaz
5 REPLIES 5
Horia Chirculescu
Honored Contributor

Re: What is meant by "%WCPU %CPU" column for top command in HP-UX

From man top:

%WCPU Weighted CPU (central processing unit) percentage.

Read

http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=57634&admit=109447626+1271160793100+28353475

Jean-Louis Phelix's post.

At the end there are also the formulas

%WCPU ---> (100.0 * pctcpu / (1.0 - exp(pp->pst_time * logcpu))),
%CPU ---> (100.0 * pctcpu));

Horia.
Best regards from Romania,
Horia.
James R. Ferguson
Acclaimed Contributor

Re: What is meant by "%WCPU %CPU" column for top command in HP-UX

Hi:

The '%wcpu' is a *weighted* CPU percentage whereas the '%cpu' is the CPU percentage during the last sample interval.

The weighted value gives a percentage based on more than one sample interval over time and thus should better reflect a process's average resource utilization.

Regards!

...JRF...
Horia Chirculescu
Honored Contributor

Re: What is meant by "%WCPU %CPU" column for top command in HP-UX

Here are the maths about "weighted percentage" (with some easy to understand samples)

http://mathforum.org/library/drmath/view/52803.html

Best regards from Romania,
Horia.
Best regards from Romania,
Horia.
Horia Chirculescu
Honored Contributor

Re: What is meant by "%WCPU %CPU" column for top command in HP-UX

: At the university (back in 1995) I had knew someone from India who was brilliant at math.

Bets regards from Romania,
Horia.
Best regards from Romania,
Horia.
Md. Minhaz Khan
Super Advisor

Re: What is meant by "%WCPU %CPU" column for top command in HP-UX

Thanks a lot everybody.

Minhaz