Operating System - HP-UX
1855233 Members
4666 Online
104109 Solutions
New Discussion

Experimenting a bottleneck

 
David Almada_1
Occasional Advisor

Experimenting a bottleneck

Hello everyone,
running the commands :
sar -u 3 30 the %idle is always 0
sar -q 3 30 the runq-sz is greather then 4
sar -b 3 30 %wcache >95

the other commands described in the doc "Introduction to performance tuning for HP-UX" didn't reveal anything wrong.
how can I determine the process that is causing the bottleneck?
how can I improve in this case my system performance?

thanks in advance

david almada
5 REPLIES 5
harry d brown jr
Honored Contributor

Re: Experimenting a bottleneck

Personally, I'd use glance/gpm (measureware). "glance" (where gpm is the graphical interface), allows you to see the system in near real time mode, something sar, uptime, iostat, and vmstat can't do.

Secondly, get "lsof" from http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/lsof-4.55/

Using glance/gpm, you can "drill" into the IO (disk) and then using lsof, you can easily find where, who , and what is causing your bottleneck. If you don't already have glance installed (it needs a license, but you can install a 30 day TRIAL version from the application CD's).

live free or die
harry
Live Free or Die
Steven Sim Kok Leong
Honored Contributor

Re: Experimenting a bottleneck

Hi,

Use top or glance to determine the top processes with the highest CPU utilisation.

Hope this helps. Regards.

Steven Sim Kok Leong
Brainbench MVP for Unix Admin
http://www.brainbench.com
Steven Gillard_2
Honored Contributor

Re: Experimenting a bottleneck

What are the other sar -u metrics? If %usr or %sys are high then run top to find out which process is consuming the CPU.

If %wio is high, then you may have a disk bottleneck so run sar -d to find out what disks are busy. If its your swap disk you may have a memory bottleneck.

If you have glance installed run that and have a look at all the CPU / memory / disk metrics.

Regards,
Steve
Paula J Frazer-Campbell
Honored Contributor

Re: Experimenting a bottleneck

Hi David

Attached is the cookbook.

Paula
If you can spell SysAdmin then you is one - anon
Frank Slootweg
Honored Contributor

Re: Experimenting a bottleneck

*Why* do you think you have a bottleneck?

Is it the following line? :

> sar -u 3 30 the %idle is always 0

If so, then *also* look at %wio and *add* %wio to %idle to get the effective idle time. See the description of %wio as to why you have to do this.