티스토리 뷰
안쓰니까 자주 까먹는다 –.-;
http://www.joinc.co.kr/modules/moniwiki/wiki.php/Site/system_programing/IPC/SharedMemory
1. 시스템상에 생성된 공유 메모리 세그먼트(Shared Memory Segment) 확인하기.
$ ipcs -m
2. 생성된 공유 메모리 세그먼트 제거.
$ ipcrm -m <아이디>
# ipcs
------ Shared Memory Segments --------
key shmid owner perms bytes nattch status
0x00000000 65536 root 600 393216 2 dest
0x00000000 98305 root 600 393216 2 dest
0x00000000 131074 root 600 393216 2 dest
0x00000000 163843 root 600 393216 2 dest
0x00000000 196612 root 600 393216 2 dest
0x00000000 229381 root 600 393216 2 dest
0x00000000 262150 root 600 393216 2 dest
0x00000000 294919 root 600 393216 2 dest
0x00000000 327688 root 600 393216 2 dest
0x00000000 360457 root 600 393216 2 dest
0x00000000 393226 root 600 393216 2 dest
0xc4bbe558 425995 oracle 640 255852544 205
0x09000004 458764 root 644 2508 4
------ Semaphore Arrays --------
key semid owner perms nsems
0xb56b05a8 98304 oracle 640 154
0x52a18479 131073 root 644 3
------ Message Queues --------
key msqid owner perms used-bytes messages