IPC介绍——10个ipcs例子
semaphorearrays2010performancesystemaccess
ipcs是一个uinx/linux的命令。用于报告系统的消息队列、信号量、共享内存等
、列出所有的ipcs参数: -a
他是默认选项及ipcs等效于ipcs -a
[root@test ~]# ipcs -a
------ Shared Memory Segments --------
key shmid owner perms bytes nattch status
0x00000000 root
0x00000000 root
0x00000000 root
------ Semaphore Arrays --------
key semid owner perms nsems
0x00000000 root
0x00000000 root
0x000000a7 root
------ Message Queues --------
key msqid owner perms used-bytes messages 、列出进程中的消息队列: -q
当前范例中为空
[root@test ~]# ipcs -q
------ Message Queues --------
key msqid owner perms used-bytes messages 、列出所有的信号量: -s
[root@test ~]# ipcs -s
------ Semaphore Arrays --------
key semid owner perms nsems
0x00000000 root
0x00000000 root
0x000000a7 root 、列出所有的共享内存信息: -m
[root@test ~]# ipcs -m
------ Shared Memory Segments --------
key shmid owner perms bytes nattch status
0x00000000 root
0x00000000 root
0x00000000 root 、要列出进程更详细信息: -i+pid
[root@test ~]# ipcs -m -i
Shared memory Segment shmid=
uid= gid= cuid= cgid=
mode= access_perms=
bytes= lpid= cpid= nattch=
att_time=Fri Aug ::
det_time=Fri Aug ::
change_time=Fri Aug :: 、列出系统中的限额: -l(列出全部,也可指定要查看的限额)
[root@test ~]# ipcs -l
------ Shared Memory Limits --------
max number of segments =
max seg size (kbytes) =
max total shared memory (kbytes) =
min seg size (bytes) =
------ Semaphore Limits --------
max number of arrays =
max semaphores per array =
max semaphores system wide =
max ops per semop call =
semaphore max value =
------ Messages: Limits --------
max queues system wide =
max size of message (bytes) =
default max size of queue (bytes) = 、列出创建者以及属主的uid和gid: -c
[root@test ~]# ipcs -c
------ Shared Memory Segment Creators/Owners --------
shmid perms cuid cgid uid gid
root root root root
root root root root
root root root root
------ Semaphore Arrays Creators/Owners --------
semid perms cuid cgid uid gid
root root root root
root root root root
root root root root
------ Message Queues: Creators/Owners --------
msqid perms cuid cgid uid gid 、列出最后的访问时间: -t
[root@test ~]# ipcs -t
------ Shared Memory Attach/Detach/Change Times --------
shmid owner attached detached changed
root Aug :: Aug :: Aug ::
root Aug :: Aug :: Aug ::
root Aug :: Aug :: Aug ::
------ Semaphore Operation/Change Times --------
semid owner last-op last-changed
root Fri Aug :: Fri Aug ::
root Fri Aug :: Fri Aug ::
root Fri Aug :: Fri Aug ::
------ Message Queues Send/Recv/Change Times --------
msqid owner send recv change 、列出创建者和对应的进程id: -p
[root@test ~]# ipcs -p
------ Shared Memory Creator/Last-op --------
shmid owner cpid lpid
root
root
root 、列出当前的使用状况: -u
[root@test ~]# ipcs -u
------ Shared Memory Status --------
segments allocated
pages allocated
pages resident
pages swapped
Swap performance: attempts successes
------ Semaphore Status --------
used arrays =
allocated semaphores =
------ Messages: Status --------
allocated queues =
used headers =
used space = bytes 转载自:http://blog.csdn.net/i_am_jojo/article/details/7697155
也可参考http://blog.csdn.net/henulwj/article/details/8181957

