mirror of https://github.com/mkerrisk/man-pages
mq_overview.7: Update discussion of HARD_MSGMAX
The limit has changed in 2.6.33 and then again in 3.5. Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
8ef5d0c5ce
commit
2d5cee6b4e
|
@ -151,9 +151,7 @@ The default value for
|
||||||
is 10.
|
is 10.
|
||||||
The minimum value is 1 (10 in kernels before 2.6.28).
|
The minimum value is 1 (10 in kernels before 2.6.28).
|
||||||
The upper limit is
|
The upper limit is
|
||||||
.BR HARD_MSGMAX :
|
.BR HARD_MSGMAX .
|
||||||
.IR "(131072\ /\ sizeof(void\ *))"
|
|
||||||
(32768 on Linux/86).
|
|
||||||
The
|
The
|
||||||
.I msg_max
|
.I msg_max
|
||||||
limit is ignored for privileged processes
|
limit is ignored for privileged processes
|
||||||
|
@ -161,6 +159,17 @@ 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
|
||||||
|
.BR HARD_MSGMAX
|
||||||
|
has changed across kernel versions:
|
||||||
|
before Linux 2.6.33, it was
|
||||||
|
.IR "(131072\ /\ sizeof(void\ *))"
|
||||||
|
(32768 on Linux/86);
|
||||||
|
from Linux 2.6.33, it was
|
||||||
|
.IR "(32768\ *\ sizeof(void\ *)/4)" ;
|
||||||
|
since Linux 3.5,
|
||||||
|
.\" commit 5b5c4d1a1440e94994c73dddbad7be0676cd8b9a
|
||||||
|
it is 65,536.
|
||||||
.TP
|
.TP
|
||||||
.I /proc/sys/fs/mqueue/msgsize_max
|
.I /proc/sys/fs/mqueue/msgsize_max
|
||||||
This file can be used to view and change the ceiling on the
|
This file can be used to view and change the ceiling on the
|
||||||
|
|
Loading…
Reference in New Issue