From 82f92a9e7c85106bd578760455783f45274c76cf Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Fri, 26 Sep 2014 11:10:01 +0200 Subject: [PATCH] mq_overview.7: Rework discussion of HARD_MSGMAX Signed-off-by: Michael Kerrisk --- man7/mq_overview.7 | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/man7/mq_overview.7 b/man7/mq_overview.7 index 1d9026b91..0e025e6f0 100644 --- a/man7/mq_overview.7 +++ b/man7/mq_overview.7 @@ -187,17 +187,22 @@ limit is ignored for privileged processes but the .BR HARD_MSGMAX 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, +.RS +.IP * 3 +Up to Linux 2.6.32: +.IR "131072\ /\ sizeof(void\ *)" +.IP * +Linux 2.6.33 to 3.4: +.IR "(32768\ *\ sizeof(void\ *)/4)" +.IP * +Since Linux 3.5: .\" commit 5b5c4d1a1440e94994c73dddbad7be0676cd8b9a -it is 65,536. +65,536 +.RE .TP .IR /proc/sys/fs/mqueue/msgsize_default " (since Linux 3.5)" This file defines the value used for a new queue's