linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Christoph Lameter <clameter@sgi.com>
To: Lee Schermerhorn <Lee.Schermerhorn@hp.com>
Cc: linux-mm <linux-mm@kvack.org>, Andi Kleen <ak@suse.de>,
	Steve Longerbeam <stevel@mvista.com>,
	Andrew Morton <akpm@osdl.org>
Subject: Re: Query re:  mempolicy for page cache pages
Date: Thu, 18 May 2006 11:15:09 -0700 (PDT)	[thread overview]
Message-ID: <Pine.LNX.4.64.0605181105550.20557@schroedinger.engr.sgi.com> (raw)
In-Reply-To: <1147974599.5195.96.camel@localhost.localdomain>

On Thu, 18 May 2006, Lee Schermerhorn wrote:

> Below I've included an overview of a patch set that I've been working
> on.  I submitted a previous version [then called Page Cache Policy] back
> ~20Apr.  I started working on this because Christoph seemed to consider
> this a prerequisite for considering migrate-on-fault/lazy-migration/...
> Since the previous post, I have addressed comments [from Christoph] and
> kept the series up to date with the -mm tree.  

The prequisite for automatic page migration schemes in the kernel is proof 
that these automatic migrations consistently improve performance. We are 
still waiting on data showing that this is the case.

The particular automatic migration scheme that you proposed relies on 
allocating pages according to the memory allocation policy. 

The basic problem is first of all that the memory policies do not
necessarily describe how the user wants memory to be allocated. The user
may temporarily switch task policies to get specific allocation patterns.
So moving memory may misplace memory. We got around that by 
saying that we need to separately enable migration if a user 
wants it.

But even then we have the issue that the memory policies cannot 
describe proper allocation at all since allocation policies are 
ignored for file backed vmas. And this is the issue you are trying to 
address.

I think this is all far to complicated to do in kernel space and still 
conceptually unclean. I would like to have all automatic migration schemes 
confined to user space. We will add an API that allows some process
to migrate pages at will.

--
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>

  parent reply	other threads:[~2006-05-18 18:15 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-18 17:49 Lee Schermerhorn
2006-05-18 18:12 ` Andi Kleen
2006-05-18 18:29   ` Lee Schermerhorn
2006-05-18 18:41     ` Christoph Lameter
2006-05-18 18:14 ` Andrew Morton
2006-05-18 19:10   ` Lee Schermerhorn
2006-05-18 18:15 ` Christoph Lameter [this message]
2006-05-18 19:27   ` Lee Schermerhorn
2006-05-18 19:53     ` Christoph Lameter

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=Pine.LNX.4.64.0605181105550.20557@schroedinger.engr.sgi.com \
    --to=clameter@sgi.com \
    --cc=Lee.Schermerhorn@hp.com \
    --cc=ak@suse.de \
    --cc=akpm@osdl.org \
    --cc=linux-mm@kvack.org \
    --cc=stevel@mvista.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