Solved

What shared memory segments are associated with a process?

Posted on 2010-08-24
2
477 Views
Last Modified: 2013-11-17
In Linux (ES3/5) I am able to identify the shared memory segments that are associated with a given process, viz.

ds90g> for a in */maps ; do^Jcat $a | grep SYSV^Jdone
67f5b000-68161000 rw-s 00000000 00:06 5537800    /SYSV00000000 (deleted)
87f5b000-87fdb000 rw-s 00000000 00:06 5472262    /SYSV00000dbc (deleted)
67f5b000-68161000 rw-s 00000000 00:06 5537800    /SYSV00000000 (deleted)
87f5b000-87fdb000 rw-s 00000000 00:06 5472262    /SYSV00000dbc (deleted)
67f5b000-68161000 rw-s 00000000 00:06 5537800    /SYSV00000000 (deleted)
77f5b000-77fdb000 rw-s 00000000 00:06 5505031    /SYSV00000dbe (deleted)
87f5b000-87fdb000 rw-s 00000000 00:06 5472262    /SYSV00000dbc (deleted)
67f5b000-68161000 rw-s 00000000 00:06 5537800    /SYSV00000000 (deleted)
77f5b000-77fdb000 rw-s 00000000 00:06 5505031    /SYSV00000dbe (deleted)
87f5b000-87fdb000 rw-s 00000000 00:06 5472262    /SYSV00000dbc (deleted)

However, I do not know the equivalent method in AIX (5.x, 6.x). Is there one?

Cheers,
Mark
0
Comment
Question by:UnifySupport
  • 2
2 Comments
 
LVL 68

Expert Comment

by:woolmilkporc
ID: 33508511
Hi,
use
ipcs -m -a
The PID of the creating process is in the cPID column, the PID of the process that last attached or detached the segment is in the LPID column.
"-m" (see above) shows shared memory segments. To see message queues use "-q" instead, to see semaphores use "-s" instead.
Or use "-a" to see all of the three.
wmp
0
 
LVL 68

Accepted Solution

by:
woolmilkporc earned 250 total points
ID: 33508586
... and to explore the virtual memory usage of a process further, try
svmon -P pid
 
 
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
ftpcommand 2 67
Convert OverPunch 25 66
help pulling data string using Awk 9 80
Problem logging tar errors 11 65
A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question