[root@abc ~]# ipcs -mp
------ Shared Memory Creator/Last-op --------
shmid owner cpid lpid
0 highgo432 2060 9187
65537 oracle 3171 9181
98306 oracle 3171 9181
131075 oracle 3171 9181
cpid---是该shmid的创建进程号
lpid---是该shmid最后一次访问的进程号
[root@abc ~]# ps -ef | grep 2060
501 2060 1 0 Jun05 ? 00:00:00 /data/highgo/4.3.2/bin/postgres -D /data/highgo/4.3.2/data
501 2062 2060 0 Jun05 ? 00:00:00 postgres: checkpointer process
501 2063 2060 0 Jun05 ? 00:00:00 postgres: writer process
501 2064 2060 0 Jun05 ? 00:00:00 postgres: wal writer process
501 2065 2060 0 Jun05 ? 00:00:00 postgres: autovacuum launcher process
501 2066 2060 0 Jun05 ? 00:00:00 postgres: stats collector process
root 9192 8485 0 12:48 pts/1 00:00:00 grep 2060
[root@abc ~]# ipca -ma
-bash: ipca: command not found
[root@abc ~]# ipcs -ma
------ Shared Memory Segments --------
key shmid owner perms bytes nattch status
0x0052e2c1 0 highgo432 600 56 5
0x00000000 65537 oracle 640 12582912 24
0x00000000 98306 oracle 640 511705088 24
0x0447bbc8 131075 oracle 640 2097152 24
------ Semaphore Arrays --------
key semid owner perms nsems
0x00000000 0 root 600 1
0x00000000 32769 root 600 1
0x0052e2c1 65538 highgo432 600 17
0x0052e2c2 98307 highgo432 600 17
0x0052e2c3 131076 highgo432 600 17
0x0052e2c4 163845 highgo432 600 17
0x0052e2c5 196614 highgo432 600 17
0x0052e2c6 229383 highgo432 600 17
0x0052e2c7 262152 highgo432 600 17
0x0052e2c8 294921 highgo432 600 17
0x0052e2c9 327690 highgo432 600 17
0x0052e2ca 360459 highgo432 600 17
0x0052e2cb 393228 highgo432 600 17
0x0052e2cc 425997 highgo432 600 17
0x0052e2cd 458766 highgo432 600 17
0x0052e2ce 491535 highgo432 600 17
0x0052e2cf 524304 highgo432 600 17
0x0052e2d0 557073 highgo432 600 17
0x0052e2d1 589842 highgo432 600 17
0x0052e2d2 622611 highgo432 600 17
0x0052e2d3 655380 highgo432 600 17
0x0052e2d4 688149 highgo432 600 17
0x53395fcc 819222 oracle 640 604
------ Message Queues --------
key msqid owner perms used-bytes messages
[root@abc ~]#
[root@abc ~]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 6.8 (Santiago)
[root@abc ~]# ps -ef | grep 9187
root 9216 8485 0 12:52 pts/1 00:00:00 grep 9187
[root@abc ~]# ps -ef | grep 9181
root 9218 8485 0 12:53 pts/1 00:00:00 grep 9181
[root@abc ~]#