IPC介绍——10个ipcs例子
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例子的更多相关文章
- 试试 IEnumerable 的 10 个小例子
IEnumerable 接口是 C# 开发过程中非常重要的接口,对于其特性和用法的了解是十分必要的.本文将通过10个小例子,来熟悉一下其简单的用法. 全是源码 以下便是这10个小例子,响应的说明均标记 ...
- Linux mv 命令的10个实用例子
当你想要将文件从一个位置移动到另一个地方并且不想复制它,那么mv 命令是完成这个任务的首选.本文中总结了十个Linux mv 命令的实例,希望能给大家带来一些帮助. 初识 mv 命令 mv 命令是一个 ...
- 【转】Linux 移动或重命名文件/目录-mv 的10个实用例子
熟悉了 复制命令,下一个相关的命令就是 mv 命令.当你想要将文件从一个位置移动到另一个地方并且不想复制它,那么mv 命令是完成这个任务的首选. 初识 mv 命令 mv 命令是一个与cp类似的命令,但 ...
- activiti 用户手册中 10分钟 小例子 简单代码搭建 及 其中的 各种坑
看mossle的 5.16 用户手册中的 快速起步:10分钟教程 想自己跑一下,虽然官方文档已经写的非常详细了,但是实际操作中还是遇到各种坑,这里记录下来. 首先官网下载最新的 5版本 full G ...
- OPENCV SVM介绍和自带例子
依据机器学习算法如何学习数据可分为3类:有监督学习:从有标签的数据学习,得到模型参数,对测试数据正确分类:无监督学习:没有标签,计算机自己寻找输入数据可能的模型:强化学习(reinforcement ...
- Linux 移动或重命名文件/目录-mv 的10个实用例子
本文导航 -初识 mv 命令03% -1.移动文件08% -2.移动多个文件15% -3.移动目录23% -4.重命名文件或目录27% -5. 重命名目录35% -6. 打印移动信息39% -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掉的网卡, ...
- Boost IPC Persistence Of Interprocess Mechanisms 例子
下面这一段摘抄自 Boost 1_55_0 的文档,显然标注了 每一个的生命期. One of the biggest issues with interprocess communication m ...
- spring boot入门 -- 介绍和第一个例子
"越来越多的企业选择使用spring boot 开发系统,spring boot牛在什么地方?难不难学?心动不如行动,让我们一起开始学习吧!" 使用Spring boot ,可以轻 ...
随机推荐
- HDUOJ---------2255奔小康赚大钱
奔小康赚大钱 Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Sub ...
- iOS10 推送必看 UNNotificationContentExtension
来源:徐不同(@2016徐小爷) 链接:http://www.jianshu.com/p/45933f5450a4 大伙久等啦~这绝对是最全最详细的 UNNotificationContentExte ...
- MFC异常处理的问题
参考文献:http://technet.microsoft.com/zh-cn/library/t078xe4f(v=vs.85).aspx MFC中异常处理的语法和语义构建在标准C++异常处理语法和 ...
- POJ 3096 Surprising Strings
Surprising Strings Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 5081 Accepted: 333 ...
- Report_Report Builder的一些基本概念(概念)
2014-05-31 Created By BaoXinjian
- SIPp常用脚本之二:UAS
看名字就能猜出来,这是作为SIP消息服务端的存在,启动uas,等着接受SIP消息并且给出响应. 一.uas.xml <?xml version="2.0" encoding= ...
- app hybrid
package com.note.testcases; /** * * The MIT License (MIT) * * Copyright (c) 2016 Alejandro Gómez Mor ...
- unity5 Text
unity5中,添加Text对象: 在其它对象的脚本中如果想引用此Text,则应定义: public UnityEngine.UI.Text myText; 然后把对象拖到变量上即可. 注: 1,需要 ...
- Vagrant安装指南
ubuntu的易用性很高,安装很简单,颜值也高,但是我工作中经常使用centos,我希望我的笔记本也是centos,但是,centos颜值太低,配置文件很复杂,不想弄这个太麻烦,于是,我想到了Vagr ...
- PCIe调试心得_DMA part3
作者: East FPGA那点事儿 上一章讲述了PCIe总线如何提高DMA的效率. 本章以服务器常用的4通道1000M以太网卡为例讲述如何实现多个虚拟DMA通道. 1.多通道DMA发 4通道以太网卡 ...