linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Matt Mackall <mpm@selenic.com>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: Dave Hansen <dave@linux.vnet.ibm.com>,
	hans.rosenfeld@amd.com, linux-mm@kvack.org,
	Hugh Dickins <hugh@veritas.com>
Subject: Re: [v4][PATCH 2/2] fix large pages in pagemap
Date: Wed, 11 Jun 2008 14:53:00 -0500	[thread overview]
Message-ID: <1213213980.20045.116.camel@calx> (raw)
In-Reply-To: <20080611123724.3a79ea61.akpm@linux-foundation.org>

[adding Hugh to the cc:]

On Wed, 2008-06-11 at 12:37 -0700, Andrew Morton wrote:
> On Wed, 11 Jun 2008 11:02:31 -0700
> Dave Hansen <dave@linux.vnet.ibm.com> wrote:
> 
> > 
> > We were walking right into huge page areas in the pagemap
> > walker, and calling the pmds pmd_bad() and clearing them.
> > 
> > That leaked huge pages.  Bad.
> > 
> > This patch at least works around that for now.  It ignores
> > huge pages in the pagemap walker for the time being, and
> > won't leak those pages.
> > 
> 
> I don't get it.   Why can't we just stick a
> 
> 	if (pmd_huge(pmd))
> 		continue;
> 
> into pagemap_pte_range()?  Or something like that.

That's certainly what you'd hope to be able to do, yes.

If I recall the earlier discussion, some arches with huge pages can only
identify them via a VMA. Obviously, any arch with hardware that walks
our pagetables directly must be able to identify huge pages directly
from those tables, but I think PPC and a couple others that don't have
hardware TLB fill fail to store such a bit in the tables at all.

-- 
Mathematics is the supreme nostalgia of our time.

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

  reply	other threads:[~2008-06-11 19:53 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-11 18:02 [v4][PATCH 1/2] pass mm into pagewalkers Dave Hansen
2008-06-11 18:02 ` [v4][PATCH 2/2] fix large pages in pagemap Dave Hansen
2008-06-11 19:37   ` Andrew Morton
2008-06-11 19:53     ` Matt Mackall [this message]
2008-06-11 20:11       ` Andrew Morton
2008-06-11 20:21         ` Matt Mackall
2008-06-11 20:34         ` Dave Hansen
2008-06-11 20:52           ` Andrew Morton
2008-06-11 21:01             ` Rik van Riel
2008-06-11 21:23             ` Dave Hansen
2008-06-11 22:37               ` Matt Mackall
2008-06-12 21:36                 ` Hugh Dickins
2008-06-12 22:35                   ` Matt Mackall
2008-06-11 20:15       ` Dave Hansen
2008-06-11 19:35 ` [v4][PATCH 1/2] pass mm into pagewalkers Andrew Morton

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=1213213980.20045.116.camel@calx \
    --to=mpm@selenic.com \
    --cc=akpm@linux-foundation.org \
    --cc=dave@linux.vnet.ibm.com \
    --cc=hans.rosenfeld@amd.com \
    --cc=hugh@veritas.com \
    --cc=linux-mm@kvack.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