Solved

What shared memory segments are associated with a process?

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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to backup and restore the DHCP configuration on Solaris 9 7 46
SSH commands for Nas4free 21 423
Best way to split and output to csv in bash 2 64
centos commands 6 53
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…
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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.

770 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