IPC介绍——10个ipcs例子的更多相关文章

  1. 试试 IEnumerable 的 10 个小例子

    IEnumerable 接口是 C# 开发过程中非常重要的接口,对于其特性和用法的了解是十分必要的.本文将通过10个小例子,来熟悉一下其简单的用法. 全是源码 以下便是这10个小例子,响应的说明均标记 ...

  2. Linux mv 命令的10个实用例子

    当你想要将文件从一个位置移动到另一个地方并且不想复制它,那么mv 命令是完成这个任务的首选.本文中总结了十个Linux mv 命令的实例,希望能给大家带来一些帮助. 初识 mv 命令 mv 命令是一个 ...

  3. 【转】Linux 移动或重命名文件/目录-mv 的10个实用例子

    熟悉了 复制命令,下一个相关的命令就是 mv 命令.当你想要将文件从一个位置移动到另一个地方并且不想复制它,那么mv 命令是完成这个任务的首选. 初识 mv 命令 mv 命令是一个与cp类似的命令,但 ...

  4. activiti 用户手册中 10分钟 小例子 简单代码搭建 及 其中的 各种坑

    看mossle的 5.16 用户手册中的  快速起步:10分钟教程 想自己跑一下,虽然官方文档已经写的非常详细了,但是实际操作中还是遇到各种坑,这里记录下来. 首先官网下载最新的 5版本 full G ...

  5. OPENCV SVM介绍和自带例子

    依据机器学习算法如何学习数据可分为3类:有监督学习:从有标签的数据学习,得到模型参数,对测试数据正确分类:无监督学习:没有标签,计算机自己寻找输入数据可能的模型:强化学习(reinforcement ...

  6. Linux 移动或重命名文件/目录-mv 的10个实用例子

    本文导航 -初识 mv 命令03% -1.移动文件08% -2.移动多个文件15% -3.移动目录23% -4.重命名文件或目录27% -5. 重命名目录35% -6. 打印移动信息39% -7. 使 ...

  7. 10.11 Linux网络相关 10.12 firewalld和netfilter 10.13 netfilter5表5链介绍 10.14 iptables语法

    Linux网络相关 ifocnfig 查看网卡ip(yum install net-tools) ip add 查看网卡 ip add = ifocnfig ifconfig 不显示down掉的网卡, ...

  8. Boost IPC Persistence Of Interprocess Mechanisms 例子

    下面这一段摘抄自 Boost 1_55_0 的文档,显然标注了 每一个的生命期. One of the biggest issues with interprocess communication m ...

  9. spring boot入门 -- 介绍和第一个例子

    "越来越多的企业选择使用spring boot 开发系统,spring boot牛在什么地方?难不难学?心动不如行动,让我们一起开始学习吧!" 使用Spring boot ,可以轻 ...

随机推荐

  1. Coding.net+Myeclipse 2014 Git配置

    安装Git,然后 $ssh-keygen -t rsa -b 4096 -C "your_email@example.com" # Creates a new ssh key, u ...

  2. java多线程(四)之同步机制

    1.同步的前提 多个线程 多个线程使用的是同一个锁 2.同步的好处 同步的出现解决了多线程的安全问题 3.同步的弊端 当线程较多时, 因为每个线程都会去判断同步上的锁, 这样是很耗费资源的, 会降低程 ...

  3. 【LeetCode】145. Binary Tree Postorder Traversal (3 solutions)

    Binary Tree Postorder Traversal Given a binary tree, return the postorder traversal of its nodes' va ...

  4. XML编辑器之XMLSpy2005

    http://baike.baidu.com/link?url=79rnCuCnvoYJZHmQUBdc9INRvBTsWO_RYjWXgWI2sP1thb2WV5_6j_ygzInE7bdE7zaC ...

  5. Web前端开发必备工具推荐

    http://gaohaixian.blog.163.com/blog/static/12326010520114265223489/不管你做前端开发还是网页重构,前端工具都起着非常重要的作用,这里向 ...

  6. eclipse代码格式化设置

    http://www.cnblogs.com/zhxiaomiao/archive/2010/06/19/1760995.html java---code style ---formatter 首先新 ...

  7. android程序监听home键与电源键

    01 private final BroadcastReceiver homePressReceiver = new BroadcastReceiver() { 02 final String SYS ...

  8. java JAXB + STAX(是一种针对XML的流式拉分析API)读取xml

    JDK1.5需要添加jar包,1.6以后就不需要了<dependency> <groupId>stax</groupId> <artifactId>st ...

  9. javascript linkedlist data structures

    在使用C++的时候我们经常会使用到各种容器,这些容器其实就是一种数据结构.在java中其实也是如此.但是由于javascript只给我们提供了一种内置的数据结构数组,准备来说是对象.没有我们常见的那些 ...

  10. 使用.net的跟踪诊断来记录wcf消息

    首先在项目的config文件中定义以下结点: <system.diagnostics> <sources> <source name="System.Servi ...