您的位置:首页 > 运维架构 > Linux

Linux---ipcs

2016-07-28 18:31 435 查看
ipcs:ipcs用于查询IPC(Inter-Process Communication进程间通信)的状态。主要显示共享内存、消息队列、信号量三种信息状态。

A.分别查询IPC资源:

$ipcs -m 查看系统使用的IPC共享内存资源;

$ipcs -q 查看系统使用的IPC队列资源;

$ipcs -s 查看系统使用的IPC信号量资源。

B. 系统IPC参数查看:ipcs –l;

ipcs -l

 

------ Shared Memory Limits --------

max number of segments = 4096

max seg size (kbytes) = 4194303

max total shared memory (kbytes) = 1073741824

min seg size (bytes) = 1

 

------ Semaphore Limits --------

max number of arrays = 128

max semaphores per array = 250

max semaphores system wide = 32000

max ops per semop call = 32

semaphore max value = 32767

 

------ Messages: Limits --------

max queues system wide = 2048

max size of message (bytes) = 524288

default max size of queue (bytes) = 5242880

C. 上述参数的修改:在root用户下修改/etc/sysctl.conf 文件,保存后使用sysctl -p生效。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: