linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Christoph Hellwig <hch-wEGCiKHe2LqWVfeAwA7xHQ@public.gmane.org>
To: "Michael Kerrisk (man-pages)"
	<mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: Andy Lutomirski <luto-kltTT9wpgjJwATOyAt5JVQ@public.gmane.org>,
	linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	linux-fsdevel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH] remap_file_pages.2: Not actually useful on real files.
Date: Thu, 8 May 2014 05:50:32 -0700	[thread overview]
Message-ID: <20140508125032.GA24087@infradead.org> (raw)
In-Reply-To: <536B5221.60407-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>

On Thu, May 08, 2014 at 11:45:05AM +0200, Michael Kerrisk (man-pages) wrote:
> 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.
> ]]

I think "real file" is a very bad term.  What is more real about one
file vs another?  Is NFS less real than XFS, is tmpfs more real than
ramfs?

I'd reword this more like this:

Since Linux 2.6.23, remap_file_pages only creates non-linear mappings
on in-memory file systems like tmpfs, hugetlbfs or ramfs.  File systems
with a backing store provide a less efficient emulation.


I think the whole man page for remap_file_pages is a litt confusing I
have to say, the concept of a VMA is purely kernel internal and doesn't
really have a meaning for applications and thus shouldn't appear in a
man page.


While we're at it:  It seems like we should get rid of the remap_pages
vma operation - it's set by lots of filesystems that can never have
it invoked, and always is set to generic_file_remap_pages anyway.
--
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

       reply	other threads:[~2014-05-08 12:50 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <5de30c3a21531919712fc7df213c18b46e521225.1355955125.git.luto@amacapital.net>
     [not found] ` <536B5221.60407@gmail.com>
     [not found]   ` <536B5221.60407-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2014-05-08 12:50     ` Christoph Hellwig [this message]
     [not found]       ` <20140508125032.GA24087-wEGCiKHe2LqWVfeAwA7xHQ@public.gmane.org>
2014-05-08 13:29         ` [PATCH] remap_file_pages.2: Not actually useful on real files 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=20140508125032.GA24087@infradead.org \
    --to=hch-wegcikhe2lqwvfeawa7xhq@public.gmane.org \
    --cc=linux-fsdevel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=luto-kltTT9wpgjJwATOyAt5JVQ@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;
as well as URLs for NNTP newsgroup(s).