리눅스 공유 메모리 세그먼트 확인

공유 메모리 세그먼트 확인

1 명령어[ | ]

ipcs -m

#세그먼트 크기(bytes)만 뽑기
ipcs -m | awk '{print $5}' | egrep "[0-9]"

2 실행 예시[ | ]

[root@localhost ~]# ipcs -m

------ Shared Memory Segments --------
key        shmid      owner      perms      bytes      nattch     status      
0x740094c8 65536      root      600        4          0                       
0x00000000 2949121    root      600        524288     16         dest
[root@localhost ~]# ipcs -m | awk '{print $5}' | egrep "[0-9]"
4
524288
문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}