Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

cpu utilization measurement

Status
Not open for further replies.

Avardan

MIS
Dec 13, 2000
17
0
0
US
What goes into the "cpu utilization" measurement? Here are what I think goes into it...please tell me if I'm all screwed up.

user
kernel
iowait
swap

In my particular case, I have a server that has an incredibly high iowait, mainly due to bad design. I need to prove that we have adequate cpu, but my utilization is at 100% during the night (backup server) and iowait is usually around 70%

Thanks in advance,

Avardan

 
Avardan,

What version of UNIX are you using and which utility are you using to report the cpu utilization? Mike
michael.j.lacey@ntlworld.com
Email welcome if you're in a hurry or something -- but post in tek-tips as well please, and I will post my reply here as well.
 
Solaris 8...10/00 on a Sun E450

The utility is a network monitoring agent for SunNet Manager. I am unclear, however, which facility the agent uses to get the cpu util from the kernel. Probably the same as top.

Cheers!
 
CPU utilization is calculated in a couple of different ways.

The uptime command displays the average number of jobs in the run queue over the last 1, 5 and 15 minutes. I find this a useful measure since it gives you an idea of how many jobs are waiting for io or some other resource.

'vmstat 1' is interesting

The output from vmstat is difficult to show here but is in vertical columns, grouped into xx main categorys.
[tt]
Procs Reports the number of processes in each of the three following states: in (r)un queue, (b)locked for resources, runnable but s(w)apped

Memory Report on usage of virtual and real memory currently available

Paging Report information about page faults and paging activity.

Disk On some systems the number of disk operations per second is reported, for a limited number of disks.

Faults Report the trap/interrupt rates (per second).

cpu A breakdown of percentage usage of CPU time. On Multi-Processor systems, this is an average across all processors.
[/tt]
The CPU part, which you've asked about (I was getting there, eventually) is split into three

us user time
sy system time
id idle time

User time -- that portion of the total CPU time spent executing in user-space, running user code like 'x = x + 1;' and 'x++';'

System time -- that portion of the total CPU time spent executing in system space, running code on behalf the user process as the kernal e.g. 'printf("hello world\n");'

Idle time -- that portion of the total CPU time spent running the system idle loop. Mike
michael.j.lacey@ntlworld.com
Email welcome if you're in a hurry or something -- but post in tek-tips as well please, and I will post my reply here as well.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top