Operating System - HP-UX
1748267 Members
3858 Online
108760 Solutions
New Discussion юеВ

Re: shminfo - Shared memory info

 
Dennis Handly
Acclaimed Contributor

Re: shminfo - Shared memory info

>Therefore using ipcs -ma will not give me the list of processes attached to this shared memory segment.

It may give one and that may give you a clue.

>shminfo is only tool to my knowledge which can provide this information.

As Michael said, you can roll your own with pstat(2).
See attached. Compile with:
cc itrc_ipc_mem_pids.c -D_PSTAT64

>Michael: use ptree, pstat and other process analysis tools after you get the pid from ipcs

Which ptree? Yours and HP-UX's doesn't do that.
Michael Steele_2
Honored Contributor

Re: shminfo - Shared memory info

Hi Dennis:

I know, that ptree script is nothing like the Solaris command, which I miss in HP-UX

Kothari:

When done assign 0 to 10 points to all responses and close the thread, else, people will respond to it for years. Yes, it does happen.
Support Fatherhood - Stop Family Law
Steve Bonds
Trusted Contributor

Re: shminfo - Shared memory info

I found a simple method using the unsupported HP tool "kmeminfo":

http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=87967

Basically, just run "kmeminfo -shmem " and it spits out lots of info, including the PIDs currently attached.

-- Steve Bonds