msgop.2: Clarify wording of MSGMAX and MSGMNB limits

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2015-01-29 12:11:15 +01:00
parent 4b139190f9
commit faeaa68cca
1 changed files with 10 additions and 8 deletions

View File

@ -517,23 +517,25 @@ The following limits on message queue resources affect the
call: call:
.TP .TP
.B MSGMAX .B MSGMAX
Maximum size for a message text: 8192 bytes Maximum size of a message text, in bytes (default value: 8192 bytes).
(on Linux, this limit can be read and modified via On Linux, this limit can be read and modified via
.IR /proc/sys/kernel/msgmax ). .IR /proc/sys/kernel/msgmax .
.TP .TP
.B MSGMNB .B MSGMNB
Default maximum size in bytes of a message queue: 16384 bytes Maximum number of bytes that can be held in a message queue
(on Linux, this limit can be read and modified via (default value: 16384 bytes).
.IR /proc/sys/kernel/msgmnb ). On Linux, this limit can be read and modified via
.IR /proc/sys/kernel/msgmnb .
A privileged process A privileged process
(Linux: a process with the (Linux: a process with the
.B CAP_SYS_RESOURCE .B CAP_SYS_RESOURCE
capability) capability)
can increase the size of a message queue beyond can increase the size of a message queue beyond
.B MSGMNB .B MSGMNB
by a using the
.BR msgctl (2) .BR msgctl (2)
system call. .B IPC_SET
operation.
.PP .PP
The implementation has no intrinsic system-wide limits on the The implementation has no intrinsic system-wide limits on the
number of message headers number of message headers