Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

What shared memory segments are associated with a process?

Posted on 2010-08-24
2
Medium Priority
?
483 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 1000 total points
ID: 33508586
... and to explore the virtual memory usage of a process further, try
svmon -P pid
 
 
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

When you do backups in the Solaris Operating System, the file system must be inactive. Otherwise, the output may be inconsistent. A file system is inactive when it's unmounted or it's write-locked by the operating system. Although the fssnap utility…
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 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…
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…
Suggested Courses

704 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