From: Andrew Morton <akpm@linux-foundation.org>
To: Peter Zijlstra <a.p.zijlstra@chello.nl>
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 01:12:27 -0800 [thread overview]
Message-ID: <20080131011227.257b9437.akpm@linux-foundation.org> (raw)
In-Reply-To: <1201769040.28547.245.camel@lappy>
On Thu, 31 Jan 2008 09:44:00 +0100 Peter Zijlstra <a.p.zijlstra@chello.nl> wrote:
>
> 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.
>
I of course realise that. I also realise that swapin_readahead() is
_supposed_ to make the difference moot.
There's something you guys aren't telling us. Several things, actually.
Please don't do that.
Implementation-wise: make_pages_present() _can_ be converted to do this.
But it's a lot of patching, and the result will be a cleaner, faster and
smaller core MM. Whereas your approach is easy, but adds more code and
leaves the old stuff slow-and-dirty.
Guess which approach is preferred? ;)
--
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>
next prev parent reply other threads:[~2008-01-31 9:12 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-30 17:28 [PATCH] mm: MADV_WILLNEED implementation for anonymous memory, mm: MADV_WILLNEED implementation for anonymous memory Peter Zijlstra
2008-01-30 18:15 ` [PATCH] " Matt Mackall
2008-01-30 22:40 ` Andrew Morton
2008-01-31 8:44 ` Peter Zijlstra
2008-01-31 9:12 ` Andrew Morton [this message]
2008-01-31 9:35 ` Peter Zijlstra
2008-01-31 9:47 ` Andrew Morton
2008-01-31 9:53 ` Peter Zijlstra
2008-01-31 10:05 ` Andrew Morton
2008-01-31 10:10 ` Peter Zijlstra
2008-01-31 10:18 ` Andrew Morton
2008-01-31 10:15 ` Andi Kleen
2008-01-31 10:19 ` Andrew Morton
2008-01-31 11:06 ` Andi Kleen
2008-01-31 10:52 ` Rik van Riel
2008-01-31 11:32 ` Andi Kleen
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=20080131011227.257b9437.akpm@linux-foundation.org \
--to=akpm@linux-foundation.org \
--cc=a.p.zijlstra@chello.nl \
--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 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).