1752815 Members
5922 Online
108789 Solutions
New Discussion

Re: ipcs output

 

ipcs output

Hello all,
I have a general question about the output of ipcs command...

As far as I know if there is an orphaned process, it should show 0 (zero) under NATTCH column of the output.

But as you may see on below output I have a process sharing the memory with ID=1281 run by user cat0585 but I cannot see this process in the output of "ps -ef"

Does this point to a problem?

# ipcs -bom
Shared Memory:
T ID KEY MODE OWNER GROUP NATTCH SEGSZ
m 0 0xacec9621 --rw-rw-rw- root system 1 1849548
m 1281 0x4a415064 --rw-rw-rw- cat0585 GROUP1 64 388184

Thanks in advance,
CET
1 REPLY 1
Dennis Handly
Acclaimed Contributor

Re: ipcs output

>As far as I know if there is an orphaned process, it should show 0 under NATTCH column of the output.

(I assume you meant zombie and not orphan. Orphans are processes adopted by init.)

>run by user cat0585 but I cannot see this process in the output of "ps -ef"

This is the owner. With your MODE anyone on the system can be attached to it.

># ipcs -bom
ID KEY MODE OWNER GROUP NATTCH SEGSZ
1281 0x4a415064 --rw-rw-rw- cat0585 GROUP1 64 388184

You should use "ipcs -ma" so you can see the LPID, process ID of the last process to attach or detach the shared memory segment.
http://h30097.www3.hp.com/docs/base_doc/DOCUMENTATION/V51_HTML/MAN/MAN1/0171____.HTM