HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Glance vs. ps -e shows big difference in memory co...
Operating System - HP-UX
1834584
Members
3525
Online
110069
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
03-31-2006 01:57 AM
03-31-2006 01:57 AM
Glance vs. ps -e shows big difference in memory consumption
As discussed a couple of days ago, Glance was reporting about 100% memory utilization. This was great to know, but we were in need of knowing which processes were consuming this memory. The following was suggested:
UNIX95= ps -e -o vsz -o pid -o args |sort -k1nr|more
Today, Glace is reporting 100% utilization. However, using the 'ps' command above, I get something like 4.2 GB consumed (out of 8GB total). So, I must ask, why this big discrepancy?
Thanks for any input on this!
UNIX95= ps -e -o vsz -o pid -o args |sort -k1nr|more
Today, Glace is reporting 100% utilization. However, using the 'ps' command above, I get something like 4.2 GB consumed (out of 8GB total). So, I must ask, why this big discrepancy?
Thanks for any input on this!
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2006 02:01 AM
03-31-2006 02:01 AM
Re: Glance vs. ps -e shows big difference in memory consumption
Just theorizing here, Mark, but it seems to me that ps would not account for the kernel consumed memory or buffer cache, just the processes' usage.
Pete
Pete
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2006 02:14 AM
03-31-2006 02:14 AM
Re: Glance vs. ps -e shows big difference in memory consumption
Thanks for the insights. Can you estimate the memory consumption of these other components?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2006 04:59 AM
03-31-2006 04:59 AM
Re: Glance vs. ps -e shows big difference in memory consumption
Memory consumption is a very complex metric in Unix since there are so many different ways RAM is used. First there is the kernel itself which is relatively static but may change somewhat in newer releases. Then there is the dynamic buffer cache (no command to measure this except Glance and Measureware). Then there are shared libraries that many, many programs use. So far, all the RAM used by these items could be considered to be kernel RAM but shared by virtually all processes.
Now for the buffer cache, I (and other sysadmins) recommend NOT to use the dbc (dynamic buffer cache) percentages because the min and max values will automatically change when RAM changes, and the actual cache size will vary depending on RAM usage by processes. Instead, set bufpages to the number of 4k pages needed, something between 500 and 1000 megs. Then dbc_min_pct and dbc_max_pct kernel params are ignored.
Now there are program-specific areas of RAM that are not accounted in ps because they are shared: shared memory segments and memory mapped files. It's quite difficult to assign these shared components to specific programs because they are shared. ipcs -bmop will show you shared memory usage but can't show all the processes that might be using that memory. Another shared component are the shared text portions of identical programs (ie, each login shell or each httpd process for a web service). To minimize RAM usage, each program is assigned a space for the unchanging instructions (not data) and if another copy of the program is started, this area is shared because the instructions are read-only.
And finally, it's quite difficult to determine what components (programs, shared memory, etc) are actually in RAM or have some portion rolled out to swap. swapinfo -tam tells you about actual usage but not what components are there.
Glance is by far the most accurate in showing memory usage. ps is also quite accurate for what it shows (the unique data areas for each process) but by definition, it won't show usage that isn't associated with a specific program.
Bill Hassell, sysadmin
Now for the buffer cache, I (and other sysadmins) recommend NOT to use the dbc (dynamic buffer cache) percentages because the min and max values will automatically change when RAM changes, and the actual cache size will vary depending on RAM usage by processes. Instead, set bufpages to the number of 4k pages needed, something between 500 and 1000 megs. Then dbc_min_pct and dbc_max_pct kernel params are ignored.
Now there are program-specific areas of RAM that are not accounted in ps because they are shared: shared memory segments and memory mapped files. It's quite difficult to assign these shared components to specific programs because they are shared. ipcs -bmop will show you shared memory usage but can't show all the processes that might be using that memory. Another shared component are the shared text portions of identical programs (ie, each login shell or each httpd process for a web service). To minimize RAM usage, each program is assigned a space for the unchanging instructions (not data) and if another copy of the program is started, this area is shared because the instructions are read-only.
And finally, it's quite difficult to determine what components (programs, shared memory, etc) are actually in RAM or have some portion rolled out to swap. swapinfo -tam tells you about actual usage but not what components are there.
Glance is by far the most accurate in showing memory usage. ps is also quite accurate for what it shows (the unique data areas for each process) but by definition, it won't show usage that isn't associated with a specific program.
Bill Hassell, sysadmin
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP