shmget.2: Clarify SHMALL

The default for SHMALL is a limit of 8 GB, regardless of
PAGE_SIZE. The current documentation does not mention that
and is therefore more difficult to understand than necessary.

Signed-off-by: Manfred Spraul <manfred@colorfullife.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Manfred Spraul 2014-05-03 13:16:17 +02:00 committed by Michael Kerrisk
parent 2cfc92a33f
commit 23c9590997
1 changed files with 8 additions and 1 deletions

View File

@ -288,7 +288,14 @@ Since Linux 2.4, the default value for this limit is
SHMMAX / PAGE_SIZE * (SHMMNI / 16)
Assuming a 4kB page size, this formula yields the value 2^21 (2,097,152).
If
.B SHMMAX
and
.B SHMMNI
are not modified, this yields a limit for the
total memory used by all shared memory segments of 8 GB:
With a 4kB page size, this formula yields the value 2^21 (2,097,152),
with 8kB page size, it yields 2^20 (1048576).
On Linux, this limit can be read and modified via
.IR /proc/sys/kernel/shmall .