diff --git a/man2/shmget.2 b/man2/shmget.2 index 146974a5d..14ed0bbe3 100644 --- a/man2/shmget.2 +++ b/man2/shmget.2 @@ -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 .