All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Michael Kerrisk (man-pages)" <mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: Simon Paillard
	<spaillard-8fiUuRrzOP0dnm+yROfE0A@public.gmane.org>,
	linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Cc: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
Subject: Re: shmget.2: SHMALL & kernel version inconsistency ?
Date: Mon, 28 Apr 2014 09:39:50 +0200	[thread overview]
Message-ID: <535E05C6.10409@gmail.com> (raw)
In-Reply-To: <20140427220916.GP18563-xazfMhTT2R0@public.gmane.org>

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

      parent reply	other threads:[~2014-04-28  7:39 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=535E05C6.10409@gmail.com \
    --to=mtk.manpages-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
    --cc=linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=spaillard-8fiUuRrzOP0dnm+yROfE0A@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.