* shmget.2: SHMALL & kernel version inconsistency ?
@ 2014-04-27 22:09 Simon Paillard
[not found] ` <20140427220916.GP18563-xazfMhTT2R0@public.gmane.org>
0 siblings, 1 reply; 2+ messages in thread
From: Simon Paillard @ 2014-04-27 22:09 UTC (permalink / raw)
To: linux-man-u79uwXL29TY76Z2rM5mHXA
Hi,
From shmget.2:
=======================================================================
SHMALL System wide maximum of shared memory pages. Since Linux 2.2,
the default value for this limit is
SHMMAX / PAGE_SIZE * (SHMMNI / 16)
Assuming a 4kB page size, this formula yields (since Linux 2.4)
the value 2^20 (2,097,152).
On Linux, this limit can be read and modified via /proc/sys/ker‐
nel/shmall.
=======================================================================
Linux 2.2 or 2.4 ?
I understand from lxr contant this is actually 2.4.
http://lxr.linux.no/#linux-old+v2.2.0/include/linux/shm.h#L53
http://lxr.linux.no/#linux-old+v2.4.0/include/linux/shm.h#L15
--
Simon Paillard
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 2+ messages in thread[parent not found: <20140427220916.GP18563-xazfMhTT2R0@public.gmane.org>]
* Re: shmget.2: SHMALL & kernel version inconsistency ? [not found] ` <20140427220916.GP18563-xazfMhTT2R0@public.gmane.org> @ 2014-04-28 7:39 ` Michael Kerrisk (man-pages) 0 siblings, 0 replies; 2+ messages in thread From: Michael Kerrisk (man-pages) @ 2014-04-28 7:39 UTC (permalink / raw) To: Simon Paillard, linux-man-u79uwXL29TY76Z2rM5mHXA Cc: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w On 04/28/2014 12:09 AM, Simon Paillard wrote: > Hi, > >>From shmget.2: > ======================================================================= > SHMALL System wide maximum of shared memory pages. Since Linux 2.2, > the default value for this limit is > > SHMMAX / PAGE_SIZE * (SHMMNI / 16) > > Assuming a 4kB page size, this formula yields (since Linux 2.4) > the value 2^20 (2,097,152). > > On Linux, this limit can be read and modified via /proc/sys/ker‐ > nel/shmall. > ======================================================================= > > Linux 2.2 or 2.4 ? > > I understand from lxr contant this is actually 2.4. > http://lxr.linux.no/#linux-old+v2.2.0/include/linux/shm.h#L53 > http://lxr.linux.no/#linux-old+v2.4.0/include/linux/shm.h#L15 Thanks, Simon. Yes, it should have been 2.4. The fix is in Git. Cheers, Michael -- Michael Kerrisk Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/ Linux/UNIX System Programming Training: http://man7.org/training/ -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-04-28 7:39 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-27 22:09 shmget.2: SHMALL & kernel version inconsistency ? Simon Paillard
[not found] ` <20140427220916.GP18563-xazfMhTT2R0@public.gmane.org>
2014-04-28 7:39 ` Michael Kerrisk (man-pages)
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).