- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Glance vs ps
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2008 10:27 AM
10-15-2008 10:27 AM
Glance vs ps
The values reported by "ps" vary greatly from what Glance (gpm gui) reports. Top reports values of memory that are similar to gpm, but a value of CPU similar to ps.
For example, on front end #18:
Tue Oct 14 22:47:14 dholt@omztfb8:~/
$ UNIX95=1 ps -C "vt_tl1_am" -o vsz,pcpu,stime,comm
VSZ %CPU STIME COMMAND
971912 24.45 15:38:56 vt_tl1_am
Glance (from the gpm gui):
vt_tl1_am Res Mem = 1.07gb, Virtual Memory = 3.14gb, CPU % = 1.4
These numbers are completely different!!!
What’s going on? Which one is correct? How do I get ps and gpm to agree?
Thanks,
Dale Holt
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2008 10:41 AM
10-15-2008 10:41 AM
Re: Glance vs ps
> How do I get ps and gpm to agree?
You don't and you won't.
Glance is kernel savy. The 'ps' output doesn't atake into account shared memory or shared libraries whereas 'glance' counts these along with the stack, data and text size.
Moreover, the units reported by 'ps' are memory page size units. Glance reports in 1KB units.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2008 10:57 AM
10-15-2008 10:57 AM
Re: Glance vs ps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2008 11:05 AM
10-15-2008 11:05 AM
Re: Glance vs ps
Dale
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2008 11:26 AM
10-15-2008 11:26 AM
Re: Glance vs ps
> However, the man page for ps states that for "vsz" the size is in kilobytes...the "sz" output is stated to be in pages...
Yes, you are correct. Sorry for my inversion.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2008 06:27 AM
10-17-2008 06:27 AM
Re: Glance vs ps
Is there something similar for percentage of CPU usage? Top and ps show 24.45% but Glance shows only 1.4%.
Thanks,
Dale Holt
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2008 03:28 AM
10-18-2008 03:28 AM
Re: Glance vs ps
For top, it is the percentage of one CPU. Perhaps for glance is a percentage of all CPUs?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2008 06:24 AM
10-18-2008 06:24 AM
Re: Glance vs ps
Attached is a screen shot of the character mode Glance from on of my servers with 6 CPUs.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2008 05:22 PM
10-18-2008 05:22 PM
Re: Glance vs ps
Perhaps these values were for different time periods? Or one was averaged differently?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2008 03:24 PM
10-20-2008 03:24 PM
Re: Glance vs ps
Also, this is for a single CPU system. I haven't even tackled the multiple cpu systems yet.
It is odd that "top" reports 87.0% IDLE while the top five processes are using:
vt_tl1_am 18.11%
memory_ia64 17.01%
mcc_notif 5.46%
cmi_ses 1.12%
vxfsd 0.60%
-------
42.52%
And "ps" reports the name of the second highest cpu user as "
Thanks,
Dale
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2008 10:54 PM
10-20-2008 10:54 PM
Re: Glance vs ps
I wasn't aware that top was that bad.
>And "ps" reports the name of the second highest CPU user as "
ps(1) is broken. zombie process take no CPU time. (Unless it just died and ps(1) is still averaging it.)