1819806 Members
2754 Online
109607 Solutions
New Discussion юеВ

Re: Top and Glance

 
SOLVED
Go to solution
Quin Hammes
Valued Contributor

Top and Glance

We had a an issue with diaglogd taking up alot of CPU. Now it was at the Top of the main list of processes in the Top program but was not even shown in Glance. What is the best way of seeing the top CPU hogs on a system? TOP or Glance?????

Any help will be awarded with points.

Quin
6 REPLIES 6
James R. Ferguson
Acclaimed Contributor
Solution

Re: Top and Glance

Hi Quin:

As you have seen, 'top' is designed to order the process list by the "top" consumer of CPU. 'glance' orders processes by name on the main, process list screen.

If you use 'glance' and choose the [c]pu toggle you will see the most CPU intensive process with its utilization reported at the bottom of the CPU report screen.

Regards!

...JRF...
Jason VanDerMark
Trusted Contributor

Re: Top and Glance

If memory serves, top is a port of the posix code whereas Glance is written to take advantage of hooks in the OS to get the info it needs. Glance in my experience is generally a much better source of monitoring processes. Hope this helps.

Regards,
Jason V.
Tie two birds together, eventhough they have four wings, they cannot fly.
Philip P. Hartl
Valued Contributor

Re: Top and Glance

Glance uses the measurment interface resulting in increased accuracy. To obtain a report similer to top in glance, select "o - Process Threshold Options" by pressing the o key in any screen. Select 1) Process. This will display the current thresholds and sort settings. Tab to the field you what to change and type the new value. Press f4 to exit the option screen.
Don't take life so seriously; nobody gets out alive.
Vito Sarducci
Regular Advisor

Re: Top and Glance

Quin,

If your specifically looking for a defined specific cpu "hog", then glance is your best route where you can drill down to the specific process ID # and see what it is doing.

If your watching your CPU's for utilization, then I would run a sar command with the following switches;

sar -Mu 5 30

This will return data on the cpuload for each processor(s)

HTH,

Vito
Lifes too short to stress out, Enjoy every day you have on earth!
Magdi KAMAL
Respected Contributor

Re: Top and Glance

Hi Quin,

For general CPULoad, you better use :

#sar -Mu nSeconds nTimes

For "debugging" processes, you better use glance to fetch out what they are doing.

Magdi
Varghese Mathew
Trusted Contributor

Re: Top and Glance

Hi Guys,

I got some info on the issue of contradictory reporting of CPU/memory utilization while using HPUX utilities like glance/gpm and top etc. There are few patches required to be put in the system as well.

-----------
The patches are :

top patch - PHCO_22686
uptime - PHCO_21928
Multiprocessor Patches --> PHNE_24100,PHNE_23456 and PHKL_24943.

CPU hog patch -> PHSS_21219
--------------

Hope this helps
Cheers !!!
Mathew
Cheers !!!