All of lore.kernel.org
 help / color / mirror / Atom feed
From: Peter Zijlstra <a.p.zijlstra@chello.nl>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: hugh@veritas.com, linux-kernel@vger.kernel.org,
	linux-mm@kvack.org, npiggin@suse.de, riel@redhat.com,
	mztabzr@0pointer.de, mpm@selenic.com
Subject: Re: [PATCH] mm: MADV_WILLNEED implementation for anonymous memory
Date: Thu, 31 Jan 2008 09:44:00 +0100	[thread overview]
Message-ID: <1201769040.28547.245.camel@lappy> (raw)
In-Reply-To: <20080130144049.73596898.akpm@linux-foundation.org>


On Wed, 2008-01-30 at 14:40 -0800, Andrew Morton wrote:
> On Wed, 30 Jan 2008 18:28:59 +0100
> Peter Zijlstra <a.p.zijlstra@chello.nl> wrote:
> 
> > Implement MADV_WILLNEED for anonymous pages by walking the page tables and
> > starting asynchonous swap cache reads for all encountered swap pages.
> 
> Why cannot this use (a perhaps suitably-modified) make_pages_present()?

Because make_pages_present() relies on page faults to bring data in and
will thus wait for all data to be present before returning.

This solution is async; it will just issue a read for the requested
pages and moves on.



WARNING: multiple messages have this Message-ID (diff)
From: Peter Zijlstra <a.p.zijlstra@chello.nl>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: hugh@veritas.com, linux-kernel@vger.kernel.org,
	linux-mm@kvack.org, npiggin@suse.de, riel@redhat.com,
	mztabzr@0pointer.de, mpm@selenic.com
Subject: Re: [PATCH] mm: MADV_WILLNEED implementation for anonymous memory
Date: Thu, 31 Jan 2008 09:44:00 +0100	[thread overview]
Message-ID: <1201769040.28547.245.camel@lappy> (raw)
In-Reply-To: <20080130144049.73596898.akpm@linux-foundation.org>

On Wed, 2008-01-30 at 14:40 -0800, Andrew Morton wrote:
> On Wed, 30 Jan 2008 18:28:59 +0100
> Peter Zijlstra <a.p.zijlstra@chello.nl> wrote:
> 
> > Implement MADV_WILLNEED for anonymous pages by walking the page tables and
> > starting asynchonous swap cache reads for all encountered swap pages.
> 
> Why cannot this use (a perhaps suitably-modified) make_pages_present()?

Because make_pages_present() relies on page faults to bring data in and
will thus wait for all data to be present before returning.

This solution is async; it will just issue a read for the requested
pages and moves on.


--
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-01-31  8:44 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-30 17:28 [PATCH] mm: MADV_WILLNEED implementation for anonymous memory Peter Zijlstra
2008-01-30 17:28 ` [PATCH] mm: MADV_WILLNEED implementation for anonymous memory, " Peter Zijlstra
2008-01-30 18:15 ` [PATCH] " Matt Mackall
2008-01-30 18:15   ` Matt Mackall
2008-01-30 22:40 ` Andrew Morton
2008-01-30 22:40   ` Andrew Morton
2008-01-31  8:44   ` Peter Zijlstra [this message]
2008-01-31  8:44     ` Peter Zijlstra
2008-01-31  9:12     ` Andrew Morton
2008-01-31  9:12       ` Andrew Morton
2008-01-31  9:35       ` Peter Zijlstra
2008-01-31  9:35         ` Peter Zijlstra
2008-01-31  9:47         ` Andrew Morton
2008-01-31  9:47           ` Andrew Morton
2008-01-31  9:53           ` Peter Zijlstra
2008-01-31  9:53             ` Peter Zijlstra
2008-01-31 10:05             ` Andrew Morton
2008-01-31 10:05               ` Andrew Morton
2008-01-31 10:10               ` Peter Zijlstra
2008-01-31 10:10                 ` Peter Zijlstra
2008-01-31 10:18                 ` Andrew Morton
2008-01-31 10:18                   ` Andrew Morton
2008-01-31 10:15             ` Andi Kleen
2008-01-31 10:15               ` Andi Kleen
2008-01-31 10:19               ` Andrew Morton
2008-01-31 10:19                 ` Andrew Morton
2008-01-31 11:06                 ` Andi Kleen
2008-01-31 11:06                   ` Andi Kleen
2008-01-31 10:52                   ` Rik van Riel
2008-01-31 10:52                     ` Rik van Riel
2008-01-31 11:32                     ` Andi Kleen
2008-01-31 11:32                       ` Andi Kleen
2008-01-31 11:09                       ` Rik van Riel
2008-01-31 11:09                         ` 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=1201769040.28547.245.camel@lappy \
    --to=a.p.zijlstra@chello.nl \
    --cc=akpm@linux-foundation.org \
    --cc=hugh@veritas.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=mpm@selenic.com \
    --cc=mztabzr@0pointer.de \
    --cc=npiggin@suse.de \
    --cc=riel@redhat.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.