linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: "David S. Miller" <davem@redhat.com>
To: riel@conectiva.com.br
Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH *] rmap VM, version 12
Date: Wed, 23 Jan 2002 11:28:37 -0800 (PST)	[thread overview]
Message-ID: <20020123.112837.112624842.davem@redhat.com> (raw)
In-Reply-To: <Pine.LNX.4.33L.0201231720460.32617-100000@imladris.surriel.com>

   On Wed, 23 Jan 2002, David S. Miller wrote:
   
   >    Actually, this is just using the pte_free_fast() and
   >    {get,free}_pgd_fast() functions on non-pae machines.
   >
   > Rofl, you can't just do that.  The page tables cache caches the kernel
   > mappings and if you don't update them properly on SMP you die.
   
   Umm, this list just contains _freed_ page tables without
   any mappings, right ?
   
No.

   If there is some specific magic I'm missing, could you
   please point me to the code I'm overlooking ? ;)
   
Look at what get_pgd_slow() in pgalloc.h does, this is the
case where it isn't going to the cache and it is really allocating the
memory.

When the pgd comes fresh off the cache chain, it doesn't do any
of this stuff, it just gives you the cached PGD with all the PMD's
filled in already, including the kernel PMDs.

Hmmm... maybe the "we can fault on kernel mappings" thing takes
care of this because kernel PMDs can only appear, not go away.
--
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/

  reply	other threads:[~2002-01-23 19:28 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-01-23 17:14 Rik van Riel
2002-01-23 18:44 ` David S. Miller
2002-01-23 18:57   ` Rik van Riel
2002-01-23 19:06     ` David S. Miller
2002-01-23 19:22       ` Rik van Riel
2002-01-23 19:28         ` David S. Miller [this message]
2002-01-23 19:36           ` Rik van Riel
2002-01-23 20:18             ` David S. Miller
2002-01-23 22:12               ` Rik van Riel
2002-01-24  3:50               ` Andrea Arcangeli
2002-01-24  3:46       ` Andrea Arcangeli
2002-01-23 19:15     ` Robert Love
2002-01-23 19:02 Badari Pulavarty
2002-01-23 19:05 ` Rik van Riel
2002-01-23 19:12   ` Andi Kleen
2002-01-23 19:11 Badari Pulavarty
2002-01-23 19:20 ` Rik van Riel

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=20020123.112837.112624842.davem@redhat.com \
    --to=davem@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=riel@conectiva.com.br \
    /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