linux-fsdevel.vger.kernel.org archive mirror
 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,
	Christoph Hellwig <hch-wEGCiKHe2LqWVfeAwA7xHQ@public.gmane.org>,
	linux-man <linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
	"linux-fsdevel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
	<linux-fsdevel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>
Subject: Re: [PATCH] remap_file_pages.2: Not actually useful on real files.
Date: Fri, 09 May 2014 07:31:27 +0200	[thread overview]
Message-ID: <536C682F.2060000@gmail.com> (raw)
In-Reply-To: <CALCETrWjAoK_xo1-NTn5S4u=nK2EpH7oh6_JQOgU4BBieV7o+A-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>

On 05/08/2014 10:38 PM, Andy Lutomirski wrote:
> On Thu, May 8, 2014 at 6:29 AM, Michael Kerrisk (man-pages)
> <mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
>> Hi Christoph,
>>
>> On Thu, May 8, 2014 at 2:50 PM, Christoph Hellwig <hch-wEGCiKHe2LqWVfeAwA7xHQ@public.gmane.org> wrote:
>>> 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.
>>
>> Yes, sounds better to me. Any tweaks you want to add to that, Andy?
>>
>>> 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.
>>
>> I agree it could be better. Do you have a suggested text?
>>
>>> 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.
> 
> Something along the lines of "on filesystems with a backing store,
> remap_file_pages is not much more efficient than using mmap(2) to
> adjust which parts of the file are mapped to which addresses" might
> get the idea across.

So, now I have:

[[
Since Linux 2.6.23,
.\" commit 3ee6dafc677a68e461a7ddafc94a580ebab80735
.BR remap_file_pages ()
creates non-linear mappings only on
on in-memory file systems such as tmpfs, hugetlbfs or ramfs.
On filesystems with a backing store,
.BR remap_file_pages ()
is not much more efficient than using
.BR mmap (2)
to adjust which parts of the file are mapped to which addresses.
]]

Okay?

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-09  5:31 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     ` [PATCH] remap_file_pages.2: Not actually useful on real files 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) [this message]
     [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=536C682F.2060000@gmail.com \
    --to=mtk.manpages-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
    --cc=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 \
    /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).