From: Eric B Munson <ebmunson@us.ibm.com>
To: Andi Kleen <andi@firstfloor.org>
Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org,
linux-man@vger.kernel.org, akpm@linux-foundation.org,
mtk.manpages@gmail.com
Subject: Re: [PATCH 0/3] Add pseudo-anonymous huge page mappings V3
Date: Tue, 18 Aug 2009 11:53:35 +0100 [thread overview]
Message-ID: <20090818105335.GA23058@us.ibm.com> (raw)
In-Reply-To: <87d46usg0q.fsf@basil.nowhere.org>
[-- Attachment #1: Type: text/plain, Size: 1741 bytes --]
On Mon, 17 Aug 2009, Andi Kleen wrote:
> Eric B Munson <ebmunson@us.ibm.com> writes:
>
> > This patch set adds a flag to mmap that allows the user to request
> > a mapping to be backed with huge pages. This mapping will borrow
> > functionality from the huge page shm code to create a file on the
> > kernel internal mount and uses it to approximate an anonymous
> > mapping. The MAP_HUGETLB flag is a modifier to MAP_ANONYMOUS
> > and will not work without both flags being preset.
>
>
> You seem to have forgotten to describe WHY you want this?
>
> From my guess, this seems to be another step into turning hugetlb.c
> into another parallel VM implementation. Instead of basically
> developing two parallel VMs wouldn't it be better to unify the two?
>
> I think extending hugetlb.c forever without ever thinking about
> that is not the right approach.
>
> -Andi
>
> --
> ak@linux.intel.com -- Speaking for myself only.
>
This patch is meant to simplify the programming model because presently
there is a large chunk of boiler plate code required to create private,
hugepage backed mappings. This patch would allow use of huge pages
without linking to libhugetlbfs or having hugetblfs mounted.
Unification would provide these same benefits, but it has been resisted
each time that it has been suggested for several reasons. It would
break PAGE_SIZE assumptions across the kernel. It makes page-table
abstractions really expensive. And it does not provide any benefit on
architectures that do not support huge pages, incurring fast path
penalties wihtout providing any benefit on these architectures.
Eric
--
Eric B Munson
IBM Linux Technology Center
ebmunson@us.ibm.com
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 197 bytes --]
prev parent reply other threads:[~2009-08-18 10:53 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-14 14:08 Eric B Munson
2009-08-14 14:08 ` [PATCH 1/3] hugetlbfs: Allow the creation of files suitable for MAP_PRIVATE on the vfs internal mount V3 Eric B Munson
2009-08-14 14:08 ` [PATCH 2/3] Add MAP_HUGETLB for mmaping pseudo-anonymous huge page regions V3 Eric B Munson
2009-08-14 14:08 ` [PATCH 3/3] Add MAP_HUGETLB example V3 Eric B Munson
2009-08-14 19:20 ` David Rientjes
2009-08-14 19:19 ` [PATCH 1/3] hugetlbfs: Allow the creation of files suitable for MAP_PRIVATE on the vfs internal mount V3 David Rientjes
2009-08-17 13:53 ` [PATCH 0/3] Add pseudo-anonymous huge page mappings V3 Andi Kleen
2009-08-18 10:53 ` Eric B Munson [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=20090818105335.GA23058@us.ibm.com \
--to=ebmunson@us.ibm.com \
--cc=akpm@linux-foundation.org \
--cc=andi@firstfloor.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-man@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=mtk.manpages@gmail.com \
/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