博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Linux系统下查看IPC使用情况的方法
阅读量:2402 次
发布时间:2019-05-10

本文共 794 字,大约阅读时间需要 2 分钟。

 原贴:http://www.linuxidc.com/Linux/2008-06/13724.htm

1. SYS-V 方法

可以通过 ipcs 命令来查看 SYS-V 相关的 IPC 使用情况

2. POSIX 方法

1). message queue

Linux 提供了 mqueue 的文件系统类型,可以通过它来观察到 POSIX 消息队列的使用情况

view plaincopy to clipboardprint?

<script language=javaScript src="../../system/system60.js" type=text/javascript></script> <script type=text/javascript> </script> <script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type=text/javascript> </script>

$ mkdir /dev/mqueue

$ mount -t mqueue none /dev/mqueue

$ ls -l /dev/mqueue

-r-------- 1 root root 80 2008-06-18 11:46 /dev/mqueue/smith_event.mq

2). shared memory

Linux 提供了 shm 的文件系统类型,通常已经被 mount 到系统中,可以观察 /dev/shm 来查看 POSIX 共享内存的使用情况

view plaincopy to clipboardprint?

$ ls -l /dev/shm/

-rw-r--r-- 1 root root 1073741824 2008-06-18 11:46 smith.shm1

转载地址:http://jxtob.baihongyu.com/

你可能感兴趣的文章
Algorithms—59.Spiral Matrix II
查看>>
Algorithms—60.Permutation Sequence
查看>>
Algorithms—67.Add Binary
查看>>
Algorithms—73.Set Matrix Zeroes
查看>>
Algorithms—179.Largest Number
查看>>
Algorithms—93.Restore IP Addresses
查看>>
Algorithms—62.Unique Paths
查看>>
Algorithms—88.Merge Sorted Array
查看>>
Algorithms—100.Same Tree
查看>>
Algorithms—101.Symmetric Tree
查看>>
Algorithms—102.Binary Tree Level Order Traversal
查看>>
Algorithms—103.Binary Tree Zigzag Level Order Traversal
查看>>
Algorithms—111.Minimum Depth of Binary Tree
查看>>
Algorithms—104.Maximum Depth of Binary Tree
查看>>
Algorithms—107.Binary Tree Level Order Traversal II
查看>>
Algorithms—105.Construct Binary Tree from Preorder and Inorder Traversal
查看>>
Algorithms—106.Construct Binary Tree from Inorder and Postorder Traversal
查看>>
Algorithms—108.Convert Sorted Array to Binary Search Tree
查看>>
Algorithms—141.Linked List Cycle
查看>>
Algorithms—142.Linked List Cycle II
查看>>