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. 用UNetbootin轻松把Linux操作系统装进U盘

    转自http://www.hackbase.com/tech/2009-02-14/51197.html1.下载Linux发行版的iso镜像.    如Hiweed GNU/Linux:http:// ...

  2. 【转】MyEclipse 9.0正式版官网下载(附Win+Llinux激活方法、汉化包)

    MyEclipse 9.0 经过 M1,M2,终于出了正式版(MyEclipse For Spring 还是 8.6.1).该版本集成了 Eclipse 3.6.1,支持 HTML5 和 JavaEE ...

  3. sigmoid 函数与 softmax 函数

    sigmoid 函数与 softmax 函数     1. sigmoid 函数       sigmoid 函数又称:logistic函数,逻辑斯谛函数.其几何形状即为一条sigmoid曲线. lo ...

  4. java集合框架03——ArrayList和源码分析

    最近忙着替公司招人好久没写了,荒废了不好意思. 上一章学习了Collection的架构,并阅读了部分源码,这一章开始,我们将对Collection的具体实现进行详细学习.首先学习List.而Array ...

  5. Mosquitto ---学习笔记

    Mosquitto的安装,可以参见:https://mosquitto.org/download/ [基础配置]Mosquitto服务的配置文件为/etc/mosquitto/mosquitto.co ...

  6. 修改TreeList单元格格式(实现类似单元格合并效果)

    关键点:(1)TreeList中显示的单元格默认不显示上.下.左.右边框,显示的是TreeList自身的行横边框.列纵边框,具体对应TreeList属性中OptionView项下的ShowVertLi ...

  7. POJ 3254 简单状压DP

    没什么可说的,入门级状压DP.直接撸掉 #include <iostream> #include <cstring> #include <cstdlib> #inc ...

  8. VC编译错误: Nafxcwd.lib(dllmodul.obj) : error LNK2005: _DllMain@12已经在dllmain.obj 中定义

    错误: Nafxcwd.lib(dllmodul.obj) : error LNK2005: _DllMain@12已经在dllmain.obj 中定义 解决: 打开项目属性对话框, C/C++ -& ...

  9. Spring boot设置启动监听端口

    一.通过配置 修改application.properties 在属性文件中添加server.port=8000 二.直接看代码: @Controller @EnableAutoConfigurati ...

  10. [Jobdu] 题目1463:招聘会

    题目描述: 又到毕业季,很多大公司来学校招聘,招聘会分散在不同时间段,小明想知道自己最多能完整的参加多少个招聘会(参加一个招聘会的时候不能中断或离开). 输入: 第一行n,有n个招聘会,接下来n行每行 ...