All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Michael Kerrisk (man-pages)" <mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: Andy Lutomirski <luto-kltTT9wpgjJwATOyAt5JVQ@public.gmane.org>
Cc: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org,
	linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH] remap_file_pages.2: Not actually useful on real files.
Date: Thu, 08 May 2014 11:45:05 +0200	[thread overview]
Message-ID: <536B5221.60407@gmail.com> (raw)
In-Reply-To: <5de30c3a21531919712fc7df213c18b46e521225.1355955125.git.luto-kltTT9wpgjJwATOyAt5JVQ@public.gmane.org>

Andy,

It's long after the fact, but...

On 12/19/2012 11:12 PM, Andy Lutomirski wrote:
> Linux commit 3ee6dafc677a68e461a7ddafc94a580ebab80735 caused
> remap_file_pages to be emulated when used on real file.
> 
> Signed-off-by: Andy Lutomirski <luto-kltTT9wpgjJwATOyAt5JVQ@public.gmane.org>
> ---
>  man2/remap_file_pages.2 | 6 ++++++
>  1 file changed, 6 insertions(+)
> 
> diff --git a/man2/remap_file_pages.2 b/man2/remap_file_pages.2
> index f96f594..f6dee99 100644
> --- a/man2/remap_file_pages.2
> +++ b/man2/remap_file_pages.2
> @@ -148,6 +148,12 @@ The
>  .BR remap_file_pages ()
>  system call appeared in Linux 2.5.46;
>  glibc support was added in version 2.3.3.
> +
> +.BR remap_file_pages ()
> +has no performance advantage over
> +.BR mmap (2)
> +when used on real (as opposed to purely in-memory) files as of Linux 2.6.23:
> +on real files it creates a separate vma for each range.
>  .SH "CONFORMING TO"
>  The
>  .BR remap_file_pages ()


I've applied the above. I then tweaked it a little. Is the following
okay:

[[
Since Linux 2.6.23,
.\" commit 3ee6dafc677a68e461a7ddafc94a580ebab80735
.BR remap_file_pages ()
has no performance advantage over
.BR mmap (2)
when used on real files:
on real files it creates a separate VMA for each range.
It does, however, continue to provide a performance advantage
for files on memory-based filesystems.
]]

?

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-05-08  9:45 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-19 22:12 [PATCH] remap_file_pages.2: Not actually useful on real files Andy Lutomirski
     [not found] ` <5de30c3a21531919712fc7df213c18b46e521225.1355955125.git.luto-kltTT9wpgjJwATOyAt5JVQ@public.gmane.org>
2014-05-08  9:45   ` Michael Kerrisk (man-pages) [this message]
     [not found]     ` <536B5221.60407-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2014-05-08 12:50       ` Christoph Hellwig
     [not found]         ` <20140508125032.GA24087-wEGCiKHe2LqWVfeAwA7xHQ@public.gmane.org>
2014-05-08 13:29           ` Michael Kerrisk (man-pages)
     [not found]             ` <CAKgNAkhPJ+w0Kur57bJeTOrLdgaLRebk9Yr0PsE4czqcGFudwQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-05-08 20:38               ` Andy Lutomirski
     [not found]                 ` <CALCETrWjAoK_xo1-NTn5S4u=nK2EpH7oh6_JQOgU4BBieV7o+A-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-05-09  5:31                   ` Michael Kerrisk (man-pages)
     [not found]                     ` <536C682F.2060000-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2014-05-10  0:57                       ` Andy Lutomirski
     [not found]                         ` <CALCETrVxCRJuczMkmmpC81D-R0WVXuGwggpdWRJkx3fb4SOuLg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-05-10 17:44                           ` Michael Kerrisk (man-pages)
2014-05-19 14:48               ` Christoph Hellwig
     [not found]                 ` <20140519144856.GA23758-wEGCiKHe2LqWVfeAwA7xHQ@public.gmane.org>
2014-05-19 16:31                   ` Andy Lutomirski

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=536B5221.60407@gmail.com \
    --to=mtk.manpages-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
    --cc=linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=luto-kltTT9wpgjJwATOyAt5JVQ@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.