convert CPU load to CPU utilization in %

  • Follow


Hi,

Is it possible to convert the cpu load average (5min) got from the
output of uptime to cpu utilization in %? If so, how to?

Thanks in advance.
0
Reply yc282004 (55) 12/11/2009 5:32:39 AM

Dolphin wrote:
> Hi,
> 
> Is it possible to convert the cpu load average (5min) got from the
> output of uptime to cpu utilization in %? If so, how to?

Load average is for the system, not the (a) CPU.

-- 
Ian Collins
0
Reply Ian 12/11/2009 6:33:50 AM


In article <bb06aac4-258c-453f-9648-85cc4df0121a@g1g2000pra.googlegroups.com>,
	Dolphin <yc282004@yahoo.com.sg> writes:
> Hi,
> 
> Is it possible to convert the cpu load average (5min) got from the
> output of uptime to cpu utilization in %? If so, how to?
> 
> Thanks in advance.

loadave is (average) count of runnable threads, regardless if
they are running on a CPU or waiting to run, and modulo
sampling errors.

Whilst CPU usage can't exceed 100%, loadave can exceed number
of CPUs. I think all you can say is that if loadave < number
of CPUs, then there's some idle time. However, with cores
and strands nowadays, just what a CPU is in this context
isn't really clear anymore either.

So the answer is basically No.

-- 
Andrew Gabriel
[email address is not usable -- followup in the newsgroup]
0
Reply andrew 12/13/2009 8:25:18 PM

In article <hg3ije$6ft$1@news.eternal-september.org>,
Andrew Gabriel <andrew@cucumber.demon.co.uk> wrote:
>In article <bb06aac4-258c-453f-9648-85cc4df0121a@g1g2000pra.googlegroups.com>,
>	Dolphin <yc282004@yahoo.com.sg> writes:
>> Hi,
>> 
>> Is it possible to convert the cpu load average (5min) got from the
>> output of uptime to cpu utilization in %? If so, how to?
>> 
>> Thanks in advance.
>
>loadave is (average) count of runnable threads, regardless if
>they are running on a CPU or waiting to run, and modulo
>sampling errors.
>
>Whilst CPU usage can't exceed 100%, loadave can exceed number
>of CPUs. I think all you can say is that if loadave < number
>of CPUs, then there's some idle time. However, with cores
>and strands nowadays, just what a CPU is in this context

What's a "strand"?  THANKS!

>isn't really clear anymore either.
>
>So the answer is basically No.
>
>-- 
>Andrew Gabriel
>[email address is not usable -- followup in the newsgroup]

David


0
Reply dkcombs 12/31/2009 4:01:32 AM

3 Replies
876 Views

(page loaded in 0.079 seconds)

Similiar Articles:













7/20/2012 3:51:27 PM


Reply: