mq_overview.7: Rework discussion of HARD_MSGMAX

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2014-09-26 11:10:01 +02:00
parent 3b3d3564aa
commit 82f92a9e7c
1 changed files with 12 additions and 7 deletions

View File

@ -187,17 +187,22 @@ limit is ignored for privileged processes
but the but the
.BR HARD_MSGMAX .BR HARD_MSGMAX
ceiling is nevertheless imposed. ceiling is nevertheless imposed.
The definition of The definition of
.BR HARD_MSGMAX .BR HARD_MSGMAX
has changed across kernel versions: has changed across kernel versions:
before Linux 2.6.33, it was .RS
.IR "(131072\ /\ sizeof(void\ *))" .IP * 3
(32768 on Linux/86); Up to Linux 2.6.32:
from Linux 2.6.33, it was .IR "131072\ /\ sizeof(void\ *)"
.IR "(32768\ *\ sizeof(void\ *)/4)" ; .IP *
since Linux 3.5, Linux 2.6.33 to 3.4:
.IR "(32768\ *\ sizeof(void\ *)/4)"
.IP *
Since Linux 3.5:
.\" commit 5b5c4d1a1440e94994c73dddbad7be0676cd8b9a .\" commit 5b5c4d1a1440e94994c73dddbad7be0676cd8b9a
it is 65,536. 65,536
.RE
.TP .TP
.IR /proc/sys/fs/mqueue/msgsize_default " (since Linux 3.5)" .IR /proc/sys/fs/mqueue/msgsize_default " (since Linux 3.5)"
This file defines the value used for a new queue's This file defines the value used for a new queue's