- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Shared and private memory used by process
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
09-01-2005 09:27 AM
09-01-2005 09:27 AM
Shared and private memory used by process
How can I determine the private and shared memory used by a process ? I have seen some metrics like PROC_MEM_RES but it must be showing provate+shared memory.Can anyone guide me on this?
Thanks,
nad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-01-2005 09:35 AM
09-01-2005 09:35 AM
Re: Shared and private memory used by process
Its a pay for add in but probably worth it.
SEP
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
09-01-2005 09:44 AM
09-01-2005 09:44 AM
Re: Shared and private memory used by process
There are two utilities that come to my mind.
shminfo tool. Get it from floowing link
ftp://ftp.itrc.hp.com/
use of ipcs command.
man ipcs for details.
ipcs -moba
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-01-2005 12:31 PM
09-01-2005 12:31 PM
Re: Shared and private memory used by process
Shared memory of a process will have shared text , shared memory and shared library objects.
Glance gives good picture of a whole process structure. You can check the private memory of a process using PROC_MEM_PRIVATE_RES metric. It shows the valuse in KB and you have to enable "Process Memory Region" option in the Glance GUI. For process shared memory , check PROC_MEM_SHARED_RES metric , value in KB.
In Text based Glance, you can see this information for a process noting its PID
s (Select key ) -> PID -> M
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-01-2005 04:22 PM
09-01-2005 04:22 PM
Re: Shared and private memory used by process
To check shared memory : # ipcs -p -m
and for details can be checked with glance.
Also use ps -ef to see the top processes using private memory:
ps -ael | sort -r -k10 | head -10
Cheers,
Raj.
Cheers,
Raj.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-02-2005 02:16 AM
09-02-2005 02:16 AM
Re: Shared and private memory used by process
I already have glance. I tried using the metrics PROC_MEM_PRIVATE_RES & PROC_MEM_SHARED_RES but it shows me "na" in both the fields. What could be the problem ?
I have B3701AA C.03.71.00 HP GlancePlus/UX Pak for s800 11.0 on my HP-UX 11.00 box.
Have you seen values for the above PROC params on your machines ?
Also I am aware you can see shared mem segments using ipcs but what I want is for each process what is the private and shared resident memory.
Sameer,
Great to hear from u. Pls mail me at ninaddate@indiatimes.com
Regs,
Ninad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2005 04:11 AM
09-07-2005 04:11 AM
Re: Shared and private memory used by process
You should able to see values for both. I am using Glance 2.40 on HP-UX 11.0 and 2.61 on HP-UX 11.11 . I could see these values .
I guess you might have looked at it once only. sometimes these values couldn't be obtained by Glance , hence it will show "na" in those field. Whenever it can, you should see the values.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2005 04:30 AM
09-07-2005 04:30 AM
Re: Shared and private memory used by process
Follow RAC's suggestion and download the shminfo tool from ftp://ftp.itrc.hp.com/
I'ave used it in the past and still do from time to time and its invaluable in showing the system shared memory map and for correlating those regions to the various processes on the system.
Another tool would be ipcs though various options and switches to the shminfo tool will let you duplicate its output.
cheers!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2005 05:41 AM
09-07-2005 05:41 AM
Re: Shared and private memory used by process
Get a copy of shminfo from:
ftp://contrib:9unsupp8@hprc.external.hp.com/sysadmin/programs/shminfo/
Bill Hassell, sysadmin