linux的一些系统限制

来源:互联网 发布:软件服务收费模式 编辑:程序博客网 时间:2024/06/05 10:23

1. 关于POSIX机制的消息队列mq:

 This filesystem can be mounted (by the superuser) using the following commands:           # mkdir /dev/mqueue           # mount -t mqueue none /dev/mqueue       The sticky bit is automatically enabled on the mount directory.              *  Before Linux 2.6.28, the upper limit is INT_MAX.              *  From Linux 2.6.28 to 3.4, the limit is 1,048,576.              *  Since Linux 3.5, the limit is 16,777,216 (HARD_MSGSIZEMAX).              The msgsize_max limit is ignored for privileged process (CAP_SYS_RESOURCE), but, since Linux 3.5, the HARD_MSGSIZEMAX ceiling is enforced for privileged              processes.       /proc/sys/fs/mqueue/queues_max              This file can be used to view and change the system-wide limit on the number of message queues that can be created.  The default value for queues_max is              256.  No ceiling is imposed on the queues_max limit; privileged processes (CAP_SYS_RESOURCE) can exceed the limit (but see BUGS).

(1)attr.mq_maxmsg 不能超过文件 /proc/sys/fs/mqueue/msg_max 中的数值,我的机器上面是10。

(2)attr.mq_msgsize不能超过 /proc/sys/fs/mqueue/msgsize_max 的数值。

(3)消息队列名称前面必须加上斜杆。

详细请参考:命令“man mq_overview”



阅读全文
'); })();
0 0
原创粉丝点击
热门IT博客
热门问题 老师的惩罚 人脸识别 我在镇武司摸鱼那些年 重生之率土为王 我在大康的咸鱼生活 盘龙之生命进化 天生仙种 凡人之先天五行 春回大明朝 姑娘不必设防,我是瞎子 vivo21游客模式怎么办 公排排不动怎么办 邮件上传失败怎么办 airdrop传输失败怎么办 电脑装不上打印怎么办 照片不能上传怎么办 oppor11闪退怎么办 手游方舟闪退怎么办 nplayer下载慢怎么办 磁盘状态关闭怎么办 ftp打不开文件夹怎么办 ftp出现索引怎么办 win10excel过期怎么办 删了系统盘怎么办 bitlocker中断怎么办 文件名不正确怎么办 没有征信怎么办 pdf下载打不开怎么办 地税上传失败怎么办 eec1报文超时怎么办 程序员脱发怎么办 虎牙充值错了怎么办 投票平票怎么办 尔雅网课没考试怎么办 电脑版微信秒封怎么办 停车位不交费怎么办 卡刷失败怎么办 夏天汽车暴晒怎么办 房子爬虫多怎么办 房间里有小虫怎么办 花盆里有千足虫怎么办 花卉土里有虫子怎么办 楼上房间潮湿怎么办 窗边有很多虫子怎么办 盆栽底下有小虫怎么办 花土里有小爬虫怎么办 花花土里有虫子怎么办 win10屏幕全屏怎么办 win7桌面图标不见了怎么办 源码封装了怎么办 淘宝刷手跑路怎么办