HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- the memory allocate size in top and ps -eo is diff...
Operating System - HP-UX
1833065
Members
2663
Online
110049
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
Go to solution
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
10-09-2006 11:15 PM
10-09-2006 11:15 PM
below is top output
it show hpvmapp process allocate about 1G memory
TTY PID USERNAME PRI NI SIZE RES STATE TIME %WCPU %CPU COMMAND
? 8662 root 152 20 1066M 1050M run 14:05 0.92 0.92 hpvmapp
? 3630 root 152 20 1066M 1052M run 28:23 0.85 0.84 hpvmapp
but in ps -eo command output
only use 415 and 736 page
I don't know why,and which output is corrent??
# ps -eo ruser,pcpu,sz,sz,vsz,pid,args |grep hpvmapp
root 0.00 25 25 104 11940 grep hpvmapp
root 0.93 415 415 4308 8662 hpvmapp -d compass1
root 0.89 736 736 4308 3630 hpvmapp -d compass2
it show hpvmapp process allocate about 1G memory
TTY PID USERNAME PRI NI SIZE RES STATE TIME %WCPU %CPU COMMAND
? 8662 root 152 20 1066M 1050M run 14:05 0.92 0.92 hpvmapp
? 3630 root 152 20 1066M 1052M run 28:23 0.85 0.84 hpvmapp
but in ps -eo command output
only use 415 and 736 page
I don't know why,and which output is corrent??
# ps -eo ruser,pcpu,sz,sz,vsz,pid,args |grep hpvmapp
root 0.00 25 25 104 11940 grep hpvmapp
root 0.93 415 415 4308 8662 hpvmapp -d compass1
root 0.89 736 736 4308 3630 hpvmapp -d compass2
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2006 11:38 PM
10-09-2006 11:38 PM
Solution
Hi,
there are a number of threads on this problem/topic where the first captures the most information:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=99729
others
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1016659
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=583193
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=712845
If you found these answers usefull, please see:
http://forums1.itrc.hp.com/service/forums/helptips.do?#28
there are a number of threads on this problem/topic where the first captures the most information:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=99729
others
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1016659
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=583193
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=712845
If you found these answers usefull, please see:
http://forums1.itrc.hp.com/service/forums/helptips.do?#28
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2006 11:45 PM
10-09-2006 11:45 PM
Re: the memory allocate size in top and ps -eo is different
Shalom,
The two utilities use different calculation methods. A small disagreement is completely normal.
swapinfo -tam is the best way to go here.
SEP
The two utilities use different calculation methods. A small disagreement is completely normal.
swapinfo -tam is the best way to go here.
SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2006 11:50 PM
10-09-2006 11:50 PM
Re: the memory allocate size in top and ps -eo is different
top's memory numbers are almost meaningless. ps is somewhat more accurate but is incomplete. There is no simple metric reporting the amount of RAM used by a program. A program has 4 quadrants, data and text being the most important. But the text area (unchanging instructions) is shared which means that hpvmapp is 2 processes but one shared text area. Additionally, programs will use shared libraries in the OS area. The data, stack and I/O areas are unique but a set of programs may also use shared memory to communicate. And the programs may use memory-mapped files.
Couple that with the OS mapping the needed pages as needed and you have a very complex indication of actual RAM used. That's why classic Unix tools like top and ps are not of much use for detailed analysis. You need a program designed specifically for HP-UX memory (and CPU and I/O) usage: GlancePlus.
Bill Hassell, sysadmin
Couple that with the OS mapping the needed pages as needed and you have a very complex indication of actual RAM used. That's why classic Unix tools like top and ps are not of much use for detailed analysis. You need a program designed specifically for HP-UX memory (and CPU and I/O) usage: GlancePlus.
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