From 40502a2842ee8b8f417fd82ad6506b38d37998d9 Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Sun, 17 Mar 2013 15:20:40 +0100 Subject: [PATCH] mq_overview.7: Update details for 'queues_max' limit Things changed in Linux 3.5. See https://bugs.launchpad.net/bugs/1155695 Reported-by: Arto Bendiken Signed-off-by: Michael Kerrisk --- man7/mq_overview.7 | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/man7/mq_overview.7 b/man7/mq_overview.7 index f8af879b2..ea0bceb0a 100644 --- a/man7/mq_overview.7 +++ b/man7/mq_overview.7 @@ -202,12 +202,21 @@ ceiling is enforced for privileged processes. .I /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. -Only privileged processes -.RB ( CAP_SYS_RESOURCE ) -can create new message queues once this limit has been reached. The default value for .I queues_max -is 256; it can be changed to any value in the range 0 to INT_MAX. +is 256. +Before Linux 3.5, +this limit could be changed to any value in the range 0 to +.RB INT_MAX ; +since Linux 3.5, the ceiling for this limit is 1024 +.RB ( HARD_QUEUESMAX ). +Privileged processes +.RB ( CAP_SYS_RESOURCE ) +can exceed the +.I queues_max +limit, but since Linux 3.5, the +.BR HARD_QUEUESMAX +limit is enforced even for privileged processes. .SS Resource limit The .B RLIMIT_MSGQUEUE