Solved

What shared memory segments are associated with a process?

Posted on 2010-08-24
2
468 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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
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…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

762 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now