Operating System - HP-UX
1752805 Members
5662 Online
108789 Solutions
New Discussion юеВ

How do I find which process is owned by what memory segment

 
SOLVED
Go to solution
frederick hannah
Super Advisor

How do I find which process is owned by what memory segment

I have an hpux 11.11 environment and I want to do a "memory audit". How do I map a memory segemt to its assigned process?
8 REPLIES 8
TTr
Honored Contributor

Re: How do I find which process is owned by what memory segment

Not clear what you are asking but you may be asking for the output of "ipcs -a"
frederick hannah
Super Advisor

Re: How do I find which process is owned by what memory segment

Sorry for the fuzziness of the original question. I want know how to map the following shared memory segment to the process that is using it:

m 272410 0x00003039 --rw-rw-rw- oracle dba oracle dba 04304 3255 23093 14:38:32 14:39:24 11:28:40
TTr
Honored Contributor

Re: How do I find which process is owned by what memory segment

The process ID of interest are the CPID and LPID, in your case I assume they are 3255 and 23093. The 04304 should probably be two fields, 0 and 4304 for the NATTCH and SEGSZ fields. See man ipcs to find out what the meaning of eash PID is.
Steven E. Protter
Exalted Contributor

Re: How do I find which process is owned by what memory segment

Shalom,

memory segments do not own processes.

Processes use memory segment.

ipcs
# Shows memory segments and user ownership.

Check for other options on the command.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Bill Hassell
Honored Contributor
Solution

Re: How do I find which process is owned by what memory segment

I assume "memory segment" means shared memory segment. Use the command: ipcs -bmop

This will give a fair amount of information. However, a shared memory segment is created by a process but that is not really ownership. The segment ID is then communicated between processes so they can share access to the segment. Indeed, the creating process may have terminated a long time ago.


Bill Hassell, sysadmin
Sajjad Sahir
Honored Contributor

Re: How do I find which process is owned by what memory segment

Dear fred

ipcs -mob command u can use


thanks and regards

Sajjad
frederick hannah
Super Advisor

Re: How do I find which process is owned by what memory segment

thanks gents. everyone's output helped me find a solution and the customer is happy.
Sajjad Sahir
Honored Contributor

Re: How do I find which process is owned by what memory segment



Dear Federik

where is my points!!!!!1

Sajjad