Operating System - HP-UX
1753273 Members
5038 Online
108792 Solutions
New Discussion юеВ

Re: difference between glance and top

 
223848
Frequent Advisor

difference between glance and top

Hi Gurus,
I have a small doubt.
In one of the 11iv2 server when i checked with top command one of the process is taking 99% of CPU.
But when i checked in glance with that particular process PID it is taking very small CPU utilisation only..

Can you please tell me why is it so and from where these (top and glance) are getting the statistics.

Any way i restarted that particular apllication And after that this process is not shown in the top output.
11 REPLIES 11
sarfaraj ahmad
Trusted Contributor

Re: difference between glance and top

Hi laiju,

Glance is more reliable than top and gives appropriate result and statistics.
Manix
Honored Contributor

Re: difference between glance and top

Hello Laiju !!

How how are you checking the output in Glance

run Glance

type "s" to enter PID
& checking "CPU Usage util" for that process.

There is some refresh count for Glance.

Please paste the output.

Thanks

Manix
HP-UX been always lovable - Mani Kalra
223848
Frequent Advisor

Re: difference between glance and top

Hi Manix,
As i already mentioned you the problem is solved by restarting the application, so i am unable to give you the output now.

What i did is , i gave glance command, then i checked the process states the i pressed R and give the ID of that particular process. At that time i can see only 0.1% only that partical process is using.

But at the same time i checked the usage of that process in top, at that time that process was the top CPU usage in the system.
Manix
Honored Contributor

Re: difference between glance and top

Got u !!

difficult to state as node is not in same state.
but yes Glance is more powerful & reliable then
top.

Thanks
Manix
HP-UX been always lovable - Mani Kalra
223848
Frequent Advisor

Re: difference between glance and top

can you please tell me from where this top and glance are getting the outputs.
Sreer
Valued Contributor

Re: difference between glance and top

Hi,
Glance will give more statistical o/p and is more reliable than top.

Better to get the o/p of galnce/top to tell more.

Rgds
Sree

Manix
Honored Contributor

Re: difference between glance and top


the difference depends on the time at which both took the samples. top gets it's data from kernel counters whereas a glance pulls it from it's own measurement instrumentation.

When glance took the sample, process may be sleeping and when top took it, it might be running. So, looking at cumulative CPUs of both the tools over a certain period may make some sense but I wouldn't go too far in trying to compare piece to piece.

'top' may report wrong results depending on the patch levels though on 11i it seems to be fairly good. I use top just to have a quick look at the system. But I would always rely on glance as it gives a lot more information than top.

Look at the patch levels as well !!


Patch Name: PHKL_29198
Patch Description: s700_800 11.11 Psets Enablement Patch; top(1)
HP-UX been always lovable - Mani Kalra
Ismail Azad
Esteemed Contributor

Re: difference between glance and top

Hi,

Top is a generic unix tool and glance is HP proprietary and hence on an HPUX operating system, glance is much more reliable than top or sar. Top is typically related to fetching of info from (/dev/kmem),(/dev/mem) so do the generic unix tools sar, vmstat and iostat. Glance and gpm are proprietary to HPUX and should be preferred over top or sar although they are still very useful.

Regards
Ismail Azad
Read, read and read... Then read again until you read "between the lines".....
Alzhy
Honored Contributor

Re: difference between glance and top

Correction:

Glance versions exist for practically most UNIX and Linux variants.

For large corporates, it is often that Glance is deployed as a standard tool.

Difference: Glance has simply more bells and whistles and can collect historical data, set up alarms, group applications, etc.

If you've deep pockets -- Glance (and other OpenView Products) is a good choice.

BUT - if you have in house expertise or Open Source Software IS acceptable, there are solutions that cost NIL. Take the case of NAGIOS -- which HP has been incorporating and offering in some of its suites.

It may actually be on the Internet Express Suite of OSS tools and utilities already.
Hakuna Matata.