From: "Jörn Engel" <joern-BHEL68pLQRGGvPXPguhicg@public.gmane.org>
To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
Cc: linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: mlockall(MCL_FUTURE) implies MAP_POPULATE
Date: Wed, 16 Dec 2015 10:50:06 -0800 [thread overview]
Message-ID: <20151216185006.GA31243@Sligo.logfs.org> (raw)
In-Reply-To: <CAFs=pgb+LatY8WKV+sZsvgUGMtzVsSxwX0FTKx3u5Nuj1AiOYg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
On Wed, Dec 16, 2015 at 07:44:16PM +0100, Michael Kerrisk (man7.org) wrote:
> On 28 October 2015 at 02:05, Jörn Engel <joern-BHEL68pLQRGGvPXPguhicg@public.gmane.org> wrote:
> > Hello Michael!
> >
> > Just came across this. When reading the manpage MLOCK(2), I assume that
> > mlockall(MCL_FUTURE) does _not_ imply MAP_POPULATE. But when reading
> > the code, I see that it does.
> >
> > This little detail can be rather crucial for RT-people, so it might be
> > worth spelling it out explicitly in the manpage.
>
> But, this detail doesn't seem so surprising to me. MCL_FUTURE == new
> pages that are mapped will be locked. Of course they must be populated
> into memory when the mapping is created. Or: to put it another way,
> maybe it would help if you explain why you find the behavior
> surprising. That might give me a clue about what should be fixed in
> the man page.
>
> But, please take this thread to mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org, and cc
> linux-man-u79uwXL29TaiAVqoAR/hOA@public.gmane.org
Done. :)
I guess it is a judgement call now. One fool (me) made the wrong
assumption and had to a) get into an argument with a coworker and b)
check the code to realize the mistake. If fools like me are common, it
might be worth making this point explicit. If I am the oddball, it
would be wasting file size and reading time for everyone else.
Jörn
--
Good warriors cause others to come to them and do not go to others.
-- Sun Tzu
--
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
next parent reply other threads:[~2015-12-16 18:50 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20151028010510.GF21688@Sligo.logfs.org>
[not found] ` <CAFs=pgb+LatY8WKV+sZsvgUGMtzVsSxwX0FTKx3u5Nuj1AiOYg@mail.gmail.com>
[not found] ` <CAFs=pgb+LatY8WKV+sZsvgUGMtzVsSxwX0FTKx3u5Nuj1AiOYg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-12-16 18:50 ` Jörn Engel [this message]
[not found] ` <20151216185006.GA31243-cauy6bAtduhuHSXMRYw1Og@public.gmane.org>
2015-12-17 7:06 ` mlockall(MCL_FUTURE) implies MAP_POPULATE Michael Kerrisk (man-pages)
[not found] ` <56725EED.80502-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2015-12-17 17:54 ` Jörn Engel
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=20151216185006.GA31243@Sligo.logfs.org \
--to=joern-bhel68plqrggvpxpguhicg@public.gmane.org \
--cc=linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox